Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Child" .swf appears at the begginig of the movie 2

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

From one main .swf I call another .swf clicking on a button(that will be seen in the main one). The problem is that if in the Flash player I restart the application, the child .swf will be seen at the very beggining despite I didn´t have clicked in the button that would call it.

How can I solve this?

Thank you
 
add an action to frame 1 of the main swf unloading the other swf

if its loaded into an empty clip with instance name holder for example

then add

holder.unloadMovie();
 
Or make the external .swf invisible to start with, adding this._visible = false; on the first frame of it's .fla. The loadMovie action on your button, will then be the only call to make it visible. On a refresh or restart, it should remain invisible.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top