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

Controlling top level timeline from within a movie clip 1

Status
Not open for further replies.

kroon

Programmer
Jun 21, 2001
9
NO
I would like to control the top level timeline from within a movie clip instance, but it seems like the TellTarget action can only control instances of movie clips, not the top level timeline.

Is there a simple solution to this?

kroon
 
Firstly, I'm not sure if this works in all versions of Flash but with v5, you would simply do this.

on (release) {
_root.gotoAndPlay (1);
}

The _root. is the path to the mian time line.

Hope this helps
roda B-)
roda@shockanime.com

Learning is like rowing against the current. As soon as you stop, you start going backwards.
 
Another simple solution is to label the frames you want to control in the main timeline, and just target the labels rather than the frame numbers from within the movieclip. This works for me ;)
Nick (Web Designer)
nick.price@misuk.net
 
Thanks guys!

This turned out to work nicely:

tellTarget ("_level0") {
gotoAndPlay (1);
}

kroon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top