# Flash Communication Server

**URL:** <https://forum.kirupa.com/t/flash-communication-server/79621>\
**Category:** flash\
**Created:** [February 15, 2005, 7:33pm UTC](https://forum.kirupa.com/t/flash-communication-server/79621 "2005-02-15T19:33:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoungeActx](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@LoungeActx](https://forum.kirupa.com/u/LoungeActx)\
**Post date:** [February 15, 2005, 7:33pm UTC](https://forum.kirupa.com/t/flash-communication-server/79621/1 "2005-02-15T19:33:20Z")

</div>

Hey guys, I was wondering if you guys have played around with FlashComm at all? I am currently taking a class, and trying to get the hang of it. The class is pretty comprehensive and I’m not doing having too much trouble. But I definately have some question reguarding some techniques that my professor hasn’t touched upon and I was wondering if any of you guys had any knowledge about.

My question is about how the client-side AS relates to the server side AS. I’m sitting here looking at both files, and I can’t figure it out. It’s not really a technical question pursay. I’m just looking at this sample file for an Mp3 player and the client side script doesn’t call upon the server side script at all. Does it just know to do it? or is this sample file just wrong? Here is th code I’m looking at:

> 

CLIENT SIDE

//Connection  
var hookup\_nc:NetConnection = new NetConnection();  
hookup\_nc.connect(“rtmp:/zmp3select/spin”);  
var musicStream\_ns:NetStream = new NetStream(hookup\_nc);  
//Classics  
start\_btn.onPress = function() {  
hookup\_nc.call(“streamClassics”);  
musicStream\_ns.play(“myMusic”);  
};  
//Blues  
blues\_btn.onPress = function() {  
hookup\_nc.call(“streamBlues”);  
musicStream\_ns.play(“myMusic”);  
};  
//Music Off  
stop\_btn.onPress = function() {  
hookup\_nc.call(“streamsOff”);  
musicStream\_ns.close();  
};

> 

SERVER SIDE

application.onConnect = function(player) {  
application.acceptConnection(player);  
player.streamClassics = function() {  
player.mySounds = Stream.get(“myMusic”);  
if (player.mySounds) {  
player.mySounds.play(“mp3:Mozart1”, 0);  
player.mySounds.play(“mp3:Regal”, 0, -1, false);  
player.mySounds.play(“mp3:Bolero”, 0, -1, false);  
}  
};  
player.streamBlues = function() {  
player.mySounds = Stream.get(“myMusic”);  
if (player.mySounds) {  
player.mySounds.play(“mp3:IndianBlues”, 0);  
player.mySounds.play(“mp3:ye”, 0, -1, false);  
player.mySounds.play(“mp3:palmsway”, 0, -1, false);  
}  
};  
player.streamsOff = function() {  
player.mySounds.play(false);  
};  
};

:puzzled:
