I have a very simple MXML file that doesn't do anything if
usePreloader is set to false:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
usePreloader="false" layout="absolute">
        <mx:Button label="Go" horizontalCenter="0" verticalCenter="0"
click="trace('hello');"/>
</mx:Application>

The button never becomes visible.

I tried this:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
usePreloader="false" layout="absolute">
        <mx:Script>
                <![CDATA[
                        trace('test');
                ]]>
        </mx:Script>
</mx:Application>

And the trace never happens.

If I set usePreloader to true, or leave it out, then each example
works as expected.

Wtf?

-- 

Derek Vadneau

Reply via email to