A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [MX] please help me simplify this code ....

  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    72

    [MX] please help me simplify this code ....

    Code:
    _root.thumbs.thumb1.onRelease = function() {
    	counter = 1
    	gotoAndPlay(2)
    }
    I need to use this piece of code numberous times ... like a hundred ... I could copy and paste it 100 times and just change the numbers ... but surely not ...

    so the thumb1 increments to thumb2 and so on ... and the counter value corresponds to the number thumb ... so the next code would be:

    Code:
    _root.thumbs.thumb2.onRelease = function() {
    	counter = 2
    	gotoAndPlay(2)
    }
    I'm sure there is a simple function? or something I can use .... any help would be great .. thanks

  2. #2

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    72
    possibly but I've only got Flash MX - i think this is made in a newer version?

  4. #4

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    72
    that is perfect ... thank you 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