I've tried to import a ProgressBar component into an AS Class (extending Sprite).
The object would be created but wouldn't add to the display list.
I've read that you can't do so, and that the only way is to:
1: instance an AddChild object, add the new component instance to it and assign it to a component parent.
2: instance a States object, add a new state and add the AddChild object to it.
3: switch to the newly created state to display the dynamically created component.
Is that the only way? It's mostly useless....
This means that I should convert a few of my classes to Flex components.... bugger!




Reply With Quote