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: [email protected]
To: [email protected]
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_Parts&file=00003504.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: [email protected]
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
_______________________________________________
[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
_______________________________________________
[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
_________________________________________________________________
More photos, more messages, more storageget 2GB with Windows Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507
_______________________________________________
[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