in your application MXML file:
<mx:Style source="myCSS.css"/>
<mx:Box styleName="myBox"/>
In your CSS file:
.myBox {
color: #FFFFFF;
backgroundColor: #0000FF;
}
If you want to do it purely in AS, you'll have to use setStyle.
-TH
--- In [email protected], Gareth Edwards <[EMAIL PROTECTED]>
wrote:
>
> Been working on a little something, and I decided to attempt to
style
>
> some of what I'm working on.
>
> I have attempted to use the css and some ClassReferences to do
some
> skinning.
>
> The first thing I get stuck on, and can't seem to get past, I'm
pretty
> sure I'm not doing something right, but I don't know what.
>
> The problem is, as soon as I attach the ClassReference to my css
class,
> when I interact with the object, rather than event.target being
the
> object I'm interacting with, it does something with the
ClassReference
> and throws all sorts of errors. Can I step through the children or
> something until I hit the object I want?
>
> Any help would be much appreciated.
>
> p.s. the type of container I'm trying to style is a <mx:Box> if
that
> helps at all?
>
> Cheers
> Gareth.
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

