Month: December 2010
[AS3] Concept of display list
http://www.oreillynet.com/pub/a/oreilly/digitalmedia/helpcenter/actionscript30cookbook/chapter6.html
Highlight : Stage -> Main -> DisplayObject(s) -> …
[AS3][Function]Anonymous, inline, and named functions in ActionScript
what is inline function …
http://www.darronschall.com/weblog/2004/08/anonymous-inline-and-named-functions-in-actionscript.cfm
[AS3] Flash Tips (MUST READ)
Flash Tips
http://haxe.org/doc/flash/cheatsheet
[AS3] Mac Dock Style Flash
[AS3] 搵翻 GAIA 唔洗 FLASH,用 ANT 都得!
http://kevincao.com/2010/03/workflow-robotgaiaant/
[Math] 單位 px 與 cm 如何轉換
單位 px 與 cm 如何轉換?
1cm = ?px, 1px = ?cm.
在 PowerPoint (ppt) 製作, 要在網頁的截圖上開始畫畫時, 特別需要~
公分(cm) 與 px 如何轉換?
* 1px = 0.04cm
* 1cm = 25px
[AS3] Flex no MXML using Application
[as3]
package
{
import mx.core.Application;
import mx.events.FlexEvent;
import mx.styles.StyleManager;
import mx.styles.CSSStyleDeclaration;
import mx.controls.Button;
import mx.skins.halo.HaloBorder;
import flash.display.Bitmap;
public class Main extends Application
{
[Embed(source="../library/up.png")]
public var UpState : Class;
[Embed(source="../library/over.png")]
public var OverState : Class;
[Embed(source="../library/down.png")]
public var DownState : Class;
public function Main()
{
super();
this.layout = "absolute";
this.addEventListener(FlexEvent.CREATION_COMPLETE, handleComplete);
setupStyles();
}
private function setupStyles() : void
{
var style:CSSStyleDeclaration = new CSSStyleDeclaration();
style.setStyle( "borderSkin", mx.skins.halo.HaloBorder );
StyleManager.setStyleDeclaration( "Application", style, false );
style = new CSSStyleDeclaration();
style.setStyle( "textAlign", "left" );
style.setStyle( "fontAntiAliasType", "advanced" );
style.setStyle( "fontGridFitType", "pixel" );
style.setStyle( "paddingLeft", 10 );
style.setStyle( "paddingRight", 10 );
style.setStyle( "paddingTop", 5 );
style.setStyle( "paddingBottom", 5 );
style.setStyle( "horizontalCenter", 0 );
style.setStyle( "verticalCenter", 0 );
style.setStyle( "upSkin", UpState );
style.setStyle( "overSkin", OverState );
style.setStyle( "downSkin", DownState );
StyleManager.setStyleDeclaration( "Button", style, false );
}
private function handleComplete( event : FlexEvent ) : void
{
var button : Button = new Button();
button.label = "labelBtn";
addChild( button );
}
}
}
[/as3]