Hello whispers...thanks for your answer
The project is loading clips from a combobox named cbRegions
the code looks like this
Actionscript Code:
var regionListener:Object = new Object ();
cbRegions.addEventListener ("change",regionListener);
regionListener.change = function(){
attachMovie(_level0.frameName + cbRegions.value,"clip",2);
cbSize.setSelectedIndex(0);
cbIndustry.setSelectedIndex(0);
}
I have to to know which region is curently loaded or selected in the combobox so that i can programm it to hide/show certain movie clips when user click back/next button....
Only way to check i guess is with a if statement for the combobox and i tried it with no luck...
Now code looks something like this :
Actionscript Code:
//setting the variables for the combobox
var eventSource = eventObj.target;
var theSelectedItem = eventSource.selectedItem;
var theSelectedItemLabel = theSelectedItem.label;
//The movie clip that includes the next and back buttons
mcNav.mcBack.onRelease = function (){
gotoAndStop(_currentframe-1)
q6global._visible = true;
if (theSelectedItemLabel == "Spain")
q6global._visible = false ;
};
var regionListener:Object = new Object ();
cbRegions.addEventListener ("change",regionListener);
regionListener.change = function(){
attachMovie(_level0.frameName + cbRegions.value,"clip",2);
cbSize.setSelectedIndex(0);
cbIndustry.setSelectedIndex(0);
}