Código PHP:
public class LoadExternalFoto extends MovieClip {
private static var ALPHA:int = 100;
private static var valueAlpha:int=100;
private var VALCONST:int= 800;
private var valu:Number= 0.5;
//private var valMove:int;
private var velocidad:Number = 1.7;
private var friccion:Number = 0.009;
private var speed:int= 4;
private var speedd:int;
public function LoadExternalFoto() {
var loader:Loader = new Loader();
addChild(loader);
loader.addEventListener(Event.ENTER_FRAME, onMove);
}
private function onRollOut(event:MouseEvent):void {
this.onMove(350);
}
private function onMove(valMove:uint):void{
this.x += (valMove - x)/5;
}
Saludos