something like this ?
if (!theBox){
var vBox:VBox = new VBox();
vBox.id = 'theBox";
vBox.styleName = "theBoxStyle";
addChild(vBox);
}
// Add content to the box or whatever....
--API
On Wed, Apr 2, 2008 at 11:23 AM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:
> I want to dynamically create a VBox container for messaging from
> ActionScript, however it's unclear to me how to check if one already
> exists given its ID.
>
> var vBox:VBox = new VBox();
>
> vBox.id = 'theBox";
> vBox.styleName = "theBoxStyle";
>
> addChild(vBox); // here is where I want to check for getById('theBox')
> in the DOM before adding a new one.
>
> --
> Anthony Ettinger
> 408-656-2473
> http://anthony.ettinger.name
>
>