PDA

View Full Version : if file exists...


rholdrae
08-28-2009, 08:24 AM
Hi everyone, I just want to know how to make this work. Here's the situation, I have a variable which is set to "false" and then I need to check if a xml file exists in the folder, if it exists, change the variable to true. Can anyone give me a hand with this.. Thanks a lot!

UncleNinja
08-28-2009, 01:10 PM
Is this an AIR app or Flash Player?
:)

EvLSnoopY
08-28-2009, 02:07 PM
I don't know if I understand your question correctly, but I'll give it a shot.
How about using an if statement?

Example:

if (yourXMLFile) {
var yourVariable = true;
} else {
var yourVariable = false;
}

vinayak.kadam
08-31-2009, 09:43 AM
Is your probs solved finally ? If yes then how ?

rholdrae
08-31-2009, 10:17 AM
Hello guys! thx for the reply.. I already found this link http://www.actionscripts.org/forums/archive/index.php3/t-11695.html and i just got confused so I made this thread, but I happen to solved it mins later.. thx for your willingness to help guys.. ;)