all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

Unexpected green border listbox


Unexpected green border listbox bulletta
11/13/2004 10:38:42 PM
flash actionscript:
Hi all! I've a problem using a listbox in an off-line software made using Flash
MX 2004 Professional. The software has 3 principal modules. The main module
(menu) is a Flash Projector (.exe), all the other modules are .swf. The
connections are made with simple actionscript line 'loadMovieNum('module.swf',
0);'. In one of these modules there is a listbox. If operator uses this
module without connect to the other (used to see detailed information),
everything works well. But if the operator jump to another module and then come
back to module with listbox, when he clicks, for example, on one of the arrows
to move the listbox up or down, video suddendly shows a green border around
listbox, and there is no ways to cancel it (I've also tried a
'lista_lb.destroyObject('lista_lb');' command, where lista_lb is the instance
name of listbox). You can see the green box at this URL:
http://www.wwwealtro.it/ombra_verde.jpg Flash is upgraded to last version
(7.2), I tried this software on about ten different computers, some with
Windows XP Home and some with XP Pro), so I can exclude operating system
problem. Please, could you help me? Of course, I can write all additional
informations you need. Thank you and sorry for my bad english, Gianfranco -
Italy
Re: Unexpected green border listbox raznov
11/14/2004 2:44:24 AM
I didn't try to reproduce your problem.. but I had something similiar happen to
me when using a button component instance....this is from the help files..
basically write this code... myLIstBox._focusrect=false _focusrect
Availability Flash Player 4. Usage _focusrect = Boolean; Description Property
(global); specifies whether a yellow rectangle appears around the button or
movie clip that has keyboard focus. The default value, true, displays a yellow
rectangle around the currently focused button or movie clip as the user presses
the Tab key to navigate through objects in a SWF file. Specify false if you do
not want to display the yellow rectangle. This is a global property that can be
overridden for specific instances.
Re: Unexpected green border listbox bulletta
11/14/2004 3:37:06 PM
Thank you Raznov, but unfortunately the code you report doesn't eliminate the
problem. Also a simple: _focusrect = false; at the beginning of the movie
doesn't work. No errors or something like this, but green border is still there
in both cases.
Re: Unexpected green border listbox raznov
11/14/2004 5:28:33 PM
I reproduced you error.. myLIst.focusrect=false does work to stop the yellow
border from appearing. Did you put the correct path to the instance name ,
you can't just use _focusrect=false? myLIst.focusrect=false.
Re: Unexpected green border listbox bulletta
11/14/2004 9:48:03 PM
I tried both. But, maybe, I report bad informations. My listbox IS NOT the
'listbox' in Flash MX UI Components, but the 'list' in UI Components! This
because I can't personalize the new listbox as I want, so I come back to old
component. I think that _focusrect (or focusrect) can be set only for new
listbox.
AddThis Social Bookmark Button