pixelmech
01-08-2009, 08:14 PM
I'm trying to programatically add the YDN Tree to the stage via my document class. I'm clearly doing something wrong but I be stumped. This is what I am trying:
package {
import flash.display.MovieClip;
import com.yahoo.astra.fl.controls.List;
import com.yahoo.astra.fl.controls.treeClasses.*;
import com.yahoo.astra.fl.controls.Tree;
public class Main extends MovieClip {
public function Main() {
var myTree = new Tree();
this.addChild(myTree);
}
}
}
I'm getting the errors
1017: The definition of base class List was not found.
and a bunch more like
1020: Method marked override must override another method.
I assume this is because List isn't found - and it doesn't appear to be in the Astra package I downloaded (http://developer.yahoo.com/flash/astra-flash/) - looking in the controls directory, it isn't there. Is this something I can import via flash instead?
package {
import flash.display.MovieClip;
import com.yahoo.astra.fl.controls.List;
import com.yahoo.astra.fl.controls.treeClasses.*;
import com.yahoo.astra.fl.controls.Tree;
public class Main extends MovieClip {
public function Main() {
var myTree = new Tree();
this.addChild(myTree);
}
}
}
I'm getting the errors
1017: The definition of base class List was not found.
and a bunch more like
1020: Method marked override must override another method.
I assume this is because List isn't found - and it doesn't appear to be in the Astra package I downloaded (http://developer.yahoo.com/flash/astra-flash/) - looking in the controls directory, it isn't there. Is this something I can import via flash instead?