A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: instead of a question, lets make this a CHALLENGE

  1. #1
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356

    instead of a question, lets make this a CHALLENGE

    okay, i've tried this before, but didnt get too good of a repsonse..
    Here's my delima and your challenge. I want to make a one frame move that contains two (or more) combo boxes. When the movie loads, the first combo box will have three choices, while the second and subsequent will be blank. Upon choosing an option from the first combo box, options will be poplulated in the other boxes depending on what the first choice is. I know how to add labels and data thru the authoring tool, but i need to understand hot to manipulate them thru actionscript to achieve my desired effect...

    Has anybody done this, or can someone post some well commented script to shop me how i can do this?
    if you'd like you can e-mail me at
    mrobinson@devap.com

    thanks,
    -myk


  2. #2
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    This should actually be pretty easy. You will need to create a change handler for the first combo box that will:
    1: Get the value of the first combo box.
    2: Clear out the second Combo box.
    3: Repopulate the second Combo box based on what was selected.
    I have done stuff similair but not exactly like this. I will play with it a little bit later and post the code.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  3. #3
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    thanks, jason.
    I'll be waiting

    anybody else wanna take a stab at it too?


    -myk

  4. #4
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    Sample File:
    http://jasonsplace.port5.com/dynamic_combo_boxes.swf

    Zip File containing .FLA and .SWF
    http://jasonsplace.port5.com/dynamic_combo_boxes.zip
    I hope these files help. Have a Great Day! If you have any questions, feel free to e-mail me at jason.wright@waterford.org
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  5. #5
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    man, you are a freakin' genius!
    the swf is exactly what i'm trying to do.
    i'll download the FLA and see if i can understand it..
    thanks,
    -myk

  6. #6
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    hey, jason-
    the zip file only has the SWF. Can you post the FLA file?
    thanks,
    -myk

  7. #7
    Senior Member Sir Yendor's Avatar
    Join Date
    Sep 2001
    Location
    Over here
    Posts
    1,140
    This is awesome. I'd love to see the FLA too.

  8. #8
    -Iron Myk- mykrob's Avatar
    Join Date
    Dec 2001
    Location
    Jackson, TN
    Posts
    1,356
    here ya go, he e-mailed it to me at work.

    -myk
    Attached Files Attached Files

  9. #9
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    I'm glad that I could help. If you have any questions, just e-mail me. Also, a good place to learn how to use components is the Actionscript Reference Guide (In the Help menu). That is where I learned everything I know.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center