The project has got me stuck… so far I have 3 parts, the first is the jabber chat server which is online and working great, the second part is the flash interface for the chat room http://presentdiabetes.com/Chat/jabber.html which is working but has a hard coded username/password
// XMPPConnection - CHANGE THESE SETTINGS
var connection = new XMPPConnection();
connection.username = "xxxx";
connection.password = "xxxx";
connection.server = "presentdiabetes.com";
// Room - CHANGE THESE SETTINGS
var chatRoom = new Room( connection );
chatRoster.dataProvider = chatRoom;
chatRoom.roomName = "Beta Testing User";
chatRoom.nickname = "Beta User";
chatRoom.conferenceServer = "conference.presentdiabetes.com";
the 3rd part is getting the user information from php which i can do and have it showing up in the trace but i can’t figure out how to assign the data to a useable variable, btw i have only been working with actionscript for about a week but have years of php… it’s an interesting language to learn… here is what i have for the import
_root.Text1 = "Version 8.2.1 Cookie Import";
trace (_root.Text1);
myVars = new LoadVars();
myVars.load("c:/get.php");
myVars.onLoad = function( success ){
if(success){
trace("variables loaded");
} else {
trace("Error loading page");
}
}
myVars._path = this
myVars.onLoad = function (success) {
trace(this._path)
if (success) {
trace (" variables loaded ");
for( var prop in this ) {
trace (" key " + prop + " = " + this[prop]);
}
} else {
trace (" Error loading variables ");
}
}
// this is where i am lost...
user = level0.this['username'];
pass = myVars._level0.passcode;
If anyone can help me bridge the gap between the 2 i would appricate it…
Patrick McGuire