PDA

View Full Version : share animation between more objects


aneuryzma
01-16-2009, 09:17 AM
Is it possible to share the same animation in a library object in order to use it with different text content ?

In other words, is it possible to have more text that use the same animation, so I don't have to change all of them ?

Is maybe this only possible in actioscript ?

thanks
Patrick

snickelfritz
01-16-2009, 05:10 PM
if you create an animation within a library symbol, all instances of that symbol will have the same animation.

To set different text for each of the instances requires actionscript.
ie:
instances are named "instance1","instance2","instance3"
the nested textfield is named "textLabel"

instance1.textLabel.text = "instance1 text goes here";
instance2.textLabel.text = "instance2 text goes here";
instance3.textLabel.text = "instance3 text goes here";


The result is three identical animations, each with unique text.

aneuryzma
01-16-2009, 08:58 PM
thanks