-
Question combobox if statement
Hey guys.. so this is the code I have:
var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object) {
var item_obj:Object = my_cb.selectedItem;
var i:String;
for (i in item_obj) {
}
trace(item_obj[i]);
if (item_obj[i]="attractions") {
trace("hit");
}
};
my_cb.addEventListener("change", cbListener);
The prob I'm having is that now it keeps assuming that item_obj[i] is "attractions" no matter what the value actually is.. then I tried == and it did nothing.. any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|