Groups | Blog | Home
all groups > flash actionscript > february 2006 >

flash actionscript : accessing local files


marcinelli
2/10/2006 8:01:13 PM
hello, i can't seem to access a local php file with my loadVarsObject.load() or
loadVarsObject.sendAndLoad(). i'd like access it both on my local drive during
development and to have direct relative path file access (rather than calling a
URL) when the swf is running on the server in order to save a bit of time
(doesn't have to resolve the url) during an intensive, frequent mysql access
procedure.

i've tried using file:///filename.php and http://localhost/filename.php.
nothing seems to work. is there a flash setting to allow local access in
addition to net access or am i calling the file wrong?

tia,
michael
fantastic_flash_wiz
2/13/2006 3:49:27 AM
Do you have this parameter for your movie?

<param name="allowScriptAccess" value="sameDomain" />

With the new flash player v8 you are restricted in using your local harddrive
through php due to security update so you'll have to use IIS or something to be
able to preview your work.

Did this help you?
AddThis Social Bookmark Button