Lives On Board

/ My MetaSphere /

Wed Dec 3, 2003

Flash MX Hosting
Web Hosting
Web Tools
Help FAQ
Marketing
Portfolio
Contact
Site Chat
Web Search
Asheville NC
NEW!!Boards
Network Log
Got Flash?
Web Links

Need Help?
We are online if image is green.
We are online if this image is green. Click here to chat live with metasphere.net.

Just Another Perl Hacker

Flash Hosting with MetaSphere

Today in History:
1818: Illinois entered the Union as the 21st state.

Metasphere.net
Asheville, NC
Help/FAQ Index / Search
Help/FAQ
Previous Page in Help/FAQ Tour Next Page in Help/FAQ Tour
Return to Main Page in Help/FAQ

Shared Text Box in FCS via RTMP

This example shows how to create a common shared text box. Replace UserName with your UserName on our server. Open the test script in two or more seperate browser windows. When you type in one window all of the other windows are updated. Since we set the third parameter to true in our getRemote connection, the file will always be saved.

This example requires a text box placed on the main stage in your Flash file. Name the instance name of the text box "Notepad" and set it to multiline with box border. Place the following Action Script in frame one.


#include "NetDebug.as"
stop();
myChannel = "Notepad";
myNC = new NetConnection();
Notepad.text = "Connecting to "+myChannel;
myNC.connect("rtmp://66.216.97.115/UserName/tc");
trace(myChannel+"="+myNC.uri);
mySO = SharedObject.getRemote(myChannel, myNC.uri, true);
mySO.connect(myNC);
myNC.onStatus = function(info) {
trace("Level: " + info.level + newline + "Code: " +  info.code);
output += "Level: " + info.level + "Code: " +  info.code+newline;
}
mySO.onSync = function(sync) {
for (z = 0; z < sync.length; z++ ){
trace("SYNC:"+sync[z].name);
if (sync[z].name eq "nText"){
Notepad.text = mySO.data[sync[z].name];
}
}
}
Notepad.onChanged = function(){
mySO.data.nText = Notepad.text;
};



Refresh / Add Page to favorites/bookmarks.