Solved

UIComponent Combox Box Events problem

Posted on 2003-10-30
3
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
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.

726 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