Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-24-2005, 11:56 PM   #1
WEIXIN
Registered User
 
Join Date: May 2005
Posts: 2
Default ComboBox Label problem

hi guys
sorry for interrupting you.
i am working with my project. now i have some problem with action script. can you find the problem out for me?
when i test the movie, the label message in the text box will show twice and the info wont show up inthe text box at all. i could find out what wrong with the code.
many thanks.
weixin
the code as follow:
comboform = new Object();
comboform.change = function(evtlist){
if(photomenu.selectedItem.label == "Bronze Mirror"){//the 1 menu in comboBox
mylistDP.removeAll();
photolist.addItemAt(0, {label:'fei xian tong jing' ,info:'the messages', data: 'feixiantongjing.jpg'});
photolist.addItemAt(1, {label:'jing lian rou shui jing' ,info:'the messages',data: 'jinglianroushuijing.jpg'});
photolist.addItemAt(2, {label:'si shou xiao niao po tao jing' ,info:'the messages',data: 'sishouxiaoniaopotaoji.jpg'});
photolist.addItemAt(3, {label:'tuan long wen tong jing' ,info:'the messages',data: 'tuanlongwentongjing.jpg'});
photolist.addItemAt(4, {label:'ying jiu tong jing' ,info:'the messages', data:'yingjiutongjing.jpg'});
//subtitle = evtlist.target.value.label;
subtitle = evtlist.target.value;
showtitle = subtitle;
}
WEIXIN is offline   Reply With Quote
Old 05-24-2005, 11:57 PM   #2
WEIXIN
Registered User
 
Join Date: May 2005
Posts: 2
Default need help with action script

hi guys
sorry for interrupting you all.
i am working with my project. now i have some problem with action script. can you find the problem out for me?
when i test the movie, the label message in the text box will show twice and the info wont show up in the text box at all. i could find out what wrong with the code.
many thanks.
weixin
the code as follow:
comboform = new Object();
comboform.change = function(evtlist){
if(photomenu.selectedItem.label == "Bronze Mirror"){//the 1 menu in comboBox
mylistDP.removeAll();
photolist.addItemAt(0, {label:'fei xian tong jing' ,info:'the messages', data: 'feixiantongjing.jpg'});
photolist.addItemAt(1, {label:'jing lian rou shui jing' ,info:'the messages',data: 'jinglianroushuijing.jpg'});
photolist.addItemAt(2, {label:'si shou xiao niao po tao jing' ,info:'the messages',data: 'sishouxiaoniaopotaoji.jpg'});
photolist.addItemAt(3, {label:'tuan long wen tong jing' ,info:'the messages',data: 'tuanlongwentongjing.jpg'});
photolist.addItemAt(4, {label:'ying jiu tong jing' ,info:'the messages', data:'yingjiutongjing.jpg'});
//subtitle = evtlist.target.value.label;
subtitle = evtlist.target.value;
showtitle = subtitle;
}
WEIXIN is offline   Reply With Quote
Old 05-25-2005, 12:04 AM   #3
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

dont cross post
and dont forget to format your code like it says above the input box
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");

Last edited by Flash Jordon; 05-25-2005 at 01:26 AM.
Flash Gordon is offline   Reply With Quote
Old 05-25-2005, 12:05 AM   #4
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

Quote:
Originally Posted by Flash Jordon
dont cross post
and dont forget tp format your code like it says above the input box
okay
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");

Last edited by Flash Jordon; 05-25-2005 at 01:25 AM.
Flash Gordon is offline   Reply With Quote
Old 05-25-2005, 01:55 PM   #5
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

only thing i see you might try is changing :
ActionScript Code:
if(photomenu.selectedItem.label == "Bronze Mirror"){//the 1 menu in comboBox mylistDP.removeAll();
to:
ActionScript Code:
if(photomenu.getSelectedItem().label == "Bronze Mirror"){//the 1 menu in comboBox photolist.removeAll();
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:44 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.