View Full Version : Bug: change property while animating STOP animation
neves
June 2nd, 2007, 08:36 PM
Try to change ANY property of a movieClip while itīs animating. The animation will stop!!!
Hereīs a simple example:
http://www.flexbrasil.com.br/as3/change_property_while_animating.rar
dthought
June 3rd, 2007, 09:45 AM
That's not a bug. That's a misunderstanding you're having with Flash.
A tweened animation - on the timeline - requires that both the start and end frames be able to be animated from one state to another (eg. change of position, rotation or whatnot).
When you programmatically affect a manually tweened animation, you're breaking its tween, and it no longer matches either the start or the end of the tween.
Therefore, for any given object you must either:
a) Only animate manually
or
b) Only animate via scripting
You can of course have a tween animation inside another clip, but you cannot affect the clip's timeline scope where it is being tweened itself.
I find it funny that any time someone doesn't understand anything, they immediately class it as a bug, rather than something they just didn't realise. :P
senocular
June 3rd, 2007, 02:11 PM
Yeah, its one of those weird Flash things - just a fact of life of the design of Flash.
To get around it, you would place your animation/tween within another movie clip and change the properties of that new movie clips (letting the animation play within it untouched)
whoops, dthought already said that ;)
neves
June 3rd, 2007, 07:29 PM
That's not a bug. That's a misunderstanding you're having with Flash.
A tweened animation - on the timeline - requires that both the start and end frames be able to be animated from one state to another (eg. change of position, rotation or whatnot).
When you programmatically affect a manually tweened animation, you're breaking its tween, and it no longer matches either the start or the end of the tween.
Therefore, for any given object you must either:
a) Only animate manually
or
b) Only animate via scripting
You can of course have a tween animation inside another clip, but you cannot affect the clip's timeline scope where it is being tweened itself.
I find it funny that any time someone doesn't understand anything, they immediately class it as a bug, rather than something they just didn't realise. :P
Completely right. When something seems wrongly, the first guilty is the tool :)
But hopefully with AS3, we are free from many weirds of flash. But we get new ones :(
senocular
June 3rd, 2007, 08:57 PM
this, by the way, is an old one.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.