Hi everybody,
A total newbie here looking for the following knowledge:
I want to use the ComboBox component to open an external swf file in a movie clip (or in level 2 if too complicated), what im woking on is a store locator where each state in the comboBox menu will open an external swf with the list of stores related to that particular state.
Any help with this code will be appreciated.
Note:
I Looked throu the postings here and found this post from bembino in 2003:
------------------------------------------------------------------------
Place a combobox on frame 1 of the main timeline
Name it externalSWF_cb
Select frame 1 of the main timeline and open the Actions Panel
Type the following code:
// create array of label and data info for combobox
externalSWF_array = [ {label:"Fade JPG", data:"fadeJPG.swf"}, {label:"Load Big JPG", data:"loadBigJPG.swf"}];
// populate combobox with data from array
externalSWF_cb.setDataProvider(externalSWF_array);
// define changeHandler for combobox
function onExtSWFSelected(cb) {
loadMovieNum(cb.getSelectedItem().data, 2);
}
//assign changeHandler to combobox
externalSWF_cb.setChangeHandler("onExtSWFSelected" );
Of course, you would change the externalSWF_array to match your file names.
----------------------------------------------------------------------
List menu on comboBox work just fine but didn't open any of the external swfs.
I'm not a programmer so a code to do this and where to place it will be very helpful.
Thanks a lot, you guys rock!
YMB