I've got a movie that loads a movieClip which has several comboboxes and listboxes in it.
After figuring out that I needed to lockroot my loaded mc so that the components worked, now I'm fighting the battle to remove the focus areas so those green rectangles don't stay active. gskinner.com: gBlog: Flash CS3 Components Revealed:: I'll recommend venting frustration in the Adobe Flash Forum. . I tried it extensively with the ComboBox and ColorPicker V3 Components, and i found that: . ColorPicker is opened via code, stage focus is not given to the component. http://www.gskinner.com/blog/archives/2007/04/flash_cs3_compo.htmlHOME |
I managed to set up listeners for most of the components (side question here...is there a way to set up one listener for several components just to remove the focus??), and got everything working EXCEPT...
I can't get rid of the green rectangle on the dropdown for the comboboxes!!
I'm removing the focus from the combobox itself with the following:
var bag_cbListener:Object = new Object();
this.bag_cb.addEventListener("change", bag_cbListener);
bag_cbListener.change = function() {
bag_cb.drawFocus="";
bag_cb.dropdown.drawFocus="";//this doens't seem to affect the dropdown at all Musings about os development , assembly language , game :: Although it seems easy at first , it requires some attention and focus to execute . well written automation scripts save time and reduce frustration . Then we need to determine what pattern is to be used , eg combobox uses http://blogs.msdn.com/samathew/default.aspxHOME |
}
and I've tried to set up a listener specifically for the dropdown, but that didn't work...
I put the files up at http://www.brianwpiper.com/combobox.zip and you can see the problem if you run the test.swf, which loads in the testCB.swf.
Thanks!!
edit added...
I had thought that I had fixed the problem on the one listbox I had also, but then I scrolled the list, which apparently isn't handled within the "change" function, so now I guess I need ANOTHER listener to handle the scrolling...this seems a little crazy...
Thanks!!
Here's the command...found it in AdvancED ActionScript Components...
_global.BB.diff_cb.drawFocus = null;
_global.BB.diff_cb.dropdown.drawFocus = null;
Works like a charm, and no listener required!!
Anyone??
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|