Hi,
I created a ChatLoader.swf that first imports Connect(); for the connect functions and then imports Avatars(); for the avatar functions.
the Avatars.as has several functions that need to transmit variables to Connect.as so that it sends the variables across to other people. How can i get Avatar.as to acces the Connect functions?
I can’t import Connect.as into Avatar.as since it’ll create 2 connections with the server.
ChatLoader.swf itself has
private var connect:Connect= new Connect();
and Connect.as has
public function write(str:String):void
{
socket.writeUTFBytes(str);
socket.flush();
}
so that i can write:
connect.write();
from the ChatLoader.as if i want to send variables to the connect functions. I’d like to do the same with the avatar functions but it doesn’t seem to work.