Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

go back from nested movieclips not work

Participant ,
Jun 03, 2013 Jun 03, 2013

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 ?

TOPICS
ActionScript
533
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 03, 2013 Jun 03, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 03, 2013 Jun 03, 2013
LATEST

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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines