you can use loadMovie() or loadMovieNum() or the moviecliploader class'es loadClip().
Yes, but, well I guess I should have mentioned I'm a newbie to Flash.... How do I literally script it out? I mean the file name is jukebox.swf, so where do I put that file in order to be loaded and what is the script that needed to be loaded?
the easiest thing to do is put jukebox.swf in the same directory with your loading html and swf. you can then use:
That works great! Thanks! But now how can I change the coordinates of the .swf? It's all the way in the top left.
all of the properties of the loaded swf you control by referencing the target movieclip into which it was loaded: mc
so, if you want to position your loaded swf at _x = 100, _y = 200, use:
mc._x = 100;
mc._y = 200;
note: some properties cannot be set until loading is complete.
p.s. if this thread is answered, please mark it as answered.
I was extremely glad to find this post, as it helped me with this same issue, however, in implementing this, it created another issue. I inserted my movieclip exactly as shown, and it works tremendously, except that it now loops continuously. I have tried inserting a stop(); function on the clip's timeline after the mc ends, on its own seperate timeline..it doesn't work no matter where I put it. I do not have just a single actions layer, if that makes any difference.
So my question is, what code stops the mc from looping and where would I put it? the clips code is as follows;
mc._x = 140;
mc._y = 13;
Any help would be very greatly appreciated, I have been at it for days and many, many browsed forums
a stop() anywhere on dnbanner2's main timeline would stop the main timeline.
if it's not possible to edit dnbanner2.swf and place a stop there. you could apply a stop() to mc when you wanted to stop dnbanner2's main timeline:
most commonly that would be applied when dnbanner2's main timeline has reached its last frame. to determine when that occurs, you would use a loop to track the play-progress of dnbanner2's main timeline:
Mine has an error it says:
1120: Access of undefined property mc.??
you don't have a movieclip with instance name mc.