PDA

View Full Version : [F8] How to access instance name of movieClip in ScrollPane


brianemsu
07-21-2008, 04:28 PM
Hi forum,

I am having trouble targeting a dynamically loaded movieclip object using the scrollpane's "contentPath" function. I have given the movieClip a linkage ID so the scrollpane can find it, and all of that works fine, and the movieClip shows up in the scrollpane... The problem is that I want there to be a couple of buttons in that movieClip. Seems easy enough but I can't target the movieClip by an instance name. I know it's there because a trace numChildren of the scrollpane gives me one child... but a trace of the movieClip's linkage ID returns "undefined"... how do I set an instance name for that movieClip?

thanks
-brian

AShatesME
07-21-2008, 05:37 PM
How about [scrollpanename].firstChild.name?