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
allowScriptAccessis 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
_valuein 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 NPObjectwhich is from the function
_swfChangein line:obj[setter](value);wheresetteris thesetSWFAddressValuecallbacks in SWFAddress.as. So, I had even made the SWFAddress.as to execute_initializefunction 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