Re: [Flashcoders] border styles for TextArea component

2007-05-16 Thread Robert Hadsell

John --

Your postings led me to look into this further.  I found the answer in this 
livedocs item, Using ActionScript to draw Button skins: 
http://tinyurl.com/282gze


You'll see from the Comments at the end that the AS code didn't seem to 
work.  This might be because the instructions are ambiguous on which type of 
new symbol (named ButtonSkin) to create; it works OK with ButtonSkin created 
as a movie clip.  The second Comment gives a link that is very useful, 
dealing with all the quirky terms for button states. (It turns out that a 
button that has focus is in emphasized states; a button that has been made 
to toggle on is in the true states; toggle off puts the button in false 
states, a perverse term because this is the state buttons are normally in.)


The key to controlling the settable features of RectBorder is lineStyle.  
The three parameters in the example (additionally parameters can follow 
these) are thickness for line width (0 would be hairline), 0 for line color 
(black; any other color would be 0xrrggbb hexadecimal terms), and 100 for 
alpha.


-- Bob Hadsell



From: john robinson [EMAIL PROTECTED]
Reply-To: flashcoders@chattyfig.figleaf.com
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] border styles for TextArea component
Date: Wed, 2 May 2007 13:46:18 -0400

Thanks!
I'm looking into RectBorder now and creating my own RectBorder class.
I've got it working following the example below (though I'm using F8,  not 
CS3) but now I have a new issue...


http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/ 
wwhelp.htm?context=LiveDocs_Partsfile=3504.html


The width I want is actually hairline. Easy enough using the  RectBorder 
example above.


Now I need to be able to change the color of that border at runtime.  
Anyone?


Thanks again,
John



On May 2, 2007, at 1:29 PM, Hairy Dog Digital wrote:

There is no size or width property for the RectBorder, which is  what 
the
TextArea component uses for the border.  You would have to do a  custom 
skin

or theme. If this is only for this one project, you can copy the skin
elements into your library. Here is the info from livedocs:
http://tinyurl.com/3acnln. Of course, this is just one approach and  it is
optimized for doing it with a single FLA file. If you are working  across
multiple FLAs you may want to take a different approach.


-Original Message-
From: john robinson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] border styles for TextArea component

Hello all -

I'm using the TextArea component in Flash 8. I need to give the  component 
a
border that is 1 pixel wide. I've found that using setStyle 
(borderStyle,

solid) gives me a solid border but it is wider than I need. Can  anyone
give me a hint as to how to change the width of the border?

Thanks!
John
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


_
More photos, more messages, more storage—get 2GB with Windows Live Hotmail. 
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] border styles for TextArea component

2007-05-16 Thread john robinson
I'll have to look into this when we hit the next revision. For now I  
ended up just placing 2 mc's into my RectBorder symbol, outline_mc  
and bg_mc. Then in my (I think) draw() method, I just assigned the  
proper colors to these clips. It works great for now though it might  
save me a byte or 2 to do them programmatically, and since I'm only  
using TextArea in this app, I have no idea what it's going to do to  
any of the other components that use RectBorder.


Thanks though for looking into it!

john

On May 16, 2007, at 4:05 PM, Robert Hadsell wrote:


John --

Your postings led me to look into this further.  I found the answer  
in this livedocs item, Using ActionScript to draw Button skins:  
http://tinyurl.com/282gze


You'll see from the Comments at the end that the AS code didn't  
seem to work.  This might be because the instructions are ambiguous  
on which type of new symbol (named ButtonSkin) to create; it works  
OK with ButtonSkin created as a movie clip.  The second Comment  
gives a link that is very useful, dealing with all the quirky terms  
for button states. (It turns out that a button that has focus is in  
emphasized states; a button that has been made to toggle on is in  
the true states; toggle off puts the button in false states, a  
perverse term because this is the state buttons are normally in.)


The key to controlling the settable features of RectBorder is  
lineStyle.  The three parameters in the example (additionally  
parameters can follow these) are thickness for line width (0 would  
be hairline), 0 for line color (black; any other color would be  
0xrrggbb hexadecimal terms), and 100 for alpha.


-- Bob Hadsell



From: john robinson [EMAIL PROTECTED]
Reply-To: flashcoders@chattyfig.figleaf.com
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] border styles for TextArea component
Date: Wed, 2 May 2007 13:46:18 -0400

Thanks!
I'm looking into RectBorder now and creating my own RectBorder class.
I've got it working following the example below (though I'm using  
F8,  not CS3) but now I have a new issue...


http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/ 
html/ wwhelp.htm?context=LiveDocs_Partsfile=3504.html


The width I want is actually hairline. Easy enough using the   
RectBorder example above.


Now I need to be able to change the color of that border at  
runtime.  Anyone?


Thanks again,
John



On May 2, 2007, at 1:29 PM, Hairy Dog Digital wrote:

There is no size or width property for the RectBorder, which  
is  what the
TextArea component uses for the border.  You would have to do a   
custom skin
or theme. If this is only for this one project, you can copy the  
skin

elements into your library. Here is the info from livedocs:
http://tinyurl.com/3acnln. Of course, this is just one approach  
and  it is
optimized for doing it with a single FLA file. If you are  
working  across

multiple FLAs you may want to take a different approach.


