Hello,
If someone can please help me with this problem I am having I would really appreciate it. I am in the procesess of making a horizontal scroll bar with pictures (that are also buttons). I have a left and right button above the scroll box so the pictures can scroll one at a time either way. Is there anyway that I can have the left button reverse one frame back where ever I am on the movie timeline.
For example, if I click on the right button to go to frame 8, I want to be able to click on the left button to go to frame 7. Or if I am on frame 9 I want to be able to go back to 8 using just the two buttons I have.
Thanks!
Hi
Create your button, and then using actionscript, select the “goto” function, there are then a number of varibles that can be changed, selct next/previous fram for the type, and be fure to select goto and stop, instead of goto and play.
This has not been tested by me, me, but it should work.
Hope this help!
it sounds very simple but i think there is some tricks to be used to make it out. First of all create the scroll picutres as a separate movieclip. So we can isolate that object for better control and that won’t conflict with other. For example your movieclip that is the picture contains, “scrollpicture” Add stop action on each frames to avoid loop.
Two button on the stage with instance name b1 (left) and b2 (right).
Write the folloing code on the firstframe of the movie.
/:b1.onRelease = function (){
/:scrollpicture.gotoAndStop(_currentframe - 1);//backward movement
}
/:b2.onRelease = function (){
/:scrollpicture.gotoAndStop(_currentframe + 1);//Forward movement
}
I home this will work out… Moreover backward movement of a timeline doesn’t permit animations.
hi, its me again, I have tested the method I posted and can confirm it works, and an added advantage is that it can be exported as flash 1 so anybody (with the plugin) can use it, the actionscript approach would probably require a higher version to publish it, and may be a larger file size.
Thanks both of you for your help. Both ways of doing this worked, I really appreciate it. Have an awesome day!