Hi
I forgot to state that I'm using actionScript 2. I've also given my movieclip an instance name of offer_mc.
Main Topics
Browse All TopicsI have a movieclip called offer_mc, which I would like to be user activated on rollover and then for it to rewind on rollout, at any point in the timeline.
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.
This solution works fine, however I would like the movieclip to rewind back through the previous frames on rollout rather than snapping straight back to the first frame as this solution does.
The movieclip is a single layer frame by frame animation, with no tweening. The movie is of a roller garage door, which goes up when the user rolls over it and goes back down again when the user rolls off it, so that if the user then rolls back over it again before it has reached the first frame it will go back up again.
Is this possible?
I believe you could use tweener for this type of reserve playback you are after.
Watch this video if you haven't used Tweener before: http://www.gotoandlearn.co
It's AS3 but Tweener in AS2 is practically the same.
You will need to download tweener from here http://code.google.com/p/t
Watch the tutorial to understand tweener and how to use it.
Hope this helps.
Sorry for the late reply.
I've been trying to get the Tweener to work, but I'm getting the following error message when I test the movie:
--------------------------
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
**Error** C:\Documents and Settings\LLC0706My Documents\My Flash\projectLLD\caurina\t
handleError(_tweenList[i],
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
handleError(tTweening, e, "onUpdate");
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLDcaurina\tr
handleError(tTweening, e, "onStart");
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
handleError(tTweening, e, "onUpdate");
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
**Error** C:\Documents and Settings\LLC0706My Documents\My Flash\projectLLD\caurina\t
handleError(tTweening, e, "onComplete");
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
**Error** C:\Documents and Settings\LLC0706\My Documents\My Flash\projectLLD\caurina\t
printError(pTweening.scope
Total ActionScript Errors: 12
Reported Errors: 12
--------------------------
I'm using Flash MX2004 (not professional)
I've downloaded version: tweener_1_31_74_as_fl7.zip
I've installed the caurina folder locally to the project.
This is the current code:
import caurina.transitions.Tweene
offer_mc.activate_btn.onRo
{
offer_mc.gotoAndPlay("over
}
offer_mc.activate_btn.onRo
{
Tweener.addTween(offer_mc,
}
This is the first time that I have used Tweener; any suggestions?
Hi
I'm not able to provide the .fla file as Expert Exchange does not allow this file format as an attached file.
I've recreated the movie using Flash CS3 Professional, using actionScript 2.0, although it can now be coded using actionScript 3.0 if you prefer.
I've tried removing the_frame from _frame as you suggested; the movie plays but you get this error message:
## [Tweener] Error: The property 'frame' doesn't seem to be a normal object property of [object Object] or a registered special property.
You can view the movie at this address: http://freespace.virgin.ne
It's almost working correctly, however I would like the door to go down frame by frame on roll out, instead of on the second roll over as it currently does.
Hi,
I must admit I couldn't work out why those errors appear however I have provide an alternative solution which after some testing seems to be doing the task you asked for. The downside is I have had to add quite a bit of code to the MC itself. This code controls the state and direction of play, which is called by actions in the _root timeline.
Have a look and let me know what you think.
Business Accounts
Answer for Membership
by: john_hollingsPosted on 2009-03-30 at 04:21:05ID: 24017714
I would use labels to control the movie clip. For example: In you movie clip timeline I would have a layer called actions and a layer below called labels. On frame one of your MC I would have the following ActionScript in a key frame on the actions layer:
stop();
In the labels layer I would create a blank key frame and label this as start.
In frame two of the labels layer again have a blank key frame and label this over.
Now I'm not sure if you are using ActionScript 2 or 3 and how you have structured your Movie Clip. However I will continue with the assumption of ActionScript 3.
Create another layer labeled button and create an invisible button.
Just draw a rectangle with fill but no border. Select it and press F8 to create a symbol. Select button from the list and give it a name. Now double click the symbol you just created and you will see four frames on the timeline. To create an invisible button click and drag the keyframe to the hit frame.
Return to the timeline of your movie clip and make sure the invisible button is on the button layer extended through to the end of your movie clip timeline.
Give the button an instance name activate_btn for example. Now move to your main root timeline and if you have an ActionScript layer using the following code to get the activation to work on rollover.
Hope this is of help.
Select allOpen in new window