This is too complex an issue for me to help directly, but here are a few
suggestions.

*       Use swfLoader
*       Be aware of the lifecycle, event and datatype issues with working
with loaded swf’s.  Here is a link to an example:
http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of carloscarvalhar
Sent: Tuesday, March 24, 2009 7:47 AM
To: [email protected]
Subject: [flexcoders] bug with remoteObject and ToolTip with loaded flex
application

 

Hi,

I have a flex application working fine, but i need to load it into a flash
swf and it is giving me a lot of trouble.

I get a really strange behavior: my mouse doesn't shows anymore (although
i'm not changing cursors), remote object's calls doesn't load anymore and
tooltips don't show.

I think it is happening because, once my flex app is loaded in flash, the
"root" isn't anymore Application.application.

But i don't have any idea of how to fix it, actually, i wonder if the fix
would it be in flash or flex...i tried to fix in both, but so far i couldn't
reach a solution.

Is there a solution for it? Can you point me where to try?

You can check the "normal call" to flex app here:
http://carvalhar. <http://carvalhar.com> com [working fine]

And here is the problem, where i try to load in flash swf::
http://carvalhar. <http://carvalhar.com/swf/preloader.swf>
com/swf/preloader.swf

PS:
my flash loader is pretty simple:
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var loader:Loader = new Loader();
loader.load(new URLRequest(Stage.path ? Stage.path : '/swf/meusite.swf'));
this.addChild(loader);
stop();

And this is one of the errors (in flex, after loaded):
TypeError: Error #1009: Não é possível acessar uma propriedade ou um método
de uma referência de objeto nula.
at
mx.managers::CursorManagerImpl/showCurrentCursor()[C:\autobuild\3.2.0\framew
orks\projects\framework\src\mx\managers\CursorManagerImpl.as:627]
at
mx.managers::CursorManagerImpl/setCursor()[C:\autobuild\3.2.0\frameworks\pro
jects\framework\src\mx\managers\CursorManagerImpl.as:422]
at
mx.managers::CursorManagerImpl/setBusyCursor()[C:\autobuild\3.2.0\frameworks
\projects\framework\src\mx\managers\CursorManagerImpl.as:526]
at
mx.managers::CursorManager$/setBusyCursor()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\managers\CursorManager.as:303]
at mx.rpc.remoting.mxml::Operation/http://www.adobe.
<http://www.adobe.com/2006/flex/mx/internal::invoke>
com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src
\mx\rpc\remoting\mxml\Operation.as:194]
at
mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\m
x\rpc\remoting\Operation.as:113]
at Function/http://adobe. <http://adobe.com/AS3/2006/builtin::apply>
com/AS3/2006/builtin::apply()
at
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\
src\mx\rpc\remoting\mxml\Operation.as:170]
at Function/http://adobe. <http://adobe.com/AS3/2006/builtin::apply>
com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/http://www.adobe.
<http://www.adobe.com/2006/actionscript/flash/proxy::callProperty>
com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks\pr
ojects\rpc\src\mx\rpc\AbstractService.as:285]
at modules::home/init()[C:\Documents and Settings\User\Meus
documentos\Design\flex\meusite\src\modules\home.mxml:76]
at modules::home/___home_Module1_creationComplete()[C:\Documents and
Settings\User\Meus documentos\Design\flex\meusite\src\modules\home.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\
framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set
initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\U
IComponent.as:1169]
at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\framew
orks\projects\framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe. <http://adobe.com/AS3/2006/builtin::apply>
com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\core\UIComponent.as:8628]
at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\pro
jects\framework\src\mx\core\UIComponent.as:8568]



Reply via email to