Definition could not be found error compiling ClassReference in CSS file to Swf file
Posted
by Roaders
on Stack Overflow
See other posts from Stack Overflow
or by Roaders
Published on 2010-02-17T08:30:04Z
Indexed on
2010/04/22
9:43 UTC
Read the original article
Hit count: 471
Hi All
I am compiling my css files to swf files and loading them at run time. I have no problem compiling these and using ClassReference statements most of the time:
.miniCashLadderGridStyle
{
color : #2a2a2a;
backgroundAlpha : 0;
borderSkin : ClassReference("mx.skins.ProgrammaticSkin");
headerSortSeparatorSkin : ClassReference("mx.skins.ProgrammaticSkin");
horizontalSeparatorSkin : ClassReference("company.assets.GridHorzDivLine");
verticalSeparatorSkin : ClassReference("company.assets.GridVertDivLine");
}
That works fine. The assets come from a seperate swc, However this:
header-background-skin : ClassReference("company.view.grid.skin.HeaderBackground");
Does not work. The difference is that the HeaderBackground is a class in the same project as the css file. That does compiel fine if I move the style into my mxml file though.
I wonder if the compiler uses different source paths when compiling the css fiels or something.
This is in FlashBuilder 4 build 269271 SDK 13963
© Stack Overflow or respective owner