This content has been marked as final. Show 9 replies
Is your style sheet located in the base directory or is in some css directory hanging off the root?
If it is in the correct directory, then you should post the css. It seams that there is an error in the CSS file.
Could you copy 'n paste your style sheet as well?
The other thing I'd recommend is doing a Project->Clean to make sure everything gets built fresh.
/* CSS file */
The stylesheet is in the "src" directory, put there by default, I guess, so is the mxml file. I created the stylesheet by selecting a text element and using the option "Convert to CSS", and then detailing the style.
I just tried it and it worked, so I don't think it's the style sheet. If Flex wasn't able to find the css file in the specified location you would have gotten a very specific error related to that.
Did you try the Project->Clean trick?
To keep things clean create a CSS folder hanging off your main project.
put your css files in there.
Replace your style tag with
Hopefully that will solve it.
Nope, didn't help.
All i can think of is that it may be a Flex Builder 3 bug.
I have not gone to FB3 yet.
I tried your app with the style sheet and it worked fine in flex builder 2.
You could try as DOPEJAM says and clean your project to see if that works. My only other suggestion would be to remove FB 3 and use FB 2 until FB 3 is in final release.
As a note, I think Flex is an awsome product.
I come from java/swing background so many flex are very familiar.
It does take a bit of ramping up but not too bad.
The data binding ability with flex is extremely powerful. If you do choose Flex take a look at the Cairngorm microarchitecture. It implements MVC design practices for flex applications.
Out of curiosity, if you create a brand new project, and copy 'n paste the files... does that work?