There's no Flash native hack as far as I know. The only obvious
solution I can think of is to call a server script - for example in
PHP something like:
<?php
if (file_exists($_REQUEST['file']))
echo('&exists=true');
else
echo('&exists=false');
?>
Then use LoadVars to call the script, passing in the parameter 'file'
- which is a filename relative to the PHP script. Once LoadVars
returns, if the 'exists' parameter is false, the file doesn't exist -
and so on.
HTH,
Ian
On 3/17/06, Wendy Richardson <[EMAIL PROTECTED]> wrote:
> I know I can find if a file I want to load exists by using "onload" with
> "success", but there must be something more immediate. Using onload, I
> can'd determine success answer untill the file is completely loaded
> which is too long for my purposes. Anyone have a hack for determining
> if a file exists?
>
> Thanks
>
> Wendy
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com