-Original Message-
From: john robinson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] border styles for TextArea component

Hello all -

I'm using the TextArea component in Flash 8. I need to give the   
component a
border that is 1 pixel wide. I've found that using setStyle  
(borderStyle,
solid) gives me a solid border but it is wider than I need.  
Can  anyone

give me a hint as to how to change the width of the border?

Thanks!
John
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


_
More photos, more messages, more storage—get 2GB with Windows Live  
Hotmail. http://imagine-windowslive.com/hotmail/?locale=en- 
usocid=TXT_TAGHM_migration_HM_mini_2G_0507


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier

Re: [Flashcoders] border styles for TextArea component (On Training - May 17, 2007)

2007-05-16 Thread Derek Matthew
I will be out of the office, on a Customer Service training course on
Thursday, May 17, 2007. I will not be checking my e-mail until Friday,
May 18, 2007.

If your Internet/Intranet request is URGENT, please e-mail Katja
Hetmanchuk, [EMAIL PROTECTED], and she will reply to you as soon as
possible. If it can wait till Friday, I will look after it then.

Thanks.
Derek
416-392-8688
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] border styles for TextArea component (On Training - May 17, 2007)

2007-05-16 Thread Derek Matthew
I will be out of the office, on a Customer Service training course on
Thursday, May 17, 2007. I will not be checking my e-mail until Friday,
May 18, 2007.

If your Internet/Intranet request is URGENT, please e-mail Katja
Hetmanchuk, [EMAIL PROTECTED], and she will reply to you as soon as
possible. If it can wait till Friday, I will look after it then.

Thanks.
Derek
416-392-8688
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] border styles for TextArea component

2007-05-02 Thread Leandro Amano

Hello,
Change border width I don't know

but try this:

myTextArea.label.border = true;
myTextArea.label.borderColor = 0x99;

However label (textField object) is a private member of the TextArea
Component

regards.
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader

On 5/2/07, john robinson [EMAIL PROTECTED] wrote:


Hello all -

I'm using the TextArea component in Flash 8. I need to give the
component a border that is 1 pixel wide. I've found that using
setStyle(borderStyle, solid) gives me a solid border but it is
wider than I need. Can anyone give me a hint as to how to change the
width of the border?

Thanks!
John

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] border styles for TextArea component

2007-05-02 Thread Nick Johnston

Leandro Amano wrote:

Hello,
Change border width I don't know

but try this:

myTextArea.label.border = true;
myTextArea.label.borderColor = 0x99;

However label (textField object) is a private member of the TextArea
Component

regards.
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader

On 5/2/07, john robinson [EMAIL PROTECTED] wrote:


Hello all -

I'm using the TextArea component in Flash 8. I need to give the
component a border that is 1 pixel wide. I've found that using
setStyle(borderStyle, solid) gives me a solid border but it is
wider than I need. Can anyone give me a hint as to how to change the
width of the border?

Thanks!
John

___
Flashcoders@chattyfig.figleaf.com
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



To change the thickness of a border set these properties:

setStyle('borderStyle', 'solid');
setStyle('borderThickness', 1);
setStyle('borderColor', 0x99);

Cheers,
Nick J


___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] border styles for TextArea component

2007-05-02 Thread Hairy Dog Digital
There is no size or width property for the RectBorder, which is what the
TextArea component uses for the border.  You would have to do a custom skin
or theme. If this is only for this one project, you can copy the skin
elements into your library. Here is the info from livedocs:
http://tinyurl.com/3acnln. Of course, this is just one approach and it is
optimized for doing it with a single FLA file. If you are working across
multiple FLAs you may want to take a different approach.
 

-Original Message-
From: john robinson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 02, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] border styles for TextArea component

Hello all -

I'm using the TextArea component in Flash 8. I need to give the component a
border that is 1 pixel wide. I've found that using setStyle(borderStyle,
solid) gives me a solid border but it is wider than I need. Can anyone
give me a hint as to how to change the width of the border?

Thanks!
John
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] border styles for TextArea component

2007-05-02 Thread john robinson

Thanks!
I'm looking into RectBorder now and creating my own RectBorder class.
I've got it working following the example below (though I'm using F8,  
not CS3) but now I have a new issue...


http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/ 
wwhelp.htm?context=LiveDocs_Partsfile=3504.html


The width I want is actually hairline. Easy enough using the  
RectBorder example above.


Now I need to be able to change the color of that border at runtime.  
Anyone?


Thanks again,
John



On May 2, 2007, at 1:29 PM, Hairy Dog Digital wrote:

There is no size or width property for the RectBorder, which is  
what the
TextArea component uses for the border.  You would have to do a  
custom skin

or theme. If this is only for this one project, you can copy the skin
elements into your library. Here is the info from livedocs:
http://tinyurl.com/3acnln. Of course, this is just one approach and  
it is
optimized for doing it with a single FLA file. If you are working  
across

multiple FLAs you may want to take a different approach.


-Original Message-
From: john robinson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 11:24 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] border styles for TextArea component

Hello all -

I'm using the TextArea component in Flash 8. I need to give the  
component a
border that is 1 pixel wide. I've found that using setStyle 
(borderStyle,
solid) gives me a solid border but it is wider than I need. Can  
anyone

give me a hint as to how to change the width of the border?

Thanks!
John
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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