A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How do i make a button go to a random frame

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Location
    Find waldo first
    Posts
    22

    How do i make a button go to a random frame

    After clicking this button i go to a random frame from frame 1-5 .. something like that. If i ever click this button this goes me to a frame ranging from frame 1 up to frame 5 .. LOl does this make sense.. .XD just answer me i'm going nuts lewl )

    How do i make a numerical stepper like this

    STR : 1/10
    AGI : 1/10
    LUK : 1/10

    STATS AVAILABLE : 20

    I made the limit for each stats but it stills doesn't reduce the stats nor go to the limit of 20 instead they go like this

    STR : 10/10
    AGI : 10/10
    LUK : 10/10

    STATS AVAILABLE : 20

    SORRY FOR BEING A NEWB PLEASE HELP!

  2. #2
    Junior Member
    Join Date
    Apr 2010
    Location
    Find waldo first
    Posts
    22
    Bump!!

  3. #3
    ...? mxkidz's Avatar
    Join Date
    Jul 2003
    Location
    India
    Posts
    419
    My actionscript skills are a bit rusty but your button code would be something like

    Actionscript Code:
    on(release){
    _root.gotoAndStop(random(5)
    }

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