FlashCS4--AppleScript--OpenFile

Dear All,
Below is the code and I am trying to open an existing file but it’s not opening it.


tell application "Adobe Flash CS4"
	set thePath to "Macintosh:SO_Cache:FlashCS4:" as string
	display dialog thePath
	if exists file thePath & "Testing:Testing.fla" then
		set myDoc to open file SavePath
	end if
end tell

When I am removing If condition then it is opening the file.
What could be the reason and how I can fix it.

Regards,
Poo

This has been resolved. Now I want to create a new flash file.


tell application "Adobe Flash CS4"
	set thePath to "Macintosh:SO_Cache:FlashCS4:" as string
	display dialog thePath
	set SavePath to thePath & "Testing:Testing.fla"
	tell application "Finder"
		if exists thePath & "Testing:Testing.fla" then
			set myDoc to open file SavePath
		else
			make new document
		end if
	end tell
end tell

I have seen some example of system event to make a new file.

I will check and let know either it is working or no.
Regards,
Poo