Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
A Position Tween With The Tween Class  

Download

Actionscript

import mx.transitions.Tween;
import mx.transitions.easing.*;

var xPositionT:Tween = new Tween(my_mc, "_x", Strong.easeOut, -50, 400, 2, true);


Note: Press the "refresh" button in the browser to play the animation again.


The tween transition class is imported.


import mx.transitions.Tween;

All the easing transitions are imported to the ........

import mx.transitions.easing.*;

A new tween is contructed named "xPositionT" and defined using the tween class syntax:
Tween (object name, property, ease class, ,,,).

var xPositionT:Tween = new Tween(my_mc, "_x", Strong.easeOut, -50, 400, 2, true);


© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us