If you are trying to access the swf via file:// then you are hitting the Flash security sandbox ball-of-fun. Try to put your swf on the same web server as your Turbogears app. Let me know if that solves anything.
-James On May 14, 10:27 am, Dana_at_BBN <[EMAIL PROTECTED]> wrote: > Trying to ape the nice Flex ++ Turbogears tutorial at > > http://www.adobe.com/devnet/flex/articles/eckel_video.html > > (the one using Turbogears controller as the data provider.) > > It's a really great demo and makes a compelling point about mixing in > the Flex domain specific language and Turbogears. > > The SWF compiles ok, but when I run it using the flash player on my > Mac, I get security errors trying to invoke the TG controller, which > is specified in the MXML file as : > > <mx:HTTPService id="getSrv" url="http://localhost:8888/? > tg_format=json" resultFormat="text" result="handleGetResult()" /> > > So, unfortunately, Flex is not letting me access my CherryPy hosted > controller code, and gives me a Channel.Security.Error > > I notice that you can use compile options s/t you can use http URL > semantics. And I use the option: > OPTS=-use-network=true > on my mxmlc compile, and yet I get the error: > > RPC Fault faultString="Security error accessing url" > faultCode="Channel.Security.Error" faultDetail="Destination: > DefaultHTTP"] > at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/ > internal::faultHandler() > at mx.rpc::Responder/fault() > at mx.rpc::AsyncRequest/fault() > at ::DirectHTTPMessageResponder/securityErrorHandler() > at flash.events::EventDispatcher/ > flash.events:EventDispatcher::dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() > > which looks like a security error on the invocation of the URL > > Has anyone else tried the demo and would anyone be able to tell me > what I can do to correct this? > > Thanks muchlies in advance. I will report back anything else I find to > the group to expand our global knowledge. > TurboGears Rox! > > Dana Moore > Division Scientist > BBN Technologies > W: 703-284-1228 > YM: dana_virtual --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

