Azam
(Novice)
03/25/05 01:05 AM
Help !!! want to load a movie dynamically

Hi,
According to the tutorial I created a outlined rectangle shape and convert it into a symbole. Then I placed a button on the stage along with the rectangle symbole. In the tutorial they insert an action by selecting the button and right clicking on it. Then Seleted Actions from the popup menu.
Then the action window fro the button appeared. Then from "Action -> Browser/Network" selected "loadmovie". Then I filled the parameter as follows:

URL = address where my current swf is
LOCATION = Target - Name of the Rectangle movie instance

But when i run it nothing is happening.

Plz tell me what should I do.


Jeremy
(Journeyman)
03/30/05 10:12 AM
Re: Help !!! want to load a movie dynamically

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!



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!