In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: flash on 2014-8-24

For some strange reason you have to use the fully qualified class name =(
Get Adobe Flash player
by milchreis 24 Aug 2014
    Embed
/**
 * Copyright milchreis ( http://wonderfl.net/user/milchreis )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/lFFD
 */

// forked from dannnn's flash on 2014-8-24

/*

For some strange reason you have to use the fully qualified class name =(

*/
package 
{
    import flash.display.Sprite;
    
    import com.bit101.components.*;
    
    public class ListExample extends Sprite
    {
        private var a:Slider = new Slider();  // this works
        //private var b:List = new List();    // this fails
        private var c:com.bit101.components.List = new com.bit101.components.List(); // this works
        
        public function ListExample()
        {
            var X:String = "XXX";  //no need to use "new + constructor" here
            var Y:String = "YYY";
            var nX:String = "nnn";
            var nY:String = "mmm";
            c.addItem( X + Y + nX + nY + "aaa" );
            addChild(c);
        }

    }
}