A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Using Combo Box and GO option

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    Using Combo Box and GO option

    Hi, I'm using flash MX, I saw a drop down menu, where you select the text option you'd like to use, and then push a GO button right after you select. how can I make the same GO button on flash MX?

    So far I've done the combo box menu. But the variables, and the use of a button for GO, I still haven't figured out.

    Could someone help me out on this one?

    I know there is a big easy turn around using HTML or DHTML but I need this to work on flash, as it is part of the design.

    Please help.

    David R.
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  2. #2
    FK Newb Beater
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    676
    See attached code:

    Is that what you wanted?
    Just because you changed the code, doesn't mean it's yours

    Most Recent Work:
    Commercial tanning beds website

  3. #3
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    I cannot use the file :(

    I am using flash mx 2004. the file you attached cannot be opened. It gives me an error. Could you explain by text how to do a combo box with a go button.

    Please, could you help?
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  4. #4
    FK Newb Beater
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    676
    That error should not occur. FMX04 is the most recent...anyway, here is the source
    code:
    comboData = ["www.msn.com", "www.google.com", "www.yahoo.com", "www.altavista.com", "www.overture.com", "www.netscape.com", "www.looksmart.com"];
    combo_cb.dataProvider = comboData;
    combo_cb.selectedIndex = undefined;
    myEvent = new Object();
    myEvent.click = function() {
    if (combo_cb.value) {
    getURL("http://"+combo_cb.value);
    } else {
    getURL("http://www.albinoblacksheep.com/flash/you.html");
    }
    };
    go_bn.addEventListener("click", myEvent);

    Just because you changed the code, doesn't mean it's yours

    Most Recent Work:
    Commercial tanning beds website

  5. #5
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    Combo box doesn't open

    Hi, I use flash mx 6.0 (r4 - i don't have it).
    That's why I cannot open the file. What If you export as flash 6? maybe? Thanks for the help I'm really trying. All though the actionscrip is cristal clear to me, I don't know where to ACTION it. To the combo box? what about the YES (in this case> GO) button I'll place? does it carries some actionscript too?

    Thanks.
    David
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  6. #6
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    Could someone help me out please?

    Making a combo drop down menu with a GO button ready to select , ad press, and then go to the selected menu option as web page, shouldn't be hard.

    It's just the new MX actionscript that's driving me nuts. I even have thought about doing it by frame fakes, instead of actions.

    Please help me make a combo box with options to select and a GO button right after.

    Thanks
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  7. #7
    FK Newb Beater
    Join Date
    Dec 2002
    Location
    Seattle
    Posts
    676
    Here you are
    Just because you changed the code, doesn't mean it's yours

    Most Recent Work:
    Commercial tanning beds website

  8. #8
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    Thank you this one Works!

    here is a link of what I am trying to accomplish, since the design requires a stylish YES! button *instead of go.

    http://www.davidr.boxesmedia.com/3.zip

    I tried to replace in frame 1 the action so that it would recorginize my YES button as trigger to get the URL but it didn't work, In the file you'll find what I am trying to do.

    And thank you, you are a great help!
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

  9. #9
    Junior Member
    Join Date
    Sep 2001
    Posts
    17

    WORKING now, at some level.....

    http://www.davidr.boxesmedia.com/INTRO.ZIP

    I got the combo box working. It has a variable that idicates the url to get.

    I need this combo box to work with a corresponding name, then send the URL as variables. I know there could be a better method. The combo box should display:

    I need to look up in yahoo (www.yahoo.com)
    I need to connect to hotmail (www.hotmail.com)


    *of course the parenthesis are the variables to pass to the get value from the combo box.

    I tried a zillion ways, set var, set array. none. I'm doing something wrong.

    The file you originally sent gave me a good start, thanks man.I know it is possible to accomplish this simple thing. I'm just new into action scrip 6.2, it's so changed...

    Thanks again. Could you help me out on this one, please?

    David R.
    Last edited by sirdavid23; 09-07-2004 at 02:52 PM.
    Change your perspectives.
    Imagine and dream.
    www.imagindreams.com

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