Accessing functions in embedded AS files


I created a ChatLoader.swf that first imports Connect(); for the connect functions and then imports Avatars(); for the avatar functions.

the has several functions that need to transmit variables to so that it sends the variables across to other people. How can i get to acces the Connect functions?

I can’t import into since it’ll create 2 connections with the server.

ChatLoader.swf itself has

private var connect:Connect= new Connect();

and has

	public function write(str:String):void

so that i can write:


from the 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.