Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2008
    Location
    Mumbai
    Posts
    40
    Thanks
    8
    Thanked 0 Times in 0 Posts

    dropdown menu in flash..

    hi to all,

    I want to have dropdown menu in my website coded in flash.
    Does anybody know any tutorials for this ?
    thanks in advance.

  • #2
    New Coder
    Join Date
    Jul 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi Neha,

    Here are a few things that might get your started... and keywords you can google for....

    Code:
    var cb:ComboBox = new ComboBox();
    var dp:DataProvider = new DataProvider();
    
    cb.dataProvider = dp;
    
    dp.addItem({label: "Option 1", data: 1});
    dp.addItem({label: "Option 2", data: 2});
    dp.addItem({label: "Option 3", data: 3});
    
    addChild(cb);
    And some attributes you might need for your combo box (cb.**)...
    .width, .rowCount, .prompt, .dropdownWidth

    You should also be able to style it using a TextFormat();

    Hope that helps!


  •  

    Posting Permissions

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