SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable button on lower level

    Hi

    I'm new to this forum so be gentle

    What I have is an swf loaded onto level 2 (within an exe) with buttons. Now button 1 loads a new swf onto level 2, great that all works.
    But is it possible to disable the buttons on level 1 when I load the next swf.
    It is not possible for me to unload the previous level because of the sheer depth of the project.

    I'm very new to Action scripting so please let me know if I must post the script that I have now.

    Thanks
    Nick

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,514
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    _level1.myButton.enabled=false;

  3. #3
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure which layer this action should be on.

    Should it be on the button that I want disabled -
    on (release) {
    loadMovieNum("CommNurse1.swf", 2);
    }
    on (press) {
    _level1.CommNurseB.enabled = false;
    }

    or should it be on the first frame of Level2.

    I've tried both but neither work, should there be other script with it?

    Thanks for the help

  4. #4
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok I figured it out.

    To disable it needed to be...
    _level0.Nurse_mov.NandH_btn.enabled = false

    and true to enable using another button.

    Thanks for your help!


Bookmarks

Posting Permissions

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