Jeremy
Journeyman
Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
|
Re: Help !!! want to load a movie dynamically
03/30/05 10:12 AM
|
|
|
Hmm, what I would suggest is running throught he reference built into Flash for the loadMovie action. I will do that here:
In reply to:
Example Usage 1: The following example loads the SWF file circle.swf from the same directory and replaces a movie clip called mySquare that already exists on the Stage:
loadMovie("circle.swf", mySquare); // equivalent statement (Usage 1): loadMovie("circle.swf", _level0.mySquare); // equivalent statement (Usage 2): loadMovie("circle.swf", “mySquare”);
The following example loads the SWF file circle.swf from the same directory, but replaces the main movie clip instead of the mySquare movie clip:
loadMovie("circle.swf", this); // Note that using "this" as a string for the target parameter will not work // equivalent statement (Usage 2): loadMovie("circle.swf", “_level0”);
The following loadMovie() statement loads the SWF file sub.swf from the same directory into a new movie clip called logo_mc that’s created using createEmptyMovieClip():
this.createEmptyMovieClip("logo_mc", 999); loadMovie("sub.swf", logo_mc);
So first, make sure your loadMovie action complies with one of those methods. You may also want to make sure your button action is set to onRelease or onPress or sometrhing similar so it is actually being called. A good way to do that is to put a trace action before the loadmovie action so you know the playhead actually arrives to that point correctly. Let me know if you need more help!
-------------------- JS [EOTT]
|
|