10/28/2010 4:59:31 PM
Title:
Native UI Elements
Hi!, I was wondering if there's any way to use native UI elements (i.e. System's buttons, pop-ups, dialogues etc.) when building a Adobe AIR App using ActionScript 3 and Flas.
Thanks!
10/28/2010 9:18:52 PM
In case of flash you can use the components that are provided in Flash only. The UI components that belong to Flex framework cannot be used in the flash environment.
In flash for example to use a button with actionscript it must be present in the library. For that drag the component to stage and then delete it, the component will get added to library now you can use the following code to add it to stage
import fl.controls.Button;
var abc:Button= new Button()
addChild(abc)