hello
I want to see in the trace with in order; “1”, “2”, “3”
but now the trace output is “1”, “3”,“2” and I don’t learn really picture size
Can you help me please?
Thanks you.
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Matrix;
import mx.utils.Delegate;
import DistortImage;
ev.loadMovie (“1.jpg”);
ev._width=720;
ev._height=540;
photo.loadMovie (“kapi.jpg”);
photo._width=599;
photo._height=297;
trace(“1”);
var con1:MovieClip = createEmptyMovieClip(“con1”, getNextHighestDepth());
var mc1:MovieClipLoader = new MovieClipLoader();
mc1.addListener(this);
mc1.loadClip(“kapi.jpg”,con1);
function onLoadStart(mc1:MovieClip)
{
trace(“2”);
kal= con1._width;
mal= con1._height;
con1._visible=false;
photo._visible=false;
}
trace(“3”);
kal=599;
mal=297;
var myBitmapData:BitmapData = new BitmapData( kal, mal, true, 0x000000);
var fade_mc:MovieClip = this.attachMovie(“bkgnd”,“mcBkgnd”, this.getNextHighestDepth());
fade_mc._visible = false;
var idMatrix:Matrix = new Matrix();
var blendMode:String = “normal”;
var smooth:Boolean = true;
myBitmapData.draw(fade_mc, idMatrix, null, blendMode, null, smooth);
var mc:MovieClip = this.createEmptyMovieClip (‘test’, this.getNextHighestDepth());
var d:DistortImage = new DistortImage ( mc,myBitmapData, 5, 5 );
this.onEnterFrame = function ()
{
var x0:Number = p1._x;
var y0:Number = p1._y;
var x1:Number = p2._x;
var y1:Number = p2._y;
var x2:Number = p3._x;
var y2:Number = p3._y;
var x3:Number = p4._x;
var y3:Number = p4._y;
d.texture.draw(photo);
d.setTransform( x0, y0, x1, y1, x2, y2 ,x3, y3 );
}
p1.onPress = p2.onPress = p3.onPress = p4.onPress = function ()
{
startDrag (this);
};
p1.onRelease = p2.onRelease = p3.onRelease = p4.onRelease = function ()
{
stopDrag ();
};