Solved

UIComponent Combox Box Events problem

Posted on 2003-10-30
3
198 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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.

831 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