• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Flash UI Components Events in Flash MX

Hello All,
            i want to write the events for Flash UI Components in Flash MX , if a combox box has values 1,2,3,4,5 if i just choose 5 it must go on to 5th frame or some function call . Can someone tell me clearly where to write events for these components.(i have done this successfully in Flash 2004 using on (change){} but i am needed of that same functionalaty in Flash MX)
waiting for reply very badly.
                                    Zahid
0
zahidrahim
Asked:
zahidrahim
1 Solution
 
negatyveCommented:
Drop in the same frame where the combobox "combo_cb" lies:

combo_cb.setChangeHandler("changeFrame");
function changeFrame(cb){
      this.gotoAndPlay(cb.getSelectedItem().data);
}
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now