[Red5] how to organize classes in flex-client
tomabroad at gmail.com
Wed Aug 19 08:08:25 PDT 2009
this is more a flex-client-geared question...
my first flex-videochat-app was basically writing in a way that mostly
everythng got done in the man-app-mxml. now, im rewriting that ting and try
to separate as much as possible.
-Connection < NetConnection
1) initiating a (net)connection from the main-app.mxml,
2) setting the netcon.client = User()
3) User.seCLientId // OK
4) notifyClient // here is the problem
my app.mxml has that line of code:
netconnection.addEventListener("notifyClient", .... here used to be the
notifyClient in the local mxml, becuase con.client used to be the keyword
"this" (//bad habbit)
> now since i changed that and client is my User-Object seperated in its
own class, i dont make ca ll from the User-object on the
connection.call("FooBar", null, 1);
> how do i access that now?
i hope its more or less clear....im confused...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Red5