Lives On Board

/ My MetaSphere /

Wed Jul 16, 2003

Flash MX Hosting
Web Hosting
Web Tools
Help FAQ
Marketing
Portfolio
Contact
Site Chat
Web Search
Asheville NC
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.

Live Satellite Weather Page.

Flash Hosting with MetaSphere

Today in History:
1948: John J. Pershing, military commander whose brilliant career earned him the title General of the Armies of the United States, died.

Metasphere.net
Asheville, NC



Help FAQ Index / Search
Help FAQ FCS
Previous Page in Help FAQ Tour Next Page in Help FAQ Tour
Help FAQ

Shared Text Box in FCS via RTMP Show All FCS Help Files

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;
};

Contact Metasphere.net


Add Page to favorites/bookmarks.