Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

Loader tween in flash

Im trying to make a flash document which allows me to dynamically load an image and then tween it across the screen, if I just load the loader on the screen then load the image it works fine, but as soon as I add the motion tween it doesnt work :-(

To load the image up dynamically I can use the code:-
ldrLoader.contentPath = "http://www.google.co.uk/intl/en_uk/images/logo.gif";

Ive upload the flash document to http://www.tonycross.me.uk/Loader.fla to kinda describe it better.

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Zeffer
Zeffer
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
import mx.transitions.easing.*;

don't forget to import the easing package so you are able to use Strong, Elastic, Bounce, Regular or whatever interpolation function classes you want.
Avatar of section25
section25

mc_tween also works nicely for this and give you lots of options.

You can get it here. I use it all the time.
http://hosted.zeh.com.br/mctween/