For my flex apps deeplinking, I use swfaddress 2.4. It works before but now problem occurred when I migrate my flex apps to be hosted on Amazon S3 bucket.
I have done this:
- policy file set on each domain that the app will access to load assets/data
allowScriptAccess
is set toalways
- the policy files are loaded (via
loadPolicyFile
) when the apps is initiated allowDomain
(andallowInsecureDomain
) also been set
The problem:
- when calling SWFAddress.setValue(), the address on browser address bar is never been changed. When debug, the
_value
in swfaddress.js is correctly holding the value that been passed - this breaks browser history (back button in broswer and the apps can't be used)
manually enter a query into adddress bar throws this error:
Uncaught Error: Error in Actionscript. Use a try/catch block to find error.
and
Uncaught Error: Error calling method on NPObject
which is from the function
_swfChange
in line:obj[setter](value);
wheresetter
is thesetSWFAddressValue
callbacks in SWFAddress.as. So, I had even made the SWFAddress.as to execute_initialize
function where it adds the callbacks- whe i put the try..catch at the problematic line, it goes into the infamous infinite-loop swfaddress problem. Adding a fix to that like recommended, now the apps didn't change the view state
Thanks in advance.
//btw, it's similar to this unsolved probleem: Amazon S3 and swfaddress