A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: add actions to combo box in flash 8

  1. #1
    Member
    Join Date
    Sep 2000
    Posts
    85

    add actions to combo box in flash 8

    hi,

    i have made a combo box. from the drop down, when user select option 1, option 2 etc.. it will run an action (gotoAndPlay(10) ....)

    appreciate it very much for any help rendered.

    thanks.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    cb.addItem ({label:"1"});
    cb.addItem ({label:"2"});
    cb.addItem ({label:"3"});
    var cbListener:Object = new Object ();
    cbListener.change = function (evt_obj:Object):Void
    {
    _root.gotoAndPlay (cb.selectedItem.label);
    };
    cb.addEventListener ("change", cbListener);
    - The right of the People to create Flash movies shall not be infringed. -

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