I have a AS3 swf [1] that is loading another AS2 swf [2] which is loading another AS3 swf [3].
I'm getting a Security Sandbox violation on the AS2 swf trying to access the last AS3 swf (3), but I'm using Security.allowDomain("*") in practically all the classes of the first AS3 swf (1). Is there any way to get around this? Thanks.
...
all i need is a preloader to run and when it detects the swf is loaded it will stop and the map.swf will start to run. I have trawled the net for weeks with no luck. I have a massive 776kb flash map. I need a preloader to run prior to this map but it need to be a preloader independant of the map.swf. Please does anyone have any ideas...
Hi there
I currently have a few movieclips that I load into another movieclip container. I use the MovieClipLoader class to load them and make use of the onLoadProgress, onLoadStart, onLoadInit, onLoadComplete and onLoadError listeners.
In the onLoadProgess listener, I listen for the loaded bytes and total bytes and put the the percent...
Hi guys,
I'm trying to populate a list of buttons with results from a xml picture list in AS2. These buttons will load the resulting image from the xml. I'm populating the buttons by first getting the number of results in the xml, and then using a for loop to attachMovie the require number of buttons and assign the actions to them.
Th...
Hi,
I've multiple videos stored as MovieClip objects and would like to merge them into a single MovieClip video object in order to play all of them in sequence (so that a user thinks it's a single video).
Thanks a lot!
EDIT: I want to do it programmatically in ActionScript inside the Flash Player.
...
I have a site the runs in flash. IE7 will not reload the vars in flash, the vars set by flash in the swf. when the page is reloaded. The thing that bugs me out is refreshing the page actually refreshed the page. The flash started how it was supposed to except the variables in flash didn't reset.
This only happens when the "Temporary Int...
Hi,
In my flash, the socket server returns some xml data that I need to parse, but it seems that the only way to start the XML object is with the XML.Load() which loads an external file, but my XML file is already loaded into a variable
trace("raw: "+msg);
msgArea.htmlText += "update remote player loc";
var playerLocXMLOb = new XML(...
I have the following function, but I can't seem to get the myVar variable into the inline function. What am I doing wrong here? What I would like to have happen is when I click on myMc, it should print myVar to the console ("hello computer").
function doSomething():Void
{
myVar = "hello computer";
myMc.onRelease = functio...
I would like to tween a movieclip (with ease out) using purely action script 2.0. Does anyone know where to find any resources on this or could point me in the right direction?
Thanks!
...
I have a function in jquery I would like run in flash using action script 2.0
The Jquery:
<script>
$(document).ready(function(){
$("a").click(function(event){
$("div#Header").height(97)
.css({cursor:"auto", backgroundColor:"#FCC"});
});
});
</script>
The Html
<a href="#">Run</a>
How I do this in actionscript 2.0?
...
I can't quite get this circular mask to work.
onClipEvent(load)
{
_root.stop();
dO = 3.6;
r = 75;
function addSlice(O)
{
x1 = r*Math.sin(O*Math.PI/180);
x2 = r*Math.sin((O+dO)*Math.PI/180);
y1 = r*Math.cos((O)*Math.PI/180);
y2 = r*Mat...
I have got an xml file that brings text into a flash movie in the form of an array,
I need to population some textboxes and want to do this using a for loop.
My loop look like this:
for(var i=0; i<first_array.length; i++){
this.animation1.text_mc[i].txt[i].htmlText = first_array[i];
}
if i hardcode the path, without [i], it...
Hi guys!
I'm making a quiz in Actionscript 2.0.
The quiz has 8 questions. Each question has four answers and each answer gives different points. On every frame their is two questions to answer and then move on to the next two and so on.
My problem is that I need to assign each answer with points that in the end will be calculated and d...
I would like to know that how we could send out data from a flash movie to html , php, aspx page so that that data could use for further calculation.
...
Hi There,
I'm working on an AS2 application. One of the functions is upload a file to server (PHP) and grab raw text (XML) from response by listening to OnUploadCompleteData event of a FileReference Object. But I found the event can be correctly triggered, but the parameter data(:String) is always empty. And this only happens on Mac OS ...
I am stuck in as3 hit test problem. this is the code i wrote in as2. please help me migrate this in to as3
target.hitTest((_x - _width / 2) * (1 / (100 / _root.game._xscale)) + _root.game._x,
_y * (1 / (100 / _root.game._yscale)) + _root.game._y, true)
...
Hi all,
I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is...
What is the best way to get the current, "real" frames-per-second of a running Flash movie using Actionscript 2? By "best", I mean it should be accurate over a period of time (i.e. it does some averaging) and with a minimal built-in performance overhead.
Thanks!
...
I have this action script that pulls images from a xml file
> myPhoto = new XML();
> myPhoto.ignoreWhite = true;
> myPhoto.onLoad = function(success) {
> //portfolioTag = this.firstChild;
> numimages =
> this.firstChild.childNodes.length;
> spacing = 28; for (i=0; i<numimages;
> i++) { this.picHolder =
> this.firstChild.child...
I want to display http://www.flash-mx.com/images/image1.jpg image as a thumbnail box in my flash SWF file. TO do so I have taken a Loader control in my flash movie and named it as my_thumb and then writing the code as:
_parent.my_thumb.contentPath = "http://www.flash-mx.com/images/image1.jpg";
But I am getting following error after a...