forked from: flash on 2014-8-24
For some strange reason you have to use the fully qualified class name =(
/**
* 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);
}
}
}