Thanks Nehal, but it didn't work. I wouldn't want it to affect other
buttons on the stage, anyways.

Like I said, the two methods that I've tried don't seem to give
consistent results.

-----Original Message-----
From: Nehal Gandhi [mailto:[EMAIL PROTECTED] 
Sent: March 22, 2006 12:19 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Can't get rid of halo rectangle


try

Button.prototype.drawFocus = undefined;
-Nehal


On 3/22/06, Keith Takayesu <[EMAIL PROTECTED]> wrote:
>
> I'm trying to assign custom icons to a Button dynamically in a custom 
> component. Here is my code snippet:
>
> mybutton = createClassObject ( Button, "mybutton ", this.startDepth++,

> {_x:myx ,_y:myy,_width:15.9,_height:14.7, 
> falseOverIcon:"btnCalendarViewFalseOverSkin",falseUpIcon:"btnCalendarV
> ie
> wFalseUpSkin",falseDownIcon:"btnCalendarViewFalseDownSkin",
> falseDisabledIcon:"btnCalendarViewFalseDisabledSkin"} );
>
> However, when I compile the Component to a SWF and then instantiate 
> it, the green halo rectangle still appears under all the icons. In 
> fact, it is still active under all of that. This has me baffled, 
> perhaps it's just too late in the day to figure it out.
>
> 2nd problem:
> I have also tried to extend the Button class and apply the icons, as 
> shown in the Advanced Actionscript Components book. Then, I don't have

> the rectangle problem, but the registration seems to be off, and 
> height and width come back as zero!
>
> Blue Skies,
> Tak
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive: 
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to