Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

UIComponent Combox Box Events problem

Posted on 2003-10-30
3
Medium Priority
?
220 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 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

618 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