arkum
10-01-2008, 07:55 PM
Hello,
I have a custom component that declares a skin style:
[Style(name="playButtonUpIcon", type="Class", inherit="no")]
I can set these no problem from within an instance's MXML tags using an embedded swf:
[Embed(source="assets/swf/skins.swf", symbol="TimelinePlayButton_up_icon")]
[Bindable]
private var upIcon:Class;
<app:MyClass styleName="timeline" playButtonUpIcon="{upIcon}" />
However, if I try and set this style from an Embedded CSS file, it doesn't work.
.timeline{
playButtonUpIcon: Embed(source="assets/swf/skins.swf#TimelinePlayButton_up_icon");
}
I know the swf is embedded ok because I am pullling other skins from it within the same css file.
Where could the problem lie?
I have a custom component that declares a skin style:
[Style(name="playButtonUpIcon", type="Class", inherit="no")]
I can set these no problem from within an instance's MXML tags using an embedded swf:
[Embed(source="assets/swf/skins.swf", symbol="TimelinePlayButton_up_icon")]
[Bindable]
private var upIcon:Class;
<app:MyClass styleName="timeline" playButtonUpIcon="{upIcon}" />
However, if I try and set this style from an Embedded CSS file, it doesn't work.
.timeline{
playButtonUpIcon: Embed(source="assets/swf/skins.swf#TimelinePlayButton_up_icon");
}
I know the swf is embedded ok because I am pullling other skins from it within the same css file.
Where could the problem lie?