Thursday, June 19, 2008

Flash Player 9 Goes Bonkers post update!!

Some days are just what you don't want them to be. I am working on a project involving integration of an existing Java application running in jboss app-server with Adobe Flex/AIR. I fired up my browser to run a swf that used to work about a couple of days back and got this:

Warning: Domain localhost does not specify a meta-policy. Applying default meta-policy 'all'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem.

Googling gave me this link which is a huge doc by an Adobe engineer as the post says but somehow I managed to scrap through to change my crossdoamin.xml from

<cross-domain-policy>
<site-control policies="all">
<allow-access-from domain="localhost" ports="*">
<allow-access-from domain="127.0.0.1" ports="*">
</allow-access-from>
</allow-access-from></site-control></cross-domain-policy>

to

<cross-domain-policy xsi="http://www.w3.org/2001/XMLSchema-instance" nonamespaceschemalocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
<allow-access-from domain="*">
<site-control policies="master-only">
</site-control>
</allow-access-from></cross-domain-policy>

and get the swf working again. The new crossdomain.xml has short circuited all the efforts Adobe guys put in to make this but I just had to get this going:(. I don't know why Adobe had to do this or strangely do this so quietly, may be I was too sleepy to get a whiff of it before it actually hit me.

God why do some days are just what you don't want them to be?
Thanks to these guys for encoding the HTML for the XML code aboove.
Update:
The logs posted above were available in my policyfiles.txt (located @ C:\Documents and Settings\chetan.arya\Application Data\Macromedia\Flash Player\Logs) file created after I modified my mm.cfg (located @ C:\Documents and Settings\chetan.arya) to read:
ErrorReportingEnable=1
TraceOutputFileEnable=1
MaxWarnings=0
TraceOutputFileName=C:\Documents and Settings\chetan.arya\Application Data\Macromedia\Flash Player\Logs\flashlog.txt
PolicyFileLog=1
PolicyFileLogAppend=1

0 Comments:

Post a Comment

Labels