Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't access properties of nested movieclip unless it is on the first frame.

    I've been having trouble trying to set a nested movieclip _visible property in an animation. I've got this:
    _root.movieclip1.movieclip2._visible
    where movieclip2 is nested in movieclip1.
    movieclip1 has several key frames, and movieclip2 is on the second one.
    I want movieclip2 not to be visible at the beggining, so I wrote in the first key frame of the main movie:
    _root.movieclip1.movieclip2._visible=false;
    but it only works if I put movieclip2 on the first frame on movieclip1

    can anyone please help me with that?
    I certainly don't know why is this, and haven't found infirmation concerning to this specific matter.
    Thank you very much in advance.

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Well not sure on exactly the issue, but an idea for a workaround is to have the movieClip2 on both frames inside of movieClip1 (not two keyframes though). So just have it start on frame one and follow through. If its invisible, why not? It doesn't matter if it is one all of the frames if you control when it is visible.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Not possible to put nested movieclip in frame one

    Thank you for your ansewr, I'm the same person who posted the question above.
    I can't put the nested movieclip in the first frame becuse I'm trying to make a mini escape game, and the main movieclip (movieclip1) is the rooms movieclip, so it has 4 keyframes, each of them a view of the room. Nested movieclip (movieclip2) is an element tha should appear in room 2, for example. So, i have to put the nested movieclip in a keyframe different form the first, furthermore, I have to put several nested movieclips in different keyframes and still ba able to control their visibllity.
    Thank you again for your patience and time.
    Best regards.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •