Hi Having a problem getting a list component to display. Wondering can you edit the below to show me how to get it to work
package
{
import flash.display.MovieClip;
import fl.controls.List;
import fl.events.ListEvent;
/**
* ...
* @author S
*/
public class testScript extends MovieClip
{
var bordorList:List = new List();
public function testScript()
{
bordorList.addItem( { label : "Closed" } );
bordorList.addItem( { label : "Open" } );
bordorList.addItem( { label : "Circular" } );
bordorList.setSize(40, 100);
bordorList.move(602, 440);
this.addChild(bordorList);
}
}
}
Error is :
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::BaseScrollPane/drawBackground()
at fl.controls::List/draw()
at fl.core::UIComponent/callLaterDispatcher()