Skip to main content
Inspiring
March 25, 2011
Answered

Removing a movieClip from another movieClip

  • March 25, 2011
  • 1 reply
  • 633 views

Hey,  How do I make visible a movie clip in the main movie from another movie clip when it loads? Not using addchild since the movie clip is on stage. thanks in advance...mesa

Main timeline ---- a simple timeline with two movie clips named aMovie bMovie

aMovieClip.visible =true;

MovieClip2 code with button
aMovieClip.visible=false;

error:

Symbol 'NavPage', Layer 'ActionScript', Frame 1, Line 1 1119: Access of possibly undefined property aMovieClip through a reference with static type flash.display:DisplayObjectContainer.

This topic has been closed for replies.
Correct answer Ned Murphy

You just said they were named aMovie and bMovie, so neither of the two lines of code you show would be correct, but you can work that out for whatever they really are named...

main timeline:

aMovie.visible =true;

bMovie timeline:


MovieClip(parent).aMovie.visible=false;

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 25, 2011

You just said they were named aMovie and bMovie, so neither of the two lines of code you show would be correct, but you can work that out for whatever they really are named...

main timeline:

aMovie.visible =true;

bMovie timeline:


MovieClip(parent).aMovie.visible=false;

Inspiring
March 26, 2011

Thank You  Ned,  It works...

Ned Murphy
Legend
March 26, 2011

You're welcome