Programming Art Forums

Programming Art Tutorials >> Flash

Pages: 1
Azam
Novice


Reged: 03/24/05
Posts: 1
Help !!! want to load a movie dynamically
      #544 - 03/25/05 01:05 AM

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.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jeremy
Journeyman


Reged: 11/20/02
Posts: 49
Loc: Columbus, OH
Re: Help !!! want to load a movie dynamically
      #545 - 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  
Pages: 1



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

Moderator:  Programmingart, Brad 

Print Topic

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

Rating:
Topic views: 7192

Rate this topic

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!