Recently, I've been experimenting with local flash development and trying to inject my swf file into a website served by my test server.
To enable loading of local resources in Chrome, I set --disable-web-security
.
In FireFox, I made the following adjustments:
security.fileuri.strict_origin_policy = false
security.checkloaduri = false
Despite these changes, my code is still failing. Here is a snippet of my markup:
<object style="visibility: visible;" id="flash_test" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640"
height="480">
<param name="movie" value="file:///C:/Users/Peter/Desktop/Test.swf" />
<param name="allowScriptAccess" value="always" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="type" value="application/x-shockwave-flash" />
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />
<embed id="flash_test" src="file:///C:/Users/Peter/Desktop/Test.swf" allowscriptaccess="always" menu="false"
quality="high" width="640" height="480" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Upon inspecting the Chrome developer tools, Test.swf appears as Status Canceled. In FireFox, the browser doesn't even attempt to load the Flash file, as it does not show up in the Network list.
Furthermore, there are no Console messages displayed in either browsers.
My ultimate goal is to automate this process using Selenium in the future. Therefore, I am hesitant to rely on a plugin unless it is compatible with Selenium.