?
Solved

UIComponent Combox Box Events problem

Posted on 2003-10-30
3
Medium Priority
?
221 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
1 Comment
 
LVL 27

Accepted Solution

by:
negatyve earned 80 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

850 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