|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I make a MC play backwards? (kind of complex)
I have a MC that has a three frame labels in it. I want the user to click a button that takes them to label 1, 2, or 3. If they are on label 3, for example, i want the MC to play backwards, so that it looks like it is rewinding (going past label 2) etc..
here is an example:http://bigfishstudio.com/work/branding/usic.asp Any Ideas??? --adam |
|
#2
|
||||
|
||||
|
Create a function that is envoked at every frame of the swf.
mabey try _root.onEnterFrame = function() on level one or something like that somewhere, you get the idea....... Use a binary variable and an regular var for whatever frame and an if else chain inside that function. if(binary = true && mc._currentframe != frameNumber){ mc.gotoAndStop(mc._currentframe +1); } else if (binary = false && mc._currentframe != frameNumber){ mc.gotoAndStop(mc._currentframe -1 ); change the _root.binary and the _root.frameNumber on the button clips with an if else on each button. |
|
#3
|
|||
|
|||
|
sorry, for being a moron, but could you explain it a bit more?
im not super awesome on functions... --adam |
|
#4
|
||||
|
||||
|
Here is a simplified version in the attachement, but to do the example you show in your link you need to do the math on each stop flag testing for greater than or less than and use an easing method.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > How do I make a MC play backwards? (kind of complex) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|