actionscript 3 - Flash AS3 ComboBox Dropdown Hover Color -



actionscript 3 - Flash AS3 ComboBox Dropdown Hover Color -

hi working on designing flash programme using adobe flash cs6 , as3. cannot life of me figure out how alter dropdown default lite bluish hover color in combobox component. have changed other colors need that. able alter font color when hovered on using code below. simply design constraint , isn't affecting programme in other way except uniformity. help appreciated!

import fl.events.*; import fl.managers.*; import fl.controls.*; import fl.controls.listclasses.*; stop(); var standard = new textformat(); standard.color = 0x000000; stylemanager.setstyle("standard",standard); var hover_color = new textformat(); hover_color.rollovercolor = 0xff0000; stylemanager.setstyle("hover_color",hover_color); stylemanager.setcomponentstyle(combobox,"textformat",stylemanager.getstyle("standard")); stylemanager.setcomponentstyle(textinput,"textformat",stylemanager.getstyle("standard")); // combobox labelfield stylemanager.setcomponentstyle(cellrenderer,"textformat",stylemanager.getstyle("standard")); fgone_cb.dropdown.addeventlistener(listevent.item_roll_over, rolloverlistener); fgone_cb.dropdown.addeventlistener(listevent.item_roll_out, rolloutlistener); function rolloverlistener(e:listevent) { var cr:cellrenderer = e.target.itemtocellrenderer(e.item) cellrenderer; cr.setstyle("textformat",stylemanager.getstyle("hover_color")); } function rolloutlistener(e:listevent) { var cr:cellrenderer = e.target.itemtocellrenderer(e.item) cellrenderer; cr.setstyle("textformat",stylemanager.getstyle("standard")); }

while looks you're trying code. in flashpro, can style component skins editing symbols.

they can found in library under component assets

the specific 1 you're looking under component assets -> shared -> focusrectskin

or maybe combobox_downskin

actionscript-3 combobox hover adobe flash-cs6

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -