View Full Version : SWF not working if moved
manojanand
March 7th, 2009, 02:28 AM
Hi guys!
I have a small SWF that works if I run it in FlashDevelop or when I run it (by double clicking) it from the bin folder. Now, if I move the bin folder anywhere else, and then double click on the SWF, it runs, but is missing the .pngs.
The folder structure is: bin contains .swf
bin/assets/imges contains .pngs
I copied the whole project folder to another place, but still, the same problem occurred.
What do you think might be the problem?
sudhansurana
March 7th, 2009, 05:32 AM
You just make sure where ever you open the swf file may be in embedded html or anything else,the relative path givenn in side the fla matches the relative path of the swf opened(in html case the path in fla would match with the relative path of the html page).
Hi guys!
I have a small SWF that works if I run it in FlashDevelop or when I run it (by double clicking) it from the bin folder. Now, if I move the bin folder anywhere else, and then double click on the SWF, it runs, but is missing the .pngs.
The folder structure is: bin contains .swf
bin/assets/imges contains .pngs
I copied the whole project folder to another place, but still, the same problem occurred.
What do you think might be the problem?
manojanand
March 7th, 2009, 12:19 PM
Thank you for your prompt reply!
I had already made sure that the paths were right and that the same path was being called from the HTML file too.
This seems to be some problem in my settings, because when I put it in my website, it worked fine! I still haven't fount what this problem is or how I can solve it. I'll continue looking into it.
monsieurfil
May 16th, 2009, 10:26 AM
Problem comes from Flash local security configuration.
By default FlashDevelop makes your SWF's location "trusted", but if you move it in another location you must make this new location trusted again.
FlashDevelop can make any location trusted: open the Files panel, browse to the new location directory, right-click in the list and choose "Add to trusted paths".
There is the official online tool from Adobe:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.