[Red5] how to organize classes in flex-client

Prabhu Tamilarasan (omNovia) ptamilarasan at omnovia.com
Wed Aug 19 12:27:24 PDT 2009


Hard to say because theres not much information, but it might make more
sense and be easier to have the netconnection as a public/private variable
in your User class.  Depends on your architecture and what you're trying to
accomplish.  

 

  _____  


Prabhu Tamilarasan
Senior Software Engineer

 <mailto:ptamilarasan at omnovia.com> ptamilarasan at omnovia.com

image001
next generation web conferencing


 

Follow us: 

 <http://twitter.com/omnovia> image002
<http://feeds2.feedburner.com/omnoviablog> image003
<http://www.facebook.com/home.php#/group.php?sid=32132de3107d0b3e50a2a347cbf
d386c&gid=77208555908&ref=search> image004

675 Bering Drive, Suite 290
Houston, TX 77057 USA
 <http://www.omnovia.com/> www.omNovia.com

T +1.281.500.4065 

		
  _____  


 

From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of tom
Sent: Wednesday, August 19, 2009 10:08 AM
To: red5
Subject: [Red5] how to organize classes in flex-client

 

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/b3f06384/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2116 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090819/b3f06384/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 11059 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090819/b3f06384/attachment-0003.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 10912 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090819/b3f06384/attachment-0004.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 10463 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090819/b3f06384/attachment-0005.jpe>


More information about the Red5 mailing list