Copy link to clipboard
Copied
hi , i have a movie clip called : "main"
in this movieclip there is another movieclip call : " sub"
i se script to when goes to end of sub movieclip timeline then gotoandplay frame 1 of main movieclip
so i use something like this :
MovieClip(parent).gotoAndStop(1);
for other project like this everything work fine but i have an effect component on this movieclip (sub) , for example texteff
and now nothing happend and the goto script not work anymore and there is not error !!
the strange thing is when i change the script to :
MovieClip(root).gotoAndStop(1);
the script work but it goes to root and main timeline and not what i want ...
so how can i define goback to parent movieclip ?
i try some script like :
MovieClip(root.main).gotoAndStop(1);
MovieClip(parent.parent).gotoAndStop(1);
and
.
.
.
but no success and most of them show error in compile ...
what should i do ?
Copy link to clipboard
Copied
Use the trace function to see if the object you are targeting is the object you think it is.
trace(MovieClip(parent));
MovieClip(parent).gotoAndStop(1);
You should show any error that you get.
Copy link to clipboard
Copied
thanks dear mr.murphy
but nothing show in trace , i`m confused .
No errors in compile and nothing showed in trace !!
it seems the problem comes with this flasheff component cause when i remove it the problem solved , this component add some in or out FX to movieclip ( use some mask technics and transition ) and can not be edit or view the source of code ...
first thing i though about it is after apply component on movieclip , component make timeline of this movieclip solid , but when i test
MovieClip(root).gotoAndStop(1);
and see it work it make me more confused ///
the only thing i can see changed after apply this component is attach "InstanceName_0" to my movieclip instance name ...
do you have any suggestion ?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now