[Red5] how to organize classes in flex-client
tom
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.
Classes:
-User
-Connection < NetConnection
MxML
-App
-Login
-
Problem (?)
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
red5connection-variable:
connection.call("FooBar", null, 1);
> how do i access that now?
i hope its more or less clear....im confused...
thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090819/6455f8c2/attachment.html>
More information about the Red5
mailing list