Groups | Blog | Home
all groups > flash actionscript > january 2007 >

flash actionscript : Referencing movie clips


alexwhite06
1/3/2007 11:27:35 PM
Help me, I'm completely stuck.

All I want to do is make a button when pressed, change the frame of another
movie clip at the same hierarchy as it (the button and clip have the same
parent clip).

I've tried this and it doesn't work:

_parent.pdf2.gotoAndPlay(2);

pdf2 is the name of the clip I want to change.

Any help is apprecieated.
kglad
1/3/2007 11:57:50 PM
if your button is on the same timeline as pdf2 use:



yourBtn.onPress=function(){
pdf2.gotoAndPlay(2);
AddThis Social Bookmark Button