Could be security related. Makes sure your trust files and calls to
allowDomain and allowScriptAccess are correctly configured.
Ok, I was excited when I noticed I didn't change allowscriptaccess, but that didn't work.
Just to recap:
-I have Security.allowDomain("*") as the first line in the init() (creationComplete) function
-I have a crossdomain.xml file located on the remote server that allows="*" and ports="*" (because gwt debugs through :8888)
-allowscriptaccess is set to always
-I am using FABridge to communicate between JS and the swf. Calling the function directly from Firebug causes the same error.
Even trying to call a function that is completely unrelated to the remote domain produces the same error. For example, getAppHeight(). So at second glance, this doesn't seem to be a security issue?
The only post (Google Cache) about the error suggests I use FABridge.MethodsToCallLater which doesn't seem to exist anymore in the version of FABridge that I downloaded. The copy of FABridge I have doesn't have any version information in the file, but I believe I pulled it from the Flex 3 SDK.
Can anyone tell me if that feature has been removed/added in recent versions? Or any other insights into my current situation? Thanks for looking!
Oops... guess MethodsToCallLater is on the AS side of things. Moved the code over there but still no joy. Still getting the same error.
1 person found this helpful
Could it be timing? Is the JS calling FABridge before it calls allowDomain?
When running locally, where is the swf?
I think you're on to something with the timing issue. I was binding an event before the FABridge was initialized, which was leading to backed up references, which was leading to FABridge thinking it was being called recursively. (At least this is how I understand it from my look at FABridge.js)
By not binding those events. I'm now able to manually add items to the stage via FABridge. However, trying to add items via GWT is still causing problems. It looks like I'm on my way to a fix though, thanks for helping me work through it.