flash on 2011-9-6
♥0 |
Line 19 |
Modified 2011-09-06 09:05:59 |
MIT License
archived:2017-03-20 16:57:47
ActionScript3 source code
/**
* Copyright hacker_rs10vazy ( http://wonderfl.net/user/hacker_rs10vazy )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/99TU
*/
package {
import flash.display.Sprite;
import flash.geom.Matrix;
import flash.geom.Rectangle;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var RectangleSprite : Sprite = new Sprite ();
RectangleSprite.graphics.beginFill ( 0xff44ff , 1 );
RectangleSprite.graphics.drawRect ( 0 , 0 , 120 , 120 );
RectangleSprite.graphics.lineStyle ( 1 , 0x000000 , 1 , true );
RectangleSprite.graphics.endFill ();
addChild(RectangleSprite);
var matrix_custom:Matrix = new Matrix(0.6543766856193542, 0.5424861311912537, -1.3947492837905884, 1.68242347240448, 0, 0);
RectangleSprite.transform.matrix = matrix_custom;
RectangleSprite.x = 0;
RectangleSprite.y = 0;
}
}
}