Solved

UIComponent Combox Box Events problem

Posted on 2003-10-30
3
177 Views
Last Modified: 2010-04-03
Hello All,
            i want to write the events for Flash UI Components like if a combox box has values 1,2,3,4,5 runtime if i just choose 5 it must go on to 5th frame or some function call . Can someone tell me the clearly where to write events for these components.
waiting for reply very badly.
                                    Zahid
0
Comment
Question by:zahidrahim
3 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 20 total points
ID: 9668283
// fill the combo with labels and data
combo_cb.setDataProvider([
                                      {label:"first frame",            data:1},
                                      {label:"second frame",      data:2},
                                      {label:"third frame",            data:3},
                                      {label:"fourth frame",      data:4},
                                      {label:"fifth frame",            data:5}
                                      ]);
// set the function name to be called when data changes
combo_cb.setChangeHandler("changeFrame");
// define the function
function changeFrame(cb){
      this.gotoAndStop(cb.getSelectedItem().data);
}
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now