Use as below to allow specific domain only, it might be helpful to you :
why should i do that. it worked great once without the above statement. it is working good when i deploy it in my server. it is only for local testing. but needs to know.
something works good few days before. but not now. why?
i searched and read a lot. nothing helps.
If the html wrapper is served from a different domain than the SWF, then allowDomain is required. Both browser, players and even servers get updated often and can tighten security rules or cause things to appear as if they are now on different domains. It doesn’t really matter whether it used to work, what matters is understanding your configuration and understanding what is required to make it work.
Make sure you know the URLs for the html page and SWF.
thanks for your reply.
i think i am little bit clear in this.
my file path is : file:///C:/LAB/apps/order/Main.html
my swf located in (same directory): file:///C:/LAB/apps/order/order.swf
i have added addCallback for function Test
i gave allowscriptaccess = 'always'
i refered the following blog posts:
As per the above blog posts, my apps sandbox tyoe is 'local-trusted'. So i have added above file path (C:/LAB/apps/order) in Flash Player trust directory.
I am using Firefox 11.0
Flash player: 220.127.116.11
where can i find Or read about new security rules. is this vary between browsers? because ExternalInterface works good in IE9 and Chrome (latest) with file:// and local trust directory settings.
I spent lot of time regarding crossdomain.xml, Flash Payer Trust directory, mm.cfg in my flex carrier. So i would like update myself regarding new flash player security rules.
And one more thing i found in new flash player via 'global settings' by right-click option. That is 'Trusted Local Settings'. I added the path there too. But no use.
The browser might have changed its rules. Each browser has different rules. IIRC, there are some new rules around running local content. I believe you can change your browser security rules.