mardi 14 mars 2017

how can i make this into as3 format when its in as2?

iam a beginner in flash and often follow tutorials on :http://ift.tt/1m67A7c to learn how to make actionscripts and when i come upon this code i had no clue of as2 making this into as3
//how can i make this into as3 when its as2?// enter code here// import flash.filters.BevelFilter; var distance:Number = 2; var angleInDegrees:Number = 45; var highlightColor:Number = 0xff00ff; var highlightAlpha:Number = 1; var shadowColor:Number = 0xbb00bb; var shadowAlpha:Number = 1; var blurX:Number = 8; var blurY:Number = 8; var strength:Number = 10; var quality:Number = 3; var type:String = "inner"; var knockout:Boolean = false; var my_bevel_filter:BevelFilter = new BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout); //and this one is not supported by as3 anymore// terrain.lineStyle(20, 0xdd00dd, 100); terrain.filters = new Array(my_bevel_filter); //how can i make this into as3?// imdrawing = false; //onMouseDown = function () { if (imdrawing == false) { terrain.moveTo(_xmouse, _ymouse); imdrawing = true; } if (imdrawing == true) { onEnterFrame = function () { terrain.lineTo(_xmouse, _ymouse); }; } }; onMouseUp = function () { onEnterFrame = function () { imdrawing = false; }; };

Aucun commentaire:

Enregistrer un commentaire