SunQuest
 
           Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old November 15th, 2002, 05:26 PM
dr_schuss dr_schuss is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 1 dr_schuss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Dynamic Forms

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.

Reply With Quote
  #2  
Old May 14th, 2003, 05:31 AM
solisarg solisarg is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Madrid - Spain
Posts: 9 solisarg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #3  
Old May 27th, 2003, 02:03 AM
pelegk pelegk is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 6 pelegk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old May 27th, 2003, 02:25 AM
solisarg solisarg is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Madrid - Spain
Posts: 9 solisarg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Dynamic Forms


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway