Or just add a keyframe in the middle and change the alpha
On Mar 30, 2006, at 12:03 AM, Zeh Fernando wrote:
I have a movieclip animating across the stage using a tween in the
timeline. Halfway through that tween I'm using AS to set the
_alpha of the clip to 50%. At the moment I do this, if forgets
about the tween in the timeline and stops moving. Why is this
happenning? How do I tell Flash that I want the timeline animation
to keep working after I change a MovieClip property?
Timeline animations are something done on "design-time" - when
exporting the final SWF, flash actually renders all the motion
frames to precalculated pseudo-keyframes and then applies them when
playing the movie.
You can't make it 'switch' back to the timeline tween. As soon as
you change a property dynamically, it snaps out of any tweening and
flash won't update it anymore. You can do this:
1. Instead of changing the property on the movie that's being
tweened on the timeline, change it INSIDE it (for example, having a
container movieclip inside the movieclip itself, which you can
change the property); or
2. Drop timeline tweening and use 100% actionscript tweening instead.
Chosing option 1 can be messy and it's a bit different to figure
out (it will stack with yout timeline tweening, not overwrite or
change it) but it works on some cases. And chosing option 2 is
probably the best thing you'll ever do for your flash development
productivity.
- Zeh
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com