|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I am currently developing a moderately large app that requires a lot of different form input.
I am new to Flash and wonder if anyone would care to comment on dynamic forms in Flash. I need to weigh the costs and benefits. I was thinking of some sort of folding page to simplify the look of complex forms. I also need to query a DB to build forms on the fly per user input -- like they enter a state, the available zipcodes appear, then the available cities, etc. Thanks for reading and any replies. |
|
#2
|
|||
|
|||
|
Using components (Flash MX), dinamyc forms is easy. You just need to know how to retrieve the data from different components (combobox, listbox, radio buttons, etc) The ActionScript dictionary helps you in this.
To dynamic build forms, you need to use attachMovie to drop components in Stage on the fly, so don't forget to include all that you needs in the library Jorge |
|
#3
|
|||
|
|||
|
but how do u do it dynamiccly?
what code do i need to write do i will
put the combo,radio and so on on the stage on the fly? thnaks peleg |
|
#4
|
|||
|
|||
|
Here I attach dinamically a Combobox and set a ChangeHandler. First you need to drag a combobox to the stage and delete it (so it remains in library) Do the same with all components you want to include
this.attachMovie("FComboBoxSymbol", "myList", 1, {_x:100, _y:100}); myData =["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]; for(var i=0; i<myData.length; i++) myList.addItem(myData[i]); myList.setChangeHandler("show"); function show(obj){ var selected = obj.getSelectedItem().label trace(selected) //Your code to use the selected value } Jorge |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Dynamic Forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|