calculatedTotalCost: function (subTotals) { var x = {subValue: 0}; subTotals.each(function(el, i) { if(el.value) { this.subValue+= el.value; } }.bind(x)); var updateTotalCost = x.subValue; this.totalCost.set('text', this.formatCurrency(updateTotalCost.toFixed(2))); this.totalCost.set('value', updateTotalCost);
AS3 Convert MovieClip or Display to BitmapData
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();

AS3 | Crop image
var cropedImage:BitmapData = new BitmapData(positionImage.width, positionImage.height); var matrix:Matrix = new Matrix; var matrixXY:Point = new Point(); var smooth:Boolean = false; var bounds1 = positionImageMasking.getRect(this); var bounds2 = positionImage.getRect(this); matrixXY.x = (bounds1.x - bounds2.x)/positionImageMasking.scaleX;

Flash AS3 | Open local Image
import flash.net.FileReference;public function LocalFileAccessExample():void {var fileRef = new FileReference();fileRef.addEventListener( Event.SELECT, onFileSelect );fileRef.addEventListener( Event.OPEN, onFileOpen );fileRef.browse();}private function onFileSelect( event:Event ):void {var fileRef:FileReference = event.target as FileReference;fileRef.open();}//--------------------- option with filtervar

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)