Em german or english? :D

Does this not function in Flash 8  with actionscript?
I've tried it ... but i don't now how to get the invokes from the server..

I don't want to write in as 3 :(




joseph wamicha wrote:
> 
> //  create the netConnection
> nc = new NetConnection();
> nc.objectEncoding = ObjectEncoding.AMF3;
> 
> Then you need to set client to this so red5 is able to invoke the method
> in
> the connected client...
> nc.client = this;
> 
> Now create the functions in your AS3 file:
> 
> public function clientEntered(clientID:String):void
> {
>       Alert.show("clientEntered is called. New client with ID:"+clientID);
> }
> 
> public function clientLeft(clientID:String):void
> {
>      Alert.show("clientLeft is called. Client with ID "+clientID+" has
> left.");
> }
> 
> Fröhliche Ostern!
> 
> On 4/8/07, Umut Zerman <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello
>>
>> i don't know where i can send a help mail so i decided to wrote on this
>> e-mailadress!
>> I speak normally german so i don't know if i get a german or english
>> answer.
>> To my Problem:
>>
>> I have read all the mailinglists but I#ve not found the way how i can
>> send the connected list to my flash application.
>>
>> my java seems like this:
>>
>>
>> package flashchat;
>> import org.red5.server.adapter.ApplicationAdapter;
>> import org.red5.server.WebScope;
>> import org.red5.server.api.IClient;
>> import org.red5.server.api.IConnection;
>> import org.red5.server.api.IScope;
>> import org.red5.server.api.Red5;
>> import org.red5.server.api.service.ServiceUtils;
>> import org.red5.server.api.IScopeHandler;
>> public class Meinchat extends ApplicationAdapter
>> {
>>
>>
>>
>>  public void appLeave(IClient client, IScope app) {
>>      ServiceUtils.invokeOnAllConnections(app, "clientLeft", new
>>  Object[]{client.getId()});
>>      super.appLeave(client, app);
>>  }
>>
>>  public boolean appJoin(IClient client, IScope app) {
>>      ServiceUtils.invokeOnAllConnections(app, "clientEntered", new
>>  Object[]{client.getId()});
>>      return super.appJoin(client, app);
>>  }
>>
>>  }
>>
>> I dont know if i had to set instead of "client" or "app" a value of my
>> application?
>> I want only that my applikation get all connections and send it back to
>> the user.
>>  in flash actionscript 2 i wrote this:
>>
>> import mx.utils.Delegate;
>> var nc:NetConnection = new NetConnection();
>> nc.connect("rtmp://localhost/flashchat", nick);  // nick = username.. i
>> think its set as the id or not?
>> var soText:SharedObject = SharedObject.getRemote("meinchat", nc.uri,
>> true);
>> soText.onSync = Delegate.create(this, newMessageHandler);
>>
>> i have a usertextfield a chattextfield and a WriteTextfield
>>
>>
>> so now i don't know how my java applikation send the new connections or
>> all the list of the connections
>> to my flash application
>>
>>
>> :(
>>
>> Please help or give my question further to anyone who can :(
>>
>>
>>
>> ------------------------------
>> Der kostenlose E-Mail-Dienst - schnell, einfach & sicher! Windows Live
>> Hotmail <http://mail.live.com>
>>
>> _______________________________________________
>> Red5 mailing list
>> [email protected]
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
> 
> 
> -- 
> C is forever.
> 
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-HELPPPP-%3A%28-tf3542371.html#a9897358
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to