Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 10th, 2003, 07:26 PM
LANLord's Avatar
LANLord LANLord is offline
IT Dept Scapegoat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 169 LANLord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 43 sec
Reputation Power: 6
Combobox Dropdown Strange Behavior

OK two things. First, when I load up a combobox into an mc 95 px tall and run it, it shows the choices up instead of down, and I can't see all of the choices. Is this normal?

Second, when I run it, nothing is selected. What did I do wrong? I expected "Helpdesk" to be selected.

I'm passing the variables like this:
menu.swf?mysections=1,2,4,8,32,M&secttexts=HelpDesk,Projects,Telecommunication,Web,Purchasing,My Tickets&thissect=1

and loading the combobox like this in the frame's action:
Code:
sects = this.mysections.split(",");
texts = this.secttexts.split(",");
for (i=0; i < sects.length; i++) {
	cboSections.addItem(texts[i],sects[i]);
	if (cboSections.getValue() == _root.thissect) {
		setidx = cboSections.getSelectedIndex();
	}
}
cboSections.sortItemsBy("label", "ASC");
cboSections.setSelectedIndex(setidx);
stop();


TIA
__________________
Thanks,
CF

Reply With Quote
  #2  
Old August 11th, 2003, 02:32 PM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
when you run the line setidx = cboSections.getSelectedIndex(), the combobox doesn't have a selected index - change to:

Code:
if (cboSections.getValue() == _root.thissect) {
setidx = i;
}

Reply With Quote
  #3  
Old August 11th, 2003, 02:55 PM
LANLord's Avatar
LANLord LANLord is offline
IT Dept Scapegoat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 169 LANLord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 43 sec
Reputation Power: 6
Good try, jamieB, but the dropdown still defaults to nothing selected.

I did figure out why the box is dropping up... it seems that the default of eight rows is higher than the stage, so it only shows what it can without letting me scroll through the rest. So, I fixed it by only showing four rows, but is there a way to get the combobox to drop down below the bottom of the mc during runtime?

BTW, I am loading the dropdown in the action of the frame its in. When I move back and forth between the frames, the drop down is reset. In other words, if I make a selection, leave the frame and come back to it, the dropdown has nothing selected. Is that normal, or did I do something wrong?

Thx everyone...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Combobox Dropdown Strange Behavior


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway