View Single Post
11-18-2007, 01:41 AM
#3
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

most of this is just an issue of using the . syntax.

there's 4 ways to use it:

_root.
_root. refers to the topest timeline. you'd use _root.something to call something defined in index.swf from an included swf, or a deeply attached movie clip.

_parent.
_parents goes up one timeline level. IE _root..lvl1.lvl2. in inside lvl2 you need to access a variable defined within lvl1, you'd just use _parent.varname

this.
this just refers to the current timeline - this.gotoAndPlay(1);

instancename.
if you set a movie clip called "preview" to load your images into, on click a button would say something like previews.gotoAndPlay(2), which will start playing the previews timeline at frame 2.