开发者

Passing javascript object to flex

开发者 https://www.devze.com 2023-03-19 02:22 出处:网络
I have a very strange issue. My web application pass a javascript object to flex application using addCallback function.

I have a very strange issue. My web application pass a javascript object to flex application using addCallback function. when the flex application is in modal dialog in safari browser, the object in the flex application is null and when i open the flex application jus开发者_如何学JAVAt in a new window, the object is passed correctly. but, I need the showmodaldialog to show the flex application. any ideas???

the flex code:

ExternalInterface.addCallback( "handleEvent", handleEvent );



override public function handleEvent( event:Object ):Object
    {
        Alert.show(String(event)); .....


Might be a sync problem as Alert.show stops the app, maybe some other javascript call came during the alert.show ? Need more code :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号