Page 1 of 1

ERROR : There is no property with the name 'ex'

Posted: 08 Feb 2007, 16:54
by mrTip
Hi,

When I go to export or run my movie, I get this error in a trace window:
**Error** C:\Documents and Settings\Ian\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\it\gotoandplay\smartfoxserver\SmartFoxClient.as: There is no property with the name 'ex'.

**Error** C:\Documents and Settings\Ian\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\it\gotoandplay\smartfoxserver\SmartFoxClient.as: Line 1002: There is no property with the name 'ex'.
trace(ex.name + " : " + ex.message + " : " + ex.at + " : " + ex.text)

Total ActionScript Errors: 2 Reported Errors: 2
This seems to be a programming error on the API's end. How can I fix this? (its in function public function sendXtMessage)

Posted: 08 Feb 2007, 18:11
by Lapo
no, it doesn't seem to be a problem with the API.
If you check the code block you'll see why:

Code: Select all

try 
{
	var msg:String = it.gotoandplay.smartfoxserver.JSON.stringify(obj)
	this.sendJson(msg)
} 
catch(ex) 
{
	if (this.debug)
	{
		trace("Error in sending JSON message.")
		trace(ex.name + " : " + ex.message + " : " + ex.at + " : " + ex.text)
	}
}
ex is the exception object in the catch block
What are your export settings?
Are you publishing for at least player 7 and AS 2?

Posted: 08 Feb 2007, 18:26
by mrTip
Yes, I am publishing for player 7 and AS 2. I use Flash MX Pro 2004.

Even when I try and test the movie in Flash (CTRL+ENTER) it gives me that error. It just sits there and doesn't connect (SFS is running though... I can connect to it via the AdminTool, so I know it works - its been running for about 24 hours straight now lol).

What do you suggest I do?

*sigh* all I want to do is connect lol 8)

Posted: 09 Feb 2007, 06:41
by Lapo
Really odd :)
Your Flash is refusing to compile a perfectly legal AS 2.0 code block...
Probably you need to fix your installation. Flash MX 2004 was filled with bugs, did you apply the 7.0.2 patch? -> http://www.adobe.com/support/flash/downloads.html

Posted: 09 Feb 2007, 13:36
by mrTip
Hallelujah.... it works! Cheers Lapo