A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: hiding a movie on load

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    13

    hiding a movie on load

    Hi

    I'm building a site in Flash MX 2004 which has a 'show/hide navigation panel ('nav.swf'). I'm loading it into Level 4 (the lower levels have the content), at the same time the rest of the site loads, but I want its initial state to be invisible. The code I've tried (on the level 0 timeline is:

    loadMovieNum ("nav.swf", 4);
    _level4._visible = false;

    However, nav.swf is still briefly visible when it loads, before the _visible code kicks in to hide it. Is there a simple way of having something invisible immediately on load? As the navigation panel is not a self-contained MC but an swf, I can't give it an on ClipEvent (load) instruction.

    Please help!

    Chris

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    you cannot load and command the loaded content
    to do something in the same split second,
    why not write to the timeline of nav.swf - this._visible=0;
    then show it from the _level0 timeline with - _level4._visible=1;

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    13
    Great...just didn't think of that! It's ideal. Thanks!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center