Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-28-2005, 08:07 AM   #1
fokusz
Registered User
 
Join Date: May 2005
Posts: 2
Question How to make List Component autoselect first item

I have been searching all over the net for a solution to this problem, however no luck, even on macromedia.livedocs...

I have built a listbox which loads its data from an xml file, once this data is loaded I would like to have the first item in the box autoselect, or highlight.

I would have thoguht this to be possible, but have had no success wither way...Is this possible with Flash MX2004?

Thanks in advance
fokusz is offline   Reply With Quote
Old 05-28-2005, 09:29 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

should be something like:
ActionScript Code:
myListBox.setSelectedItem(0);

or maybe setSelectedIndex(0);
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 05-29-2005, 04:34 AM   #3
fokusz
Registered User
 
Join Date: May 2005
Posts: 2
Default

THANKS tg!!! it worked I think I was over scripting before! sometimes the most difficult thing is so simple...

cheers
fokusz is offline   Reply With Quote
Old 07-07-2005, 11:16 AM   #4
stormwild
Registered User
 
stormwild's Avatar
 
Join Date: Dec 2004
Location: Philippines
Posts: 12
Default Is there a way to highlight a single cell in a DataGrid?

Is there a way to highlight a single cell in a DataGrid through actionscript in the same way that it was done for the List?
stormwild 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 07:21 PM.

///
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.