I realize I might have done this the hard way, but bear with me as I am brand new to flash and need to get a simple presentation done for my boss by the end of the afternoon.
I have created set of dials/meters with moving arms that change as buttons are pressed. The arms move based on a "Classic Tween" set-up I created. I then applied my buttons to the flash document and then coded in some "gotoAndPlay" on an actions layer to get the arms on the dials to move when I click on the buttons. My problem is that since I have 3 buttons (High, Medium & Low) and the tweens follow one frame right after another (0, 41,78) there is no stop. When I click on Low it plays the low tween, the medium one, and the high tween. When I click on the medium it plays both the Medium and then the High. The High button obviously only plays itself. I don't know how to insert a stop between these buttons. Can you guys help me? I have pasted my simple code below os you can see it:
function onLow (Event:MouseEvent):void
function onMed (Event:MouseEvent):void
function onHigh (Event:MouseEvent):void
Please, please, please help me.
Thank you so much.
attach a stop() to the last frame of each of your tweens.
This answer seems intuitive, but I am wondering how to add that stop?
Do I add the stop to my Actions Layer or on the layer that has the actual moving arm?
Also, how to apply it to the specific frame? Just put the frame number in the paranthesis?
open your actions panel so it's visible (window/actions) and make sure your timeline is visible (window/timeline). then click on the frame where you want the timeline to stop. it doesn't matter which layer but it's nice to keep all code in the same layer so, if you have an Actions layer, use it.