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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SchoolBoy Error: Root of MovieClip

Status
Not open for further replies.

ToshTrent

Technical User
Jul 27, 2003
209
Hi,

I’ve got myself into a bit of a pickle with Movie Clips and Levels. I have written a scenario to simplify my problem; I hope it is clear enough.


I have two swf movies.

SWF 1 – Snapshot.swf

This has a movie clip called LoadedContent.


SWF 2 – Content.swf -this is loaded into movie clip LoadedContent

This has a movie clip called Figure1.
This has a button called Button1 (Acting as MovieClip)


When Button1 is pressed I am trying to make a specific part of the movie clip Figure1 play. To make this work I used this.
Figure1.gotoAndPlay("FadeOut");

This did not work so I added ‘_root’

_root.ManFigureFade.gotoAndPlay("FadeOut");


This worked great locally, but when I ran the site through the main swf ‘Snapshot.swf’ the button could manage the movie clips, this is clearly due to the _root value which I have set. I have tried many combinations to set the root of the movie clip ‘Figure1’ but I can not seem to do so.


Could someone please advise me how to set the root of the movie clip Figure1 when running it through Snapshot.swf?

Thank you in advance for your help.

Tosh
 
whoops, sorry it's figure1, ManFigureFade is the name i'm using in flash not this scenario.

The _parent does not work :(

[red]
Thankyou[/red]
Matt
 
That's weird, i tried it again after closing the application and it worked great using the _parent property. Thank you for your help, I'm sure it'll go wrong again. :)

[red]
Thankyou[/red]
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top