Actionscript Help
- Started
- Last post
- 4 Responses
- Bullitt
Found some actionscript here I'm using to make a timeline play forward and backwards, Works quite well :
the action on a keyframe :
function Movement() {
if (_root._currentframe > _root.mytarget){
prevFrame();}else if (_root._currentframe < _root.mytarget){
nextFrame();}else{
stop();
}}
And this action on buttons:
on(Press){
_root.mytarget=59;
}It quite simply plays to the targeted key frame either foward or backwards depending on were you are.
Problem I got is when previewing this it stops on the first frame, but I want it to play the timeline to a certain keyframe in which I can then use the above script.Also how can I use this script within a movie and not just on the main scene.
I'm pretty shit at actionscript so I apologize in advance for my pathetic attempt to get others to do my work :)
- Bullitt0
How about to stop it from pauseing on the first frame.
- lvl_130
the main timeline or the movieclip?
if all else fails, you could just put a play(); on the frame...even though it shouldn't need it.
- Bullitt0
At the moment got this thing working just on the timeline... and it pauses on the first frame.
Just pre-empting the same problem Il have when I have this all added within 1 movie clip with navigation etc.Functionaility wise it nice and simple were as I want it to play forwards and backwards along a timeline directed by what keyframe I specify on the buttons... But I also want it to play the first 30/40 frames before pausing instead of pausing on frame 1.