Category Archives: Flex Note

  • Flex Opensource SDK on Mac OS X

    Posted on September 23, 2008 by in Flex, Flex Note

    上星期VICKER去SFD PRESENT Flex opensource SDK個陣試用個mxml compiler 點知係MAC機整極都唔得.. 但係WINDOW一試就得…. 試左一大輪…再GOOGLE 完一餐之後先發現原來係因為File Format既問題…只需要改返個MXMLC 個FF 就OK哂..:D vim ./mxmlc :set ff=unix  http://www.nabble.com/AS3-Bundle-Fight-td19275296.html

    No Comments. Continue Reading...
  • Copying an ArrayCollection

    Posted on August 24, 2008 by in ActionScript, ArrayCollection, Flex Note

    There are multiple ways to copy an arraycollection .. 1. ac1 = ac2;2. ac1 = new ArrayCollection (ac2.source);3. ac1 = ObjectUtil.copy (ac2) as ArrayCollection; Method 1 copy the ac by reference.Method 2 will create an new ac instance, but the value (array) inside two ac are still the same.Method 3 will create completely two different [...]

    6 Comments. Continue Reading...
  • Dynamic source of Image control

    Posted on August 24, 2008 by in ActionScript, Flex Note, Image

    In order to change the image source dynamically instead of creating multiple image instances, we could make use of [Embed] tag as follows: [Embed(source="a.png")]private var _src_a:Class;[Embed(source="b.png")]private var _src_b:Class; _img = new Image ();if ( … ) { _img.source = _src_a;} else { _img.source = _src_b;} http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000968.html

    2 Comments. Continue Reading...