I am very new to flash, like couple of weeks new. After much research I figured FlashDevelop is the way to go because it is easy to manage and write large amount of AS3 codes. But I am facing few setbacks, and will appreciate your help.
I am trying to build a GUI for my C# application. I want to build the GUI in flash and not use Windows form. I have successfully build small projects and incorporated them to test c# applications. Right now I am trying to build a larger GUI project in flash CS3 and FlashDevelop.
I am designing the flash components in Flash CS3 and exporting them as .swc files and using these components in AS3 code in flashdevelop. In my current project, the main GUI opens with couple of buttons (eg; "Create group" and "Delete group") at the top. When "Create group" button is clicked a popup box appears in the lower portion of the GUI (it is just a symbol exported from CS3 that I add to the stage using addChild() function) in this pop up there are components like TextInput, ColorPicker, TileList and buttons (Ok and Cancel).
Now what I want to do is take the input from these components and store them in variables in my AS3 code and use the values of these variables to manipulate features of other components that I have exported (.swc file).
Let me expalin how I export the components from flash CS3. For the pop up I created a rectangular container and then created its symbol (by pressing F8) and also exported it (say I named the symbol as PopUPWindow and checked the checkbox "Export for ActionScript"
). Now I go to "Edit Symbols" drop down and choose "PopUpWindow" symbol. Then I add other components to "PopUPWindow" like TextInput, ColorPicker, TileList and buttons, I create a symbol for all these components (e.g.; PopUpColorPicker for ColorPicker) but I do not export them
. At the same time I also create instances of these symbols using the properties window
Finally I publish the .swc file where I need it.
Now in FlashDevelop, I create a class for the "PopUpWindow" that I exported say classPopUpWindow. Then I create an instance of this class in Main.as, say
public var testPopup:classPopUpWindow = new classPopUpWindow();
Now, when I use this object "testPopup", and use the (.) period operator after that object I can access all the symbols that I created in Flash CS3 under "PopUpWindow" symbol (the FlashDevelop intellisense shows them in the IDE).
The color picker is above accessible, but when I try to use another (.) period and try to access the selectedColor property of colorPicker symbol
it is not accessible. Similar things happen to other symbol's properties, like text property of TextInput symbol of the PopUpWindow is also not accessible.
But when I try to addEventListener like this
Suggestion on this are greatly appreciated.
Also if you know then please point me to some tutorials or books that explain how to export the different components/Symbols from flash CS3 and access their properties in flashdevelop.
Note: all these components I have talked about are exported in a single .swc file from Flash CS3. And also for the smaller projects that worked for me earlier all the Symbols were exported for the ActionScript.