Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-17-2008, 07:43 PM   #1
mcgrailm
the answer is 42
 
Join Date: Feb 2008
Location: State College, PA
Posts: 231
Default [AS2] listbox component rollOver

I have a listbox filled with data and i am using the following code to customize it

ActionScript Code:
list_box.useRollOver = true; list_box.selectedIndex = 0; list_box.fontStyle = "Ariel"; list_box.fontSize = 8; list_box.selectionColor = "0x999966"; list_box.rollOverColor = "0x6E7743"; list_box.textSelectedColor = "0xFFFFFF"; list_box.backgroundColor = "0xBEBEB1";

this all works fine except ... the rollOverColor doesn't stay when I hover over a particular item in in the list, does anyone know why that is ?

Mike
mcgrailm is offline  
Old 09-17-2008, 08:02 PM   #2
mcgrailm
the answer is 42
 
Join Date: Feb 2008
Location: State College, PA
Posts: 231
Default listbox component rollOver

I have a listbox filled with data and i am using the following code to customize it

ActionScript Code:
list_box.useRollOver = true; list_box.selectedIndex = 0; list_box.fontStyle = "Ariel"; list_box.fontSize = 8; list_box.selectionColor = "0x999966"; list_box.rollOverColor = "0x6E7743"; list_box.textSelectedColor = "0xFFFFFF"; list_box.backgroundColor = "0xBEBEB1";

this all works fine except ... the rollOverColor doesn't stay when I hover over a particular item in in the list, does anyone know why that is ?

Mike
mcgrailm is offline  
Old 09-17-2008, 08:08 PM   #3
jasonJ
Senior Member
 
Join Date: Sep 2006
Location: Poland, EU
Posts: 268
Send a message via ICQ to jasonJ
Default

Well the onRollOver color stays here. I've tried with the exact code of yours (see the attachment)
Attached Files
File Type: zip list.zip (74.5 KB, 142 views)
jasonJ is offline  
Old 09-17-2008, 08:46 PM   #4
mcgrailm
the answer is 42
 
Join Date: Feb 2008
Location: State College, PA
Posts: 231
Default

yes indeed it does.... thank you that helped me realize there was a bug in my code I was rapidly setting the index which was causing the problem..

mike
mcgrailm is offline  
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[AS2] tree component question Aridnyk Components 2 11-20-2009 05:09 AM
[AS2] Displaying images in a List component Aeros Components 1 09-14-2008 04:41 PM
[AS2] Listbox background "none". SundanceKid Components 0 09-09-2008 02:35 PM
HTML In listbox component Drakkon Components 2 07-07-2006 09:41 PM
help needed referencing a component instance inside my own custom component bleepbloop Components 4 08-06-2004 10:31 PM


All times are GMT. The time now is 07:39 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.