PDA

View Full Version : QUEUED creationPolicy in ActionScript


angie
09-25-2008, 05:27 PM
I'm trying to create an ActionScript component that has a creationPolicy of queued, but this does not display at all. An equivalent MXML component displays without any problems. My code is below. Is there something else that is required when the component is ActionScript? Thanks.


public class ASQueued extends Panel
{
public function ASQueued()
{
super();
this.creationPolicy = ContainerCreationPolicy.Queued;
}

override protected function createChildren():void
{
super.createChildren();
var t:TextInput = new TextInput();
addChild(t);
}
}

angie
09-25-2008, 05:29 PM
Sorry, there was a type, QUEUED is actually uppercase, eg
this.creationPolicy = ContainerCreationPolicy.QUEUED;