A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: animated button wont work!!!

  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    24

    animated button wont work!!!

    I finally got an animated button to roll in and out using

    if (btnplay ==true){
    Play();
    }else{
    stop();
    }

    etc...

    It works well apart for the problem that when the button wont do anything when asigned an action to it.

    There seems to be so many ways to do these buttons.

    Can any one guide me in the right direction to get these buttons to work full proof.

    Thank you for any help (Ive been trying this for months and had a million diferent ways of doing it).

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Try this one...
    Last edited by oldnewbie; 12-02-2004 at 11:49 PM.

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Posts
    24
    Oh that looks spot on mate.

    Im having a look at it and exactly what I need.

    Thanks so much.

  4. #4
    Junior Member
    Join Date
    Jan 2003
    Posts
    24
    Ok, this is where I always get messed up.

    On that example, the button inside the movieclip was a link webpage. I need it to go to a part in the main movie. If I tell it to go to a frame (eg 5) it will go to the one in the movie clip. If I try to load another .swf it doesnt do anything.

    I keep tripping up at this same point.

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You have to target the timeline, then a frame number or always better a labeled frame...
    code:

    on(release){
    _level0.gotoAndPlay("my_target1");
    }



    See my first post in this thread...

    http://www.flashkit.com/board/showth...hreadid=584159

    As for loading a movie, did you include _root or _level0 if loading in a container clip?

    What's the code you did try?

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