A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Button makes another disappear, but not vica versa.

Threaded View

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100

    Button makes another disappear, but not vica versa.

    ///
    / Solved, I was using a graphic from another library which had
    had it's it own personal agenda.......a button attached to it with it's own actionscript, back to square one then.
    /
    ///



    Probably one of those basic concepts that I miss sometimes, but this one has been bugging me for almost an hour now.

    I want to make a checkbox, I have made two buttons, a tick and a cross.

    They sit on the same place on the stage, here is the script.

    On the first frame....

    _root.tick._visible=false;
    _root.tick.enabled=false;

    On the cross button....

    on(release){
    _root.tick._visible=true;
    _root.cross._visible=false;
    _root.tick.enabled=true;
    _root.cross.enabled=false;
    }

    On the tick button....

    on(release){
    _root.tick._visible=false;
    _root.cross._visible=true;
    _root.tick.enabled=false;
    _root.cross.enabled=true;
    }

    What happens when I test the movie is that the cross button appears, after click the tick button appears, clicking on the tick button makes everything disappear.

    Last edited by skalie; 09-03-2003 at 10:21 AM.

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