var shirtImage:BitmapData = new BitmapData(530, 300);
shirtImage.draw(shirtObj);
var imagePreview:MovieClip = new MovieClip();
imagePreview.graphics.beginBitmapFill(shirtImage);
imagePreview.graphics.drawRect(0, 0, 530, 300);
imagePreview.graphics.endFill();
var disableMC:MovieClip = new MovieClip();
layer2.addChild(disableMC);
disableMC.graphics.beginFill(0x000000, 0.75);
disableMC.graphics.drawRect(0, 0, 859, 352);
disableMC.graphics.endFill();
layer1.enabled = false;
TweenMax.to(layer1, 0.25, { blurFilter: { blurX:7, blurY:7, quality:1 }} );
layer2.addChild(imagePreview);
imagePreview.x = 150;
imagePreview.y = 20;
imagePreview.addEventListener(MouseEvent.CLICK, function ()
{
TweenMax.to(layer1, 0.25, { blurFilter: { blurX:0, blurY:0, quality:1 }} );
while( layer2.numChildren > 0 )
layer2.removeChildAt( 0 );
}
);
Category List
- Actionscript 3 (2)
- Digital Painting (1)
- Life style (1)
- Photoshop (1)
- Sencha Touch (1)
Blog Archive
-
▼
2010
(50)
-
▼
March
(12)
- Mootool | Native Array Sum Value in Elements
- Identify Font
- AS3 | Call Javascript Function
- AS3 | Stage no scale
- Flash AS3 | Why buttonMode not working
- AS3 Convert MovieClip or Display to BitmapData
- AS3 | Crop image
- Flash AS3 | Proportion Width and ScaleX
- Wamp & Another Package PHP | Virtual Host
- PHP | Config with Apache 2.2
- Flash AS3 | Open local Image
- Flash AS3 | Remove all child from display object
-
▼
March
(12)