Actually this is better.
It checks to see if there are multiple pictures before trying to load
one even if the combobox has more than one selection.
Thanks Barry, thanks Glen.
I'm done. Good night...
var selectNum:Number;
var num:Number;
var pict:String;
var changeObj:Object = new Object();
changeObj.change = function(evt_obj:Object) {
trace("parent ID = " + evt_obj.target._parent.ID);
trace("selectedIndex = " +
evt_obj.target.selectedIndex);
num = evt_obj.target._parent.ID;
selectNum = evt_obj.target.selectedIndex;
var checkPics:Number = picturesArry[num].length;
if (checkPics > 1) {
if (selectNum > 1) {
pict =
picturesArry[num][evt_obj.target.selectedIndex - 1];
evt_obj.target._parent["picture_box"].loadMovie(pict,0);
evt_obj.target._parent.LoadVars(pict);
trace("New picture url is: " + pict + newline + "Picture Array:
" + picturesArry[num]);
} else if (selectNum <= 1) {
pict = picturesArry[num][0];
evt_obj.target._parent["picture_box"].loadMovie(pict,0);
evt_obj.target._parent.LoadVars(pict);
trace("New picture url is: " + pict + newline + "Picture Array:
" + picturesArry[num]);
} else {
_root.itemSelection_mc.satusTXT.htmlText = "CobmoBox did not
change";
}
}
};
colorBox.addEventListener("change", changeObj);
**Whew**
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders