A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    5
    Hi Guys,

    I have a Flash movie with the main menu on level 0 from there you load all the other movies at level 1. The movies are both the same size and I have a background symbol same size as the movie on the bottom layer of level 1 which blanks out the movie below.
    The problem I'm having is that as you move the cursor around the screen on level 1 the cursor changes when it detects a button on level 0 even though you cant see it.
    Is there any way of stopping this happening?

    Thanks in advance

  2. #2
    Hammer
    Join Date
    Mar 2001
    Location
    Warrington UK
    Posts
    274
    Any buttons on any level will 'show through' as you have probable realised there are two ways in which you can stop the buttons affecting the movie you have just loaded into a higher level.

    1 to unload the movie which the buttons are on.

    2 to move the movie which the buttons are on. To do this the movie must be loaded from within a movie clip. and can then be placed off screen when not required eg

    loadmovie._x=-9000;
    loadmovie._y=-9000;

    Hope this helps


  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    4

    Unhappy button be gone!

    You need to tell the button to hide when you load the level 1 movie

    Turn the button into a movieclip (F8) and give it an instance name (say? 'button')

    Then use the 'Set Property' action (on whatever, probably where you load the level1 movie) to set the 'visability' of 'button'[the target] to "false" (string) /or/ 0 (expression)[the value].

    Don't forget you need to set it back to "true" /or/ 1, to make it appear again.


    Alternatively, just load your second movie onto level0, this will overwrite the main movie, and the button will be no more!, This is probably better if you don't want to see or use any of the main movie underneath the level 1 movie.


    Hope this helps.
    Cheers.

  4. #4
    Junior Member
    Join Date
    Jun 2001
    Posts
    4

    Post

    P.S.

    If you change your button into a movie clip it may mess up any actionscript on the button as regards to paths, but this is easily solved, so don't let it put you off.


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