hi, I'm doing something pretty simple, I have a movie clipo which starts drag, I'd like to move this in the x axis, but I don't know how to program this to launch an event if the x axis is positive and other is the x axis is negative, or simpler how can I trigger an event is the movie clip is moving right and trigger other event is the movieClip is moving left....
any ideas?

so far I'm using this.


var xright = this._x+1;
var xleft = this._x-1;

if (this._x==xright){
launching
}
if(this._x==xleft){
launching2
}





Gustavo Duenas

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to