I am a beginner in Flex. I downloaded FlashDevelop, created a new Flex 4 application and added a simple snippet of code to test whether it worked. As I understand it, the app should print out 'hello'. Instead, it does nothing - just a blank window with no output to debug log whatsoever.
The weird thing is that if i substitute <s:Application>
for <mx:Application>
, it prints 'hello' just fine. But then it doesn't display any elements from the namespace.
So I'm guessing this is a problem that has to do with Spark.
Current setup:
Main.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="trace('hello');">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</s:Application>
I think it may be the Flash Player version the project's being compiled for: Why isn't this image showing up?