oops... forgot to change the handler
Main Topics
Browse All TopicsHI,
I was wondering if there is a button that can make the movie go forward changing the FPS
And Epxert help me with a rewind button, I am sending the code.
Thanks
I am using AS3
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I have an awfulll......Defect in my movie player....when it gets to the end of the movie and I click RewindComplete_mc .....start rewinding but it doesn't let another buttons to activate and after 15 seconds crash.... :( WHY????
eddy
ps: If you want me I can open another question about this.. so you can earn more points
Would you mind to check my code? THANKS
Not 100% sure this is the problem, but the one thing that jumps out at me is this:
function rewindHandler(event:Event)
demo_mc.prevFrame();
stage.frameRate = 38;
}
you're setting the FPS every single frame - 38 times each second. Try taking this line:
stage.frameRate = 38;
and putting it in the click handler, like so:
(remember - you want as *little* to happen as possible inside an enterframe handler - these actions are called many times per second).
Also, I noticed this:
var timeNumer:int = int(event.currentTarget.mo
SetTimeLine = timeNumer*11.4;
trace(SetTimeLine);
demo_mc.gotoAndPlay(SetTim
SetTimeLine needs to be an integer (rounded) - not just timeNumber - so do the same thing to it as well (remember, SetTimeLine represents a frame number, so if timeNumer is 33, and 33 * 11.4 = 376.2, then you'll get an error because there is no frame 376.2 - it needs to be 376. casting SetTimeLine to int, and using int(timeNumber * 11.4) will force it to be an integer, which should be a valid frame number.
I just realized with the forwardComplete and the ReewindComplete button, after being running for more than 15 seconds(meaning not clicking other buttons..just let the movie clip plays).......the movie crash...it is like no one can't stop..keep running for a while and then it crash.
Before 15 seconds.. it works great, I still can stop them.
Any ideas
thanks
Thank you buddy!!
Sorry that I didn't answer you as fast as I want I want it too, but I was sore it off busy with another projects....
Thank you to your code I manage to make it work....!! :)
Thank you one more time for your help. I have another question if you have some time!!
Thanks
ps: this is the link:
http://www.experts-exchang
Business Accounts
Answer for Membership
by: moagriusPosted on 2009-10-30 at 05:56:29ID: 25702422
you could just swap prevFrame for nextFrame, but really you don't need an enterFrame handler - just using the "play" method should work... E.G.,
Select allOpen in new window