all groups > flash (macromedia) > april 2005 >
You're in the

flash (macromedia)

group:

combobox component - targetting frames


combobox component - targetting frames pptdgc
4/8/2005 6:02:51 PM
flash (macromedia): I have created a combo box with 5 different labels. I want each label to target
a different frame within the same movie. So that when the user selects one of
the five options for the combo box it will goto a different frame of the movie.
I have craeted the labels but am not sure how to make them target the different
frames??

Thanks

Re: combobox component - targetting frames urami_
4/10/2005 12:00:00 AM


[quoted text, click to view]

Flash MX

Open Component panel CTRL F7 - drag ComboBox on stage.
Select the Combo and hit CTRL F3 , open properties panel and start with instance name ,
call it "Combo_Box" Move to the right side , the Parameters panel.
CLick on LABELS , than click the Icon that appear once selected.
+ add value , - remove value
This will make the list of names for the links in your drop down.
Call as you like .
Now move down to DATA, again click Icon and here you define your LABEL names .
NOTE !
do not use spaces or do not start labels with digits.
Call it , label_link1 label_link2 etc.....
Row Count keep as it is , just change the Handler , key in "comboBox"
So now you component is pretty much set up , all you need is function on timeline
to digest these values and put them in some order and into actions.

function comboBox() {
myValue = Combo_Box.getValue();
myValue._alpha = 10;
loadMovieNum(myValue+".swf", 1);
gotoAndStop(myValue);
//etc......
}


myValue is your combo output ,just combine as expression with whatever action you need .
Pretty much it , hope I did not miss anything ......


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: combobox component - targetting frames Cristiano Albrecht
7/21/2005 6:50:29 PM
I have a "stupid" question:
I have Flash MX Professional, but I can not see the Handler field at the Combo
Box Component properties...why is that? what I'm missing?
Thank you for your help!

Cristiano

AddThis Social Bookmark Button