halfasleeps
03-12-2008, 06:22 PM
I have this code:
var iconFile:File = File("C:/Documents%20and%20Settings/jisaacks/Desktop/autopro-7.exe");
which produces an error saying: Error #1034: Type Coercion failed: cannot convert "C:/Documents%20and%20Settings/jisaacks/Desktop/autopro-7.exe" to flash.filesystem.File.
I am confused what I am doing wrong. I typed the path into run> and it opened it just fine so I know that path is valid.
var iconFile:File = File("C:/Documents%20and%20Settings/jisaacks/Desktop/autopro-7.exe");
which produces an error saying: Error #1034: Type Coercion failed: cannot convert "C:/Documents%20and%20Settings/jisaacks/Desktop/autopro-7.exe" to flash.filesystem.File.
I am confused what I am doing wrong. I typed the path into run> and it opened it just fine so I know that path is valid.