Latest posts

Apr 142013

Find extension of a file

Adobe AirAS3Flash

/** * * find extension of a file */ private function findExtension(str : String) : String { return String(str.split(".")[1]).toLowerCase(); }

Read More
Apr 142013

Resize image to fit in a rectangle

Uncategorized

/** * resize image to fit in a rectangle */ public function resizeToFit(mc : MovieClip, width : Number, height : Number) : void { var largeWidth : Number = mc.width; var largeHeight : Number = mc.height;...

Read More
Apr 142013

Set the movieclip color

AS3Flash

/*** set the movie clip color */ public function setColor(mc : MovieClip, color : Number) : void { var colorTransform : ColorTransform = mc.transform.colorTransform; colorTransform.color = color; mc.transform.colorTransform...

Read More
Feb 82013

Cube with different color faces

AS3Away3DFlash

public class away3DBasico_v003 extends Sprite { public var view:View3D = new View3D();   public var plano1:PlaneGeometry = new PlaneGeometry(100,100,1,1,true);//false indica si el plano esta acostado o parado   public var...

Read More
Feb 82013

Away3d 4 Beta: Bitmap texture with loaded image

AS3Away3DFlash

// creating the mesh var geometry:SphereGeometry = new SphereGeometry (100); var sphere:Mesh = new Mesh(geometry); scene.addChild(sphere); // loading texture var url:String = 'image.jpg';...

Read More
Feb 82013

Create a square in AS3

AS3

var square:Sprite = new Sprite(); addChild(square); square.graphics.lineStyle(3,0x00ff00); square.graphics.beginFill(0x0000FF); square.graphics.drawRect(0,0,100,100); square.graphics.endFill(); square.x =...

Read More
Apr 232012

Stylekit: a CSS3 parser and rendering engine intended for use in AS3

AS3CSSFlash

http://www.as3gamegears.com/ui/stylekit/  

Read More
Mar 252012

Javascript check for IE

Javascript

function getInternetExplorerVersion() {     var rv = -1; // Return value assumes failure.     if (navigator.appName == 'Microsoft Internet Explorer') {         var ua = navigator.userAgent;         var re = new...

Read More
Nov 262011

Jquery tips and tricks

Javascript

I recently found a very good article of some useful jquery tips and tricks here it is: http://www.opensourcehunter.com/2010/02/27/26-cool-and-usefull-jquery-tips-tricks-solutions/

Read More
Jun 252011

move a movieclip to top of everything in Actionsctipt 3.0

AS3Flash

A quick and easy way to move a movieclip to top of everything in Actionsctipt 3.0: function moveToTop( mc:DisplayObject ):void { (mc.parent != null) ? mc.parent.setChildIndex(mc, mc.parent.numChildren-1) : null; }

Read More
Page 47 of 48« First...102030...4445464748