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

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
mrTip
Posts: 22
Joined: 29 Apr 2006, 17:20

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

Post 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)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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?
Lapo
--
gotoAndPlay()
...addicted to flash games
mrTip
Posts: 22
Joined: 29 Apr 2006, 17:20

Post 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)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
mrTip
Posts: 22
Joined: 29 Apr 2006, 17:20

Post by mrTip »

Hallelujah.... it works! Cheers Lapo
Post Reply