A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: previous and forward buttons

  1. #1
    Member
    Join Date
    May 2003
    Posts
    38

    previous and forward buttons

    i created a movie in that i placed 4 slides in a layer1 in frame 5,25,45,65,85.

    i had created a movieclip a rectangle in shape whish is static in a layer2

    on rollover the movieclip rectangle i placed 2 buttons one is "previous" button and another is "forward" button.

    on running this i want the button operations like the following

    1. on clicking the "forward" button the the movie have to go to the slide 25.
    2. from there if we click the "forward" button it should go to 45and so on.

    like this

    1. on clicking the "previous" button from the frame 45 it should go to the 25 frame of the movie and so on.


    every thing is working but what the code i write in the button which is in the (rectangle shape)movie has taking the only one action. ie., when i write on(release){ _root.gotoandplay("25")}
    it is globel to all position on the button.
    so only this action can only is taking place.

    so i want the action script to be global and as well as my above constrains should also satisfied.

    for this what to do

    pls help me out

    note: if u give ur personal id i can send the fla file to u(which i a had this problem) since the file i zip is big to attach here i asking ur personal mail id to send the fla.

    from
    aristotle

    note: if u give ur personal id i can send the fla file to u(which i a had this problem) since the file i zip is big to attach here i asking ur personal mail id to send the fla.
    Last edited by aristotle_ps; 07-20-2003 at 03:27 PM.

  2. #2
    Creating Creativity!!! digitalblood's Avatar
    Join Date
    Feb 2003
    Location
    India
    Posts
    143
    on the button on frame5, write this:
    on (release) {
    gotoAndPlay ("25")
    }

    Again, on the button on frame25, write this:
    on (release) {
    gotoAndPlay ("45")
    }

    And so on...

    and repeat the procedure for previous also

    Again, on the Previous button on frame45, write this:
    on (release) {
    gotoAndPlay ("25")
    }

    Again, on the Previous button on frame25, write this:
    on (release) {
    gotoAndPlay ("5")
    }

    Hope this will fix your Problem

    Rgds
    Bhaskee
    I don't want to run the world But I Wouldn't mind taking it for a RIDE!!

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