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!

Scroll Pane Component as parent object in script 1

Status
Not open for further replies.

SimJim

Programmer
Apr 7, 2003
26
KR
I have an animated diagram with several mc's nested within it. It is very large in pixel width, and I want the user to be able to scroll across it to see the activity. So I decided to use a scroll pane. What happens to my mc hiearchy when I reference it as an mc from the scroll pane "Scroll content" property? I'm having difficulty using the action script at the root to control those objects now nested in the scroll pane.

Thanks...
 
should be ok to control them from main timeline by adding the instance name of the scrollpane into the path

_root.SPane.mcs
 
Naaaaaah!

_level0.my_pane.tmp_mc.nested_mc.gotoAndStop("frame_label");


BTW, an easy trick to find the correct path to any movie clip, is simply to add trace(this);, on the first frame of the targeted movie clip. This will display the full correct path excluding the instance of that particular movie clip, in the Output Window. You then simply use that path adding the instance name of that movie clip and whatever action to it! Regards,

cubalibre2.gif
 
Thanks Bill Watson & OldNewbie,

That part about Trace(this); was the most useful tidbit I've had in months. Thank you very much! Geez, how did I get by w/o this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top