Programming Art Forums

Programming Art Tutorials >> Flash

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]

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Help !!! want to load a movie dynamically Azam 03/25/05 01:05 AM
. * * Re: Help !!! want to load a movie dynamically Jeremy   03/30/05 10:12 AM

Extra information
0 registered and 19 anonymous users are browsing this forum.

Moderator:  Programmingart, Brad 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Thread views: 7193

Rate this thread

Jump to

Contact Us Programming Art Home

*
UBB.threads™ 6.5.1.1

Notice: due to an unmanageable amount of spam, the forums are closed to new members until further notice. You may still get support for any of your software products by emailing us at support@ at our website domain. Please feel free to browse existing posts as a guest as there is plenty of valuable information here. Thanks!