A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: animation as a button

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    14

    animation as a button

    Hey,

    I'm trying to make a quite complicated button. Basically, it's a firefly, but when the mouse rolls over it some words appear next to it. I have this as a basic button -> firefly by itself on the 'up' status, and the firefly and the wording on the 'over' status. I then animated this button so that the firefly flies around the screen, and when you rollover it the wording appears to be flying with it. However, i can't seem to make it link to another part of the movie.

    I'm using:

    on(release){
    gotoandplay(32)
    }

    however, it just makes the fly jump back to its starting position. I think this is because it is a button within an animation and it just jumps between the frames of the animation rather then the scene. Is there a way round this? I've also tried

    on(release){
    gotoandplay("Scene 1", 32)
    }

    but it still doesn't work. Any ideas?

    thanks

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    michigan
    Posts
    92
    this should work
    on(release){
    with(_root){
    gotoandplay("32");
    }
    }

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    14
    thanks so much!

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