(CS4 - AS2) How do I get an external swf to load and POSITION in main file?
I'm trying to get a swf file to play in a main swf file. I can get it to play, but it always appears in the top left corner. I've tried several different methods to position it but every one of them either doesn't work or won't play the file.
Here's what I'm using right now.
Actionscript Code:
stop();
loadMovieNum("circles.swf", 1);
var xset = 381;
var yset = 179;
The swf plays just fine, but it won't take the coordinates.
I also need to get it to stop when I go back and the command
Actionscript Code:
unloadMovieNum(circles.swf);
doesn't work.
A tutor in my class showed me a method to place the swf into a box on the main stage without doing a lot of scripting, just putting in some file-name and size/position references, but he's not available right now to ask how he got that started. If anyone knows what I'm talking about and can either direct me to it or link me a video on that, that would be great.
First problem fixed. Now for the new problem.
I found the problem. I had placed the loadMovie("circles.swf", container); action INSIDE the movie clip, rather than on the frame with it.
The clip will now play, but every time I test the portion of my main swf that brings up the secondary swfs it opens up two copies of Safari and two Finder folders of the Desktop (where the main swf and the circles.swf are located).
Is there a way to make it just load up in the background and not throw all this stuff up in front of the flash while it's supposed to be playing?