Mootool | Native Array Sum Value in Elements

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);

p1

Identify Font

http://www.identifont.

p1

AS3 | Call Javascript Function

import flash.external.ExternalInterface;...ExternalInterface.call("your_javascript_function()

p1

AS3 | Stage no scale

stage.scaleMode = StageScaleMode.NO_SCA

p1

Flash AS3 | Why buttonMode not working

Child as Dynamic TextField on the top.mySprite.buttonMode = true;//By default useHandCursor is true;//mySprite.useHandCursor = true;mySprite.mouseChildren = fal

p1

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();

p1

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;

p1

Flash AS3 | Proportion Width and ScaleX

myMovieClip_MC.width = 300;myMovieClip_MC.scaleY = myMovieClip_MC.scal

p1

Wamp & Another Package PHP | Virtual Host

http://foundationphp.com/tutorials/apache22_vhosts.

p1

PHP | Config with Apache 2.2

Download PHP here http://windows.php.net/download/http://www.thesitewizard.com/php/install-php-5-apache-windows.sh

p1

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

p1

Flash AS3 | Remove all child from display object

while( layer2.numChildren > 0 ) layer2.removeChildAt( 0 );

p1