StageOrientationEvent.ORIENTATION_CHANGE not Dispatching
Hi!
why in my Mobile Application is not dispatching the StageOrientationEvent event?
What's wrong?
I set in my project "Automatically reorient".
This is my view:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" creationComplete="view1_creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.*;
import mx.events.StateChangeEvent;
import mx.states.AddChild;
protected function view1_creationCompleteHandler(event:FlexEvent):void{
addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, changeOrientationListener)
}
protected function changeOrientationListener(event:Event):void{
trace(event)
}
]]>
</fx:Script>
</s:View>
thanks
