Hi I am trying to apply the following resize/mode parallel effect on the air
  native window 
       <mx:Parallel id="expand" 
target="{mx.core.Application.application.nativeWindow}">
            <mx:Move 
                xTo="20"
                yTo="20"/>
            <mx:Resize widthTo="1000" 
                       heightTo="700"/>
        </mx:Parallel>

  But I am getting the following error message:

  
TypeError: Error #1034: Type Coercion failed: cannot convert 
flash.display::nativewin...@28de3a1 to mx.core.IUIComponent.
        at 
mx.effects.effectClasses::MoveInstance/play()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\effects\effectClasses\MoveInstance.as:233]
        at 
mx.effects::EffectInstance/startEffect()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\effects\EffectInstance.as:569]
        at 
mx.effects.effectClasses::ParallelInstance/play()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\effects\effectClasses\ParallelInstance.as:199]
        at 
mx.effects::EffectInstance/startEffect()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\effects\EffectInstance.as:569]
        at 
mx.effects::Effect/play()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\effects\Effect.as:930]
        at 
com.si.Silicon.view.panels::LoginPanel/validateResult()[C:\Users\k\Documents\Flex
 Builder 3\siliconOne\src\com\si\Silicon\view\panels\LoginPanel.mxml:33]
        at 
com.si.Silicon.view.panels::LoginPanel/__validate_result()[C:\Users\k\Documents\Flex
 Builder 3\siliconOne\src\com\si\Silicon\view\panels\LoginPanel.mxml:84]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at 
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290]
        at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193]
        at 
mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43]
        at 
mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
        at 
DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:403]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()

  What is wrong with it and how do I solve this problem?

Regards....

Reply via email to