Access to undefined extension

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Posts: 12
Joined: 16 Mar 2010, 09:37

Access to undefined extension

Postby suvroz » 17 Mar 2010, 12:10

I am trying to compile this piece of code:

import it.gotoandplay.smartfoxserver.*;

var smartfox:SmartFoxClient=new SmartFoxClient(true);
var extensionName:String="mydb";
butt_load.addEventListener("click", getData);
function getData() {
smartfox.sendXtMessage(extensionName, "getData", {}, "xml");
smartfox.onExtensionResponse = function(resObj:Object, type:String)
// We expect the response to be xml formatted
if (type == "xml")
// Let's check if it's a "getData" message
if (resObj._cmd == "getData")
// Cycle through the "db" object sent by
// the server and add it to the datagrid for visualization
for (var i = 0; i < resObj.db.length; i++)
trace(debug_txt.text+=" query "+resObj.db[i])

it is showing some error. is it due to some missing class file?

1119: Access of possibly undefined property onExtensionResponse through a reference with static type it.gotoandplay.smartfoxserver:SmartFoxClient.


User avatar
Site Admin
Posts: 21726
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 18 Mar 2010, 17:08

It's the same as this -> viewtopic.php?t=7035&start=0&postdays=0&postorder=asc&highlight=
Please no double posts
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 17 guests