[Red5] Accessing objects in Java

Prabhu Tamilarasan (omNovia) ptamilarasan at omnovia.com
Wed Dec 9 13:25:48 PST 2009


You can also use a try/catch block if you need/want to handle it gracefully
if the type is wrong.


Prabhu Tamilarasan
Director of Technology
ptamilarasan at omnovia.com

next generation web conferencing

Follow us: 

675 Bering Drive, Suite 290
Houston, TX 77057 USA
www.omNovia.com
T +1.281.500.4065 





-----Original Message-----
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of dennis_gull
Sent: Wednesday, December 09, 2009 3:09 PM
To: Red5 at osflash.org
Subject: Re: [Red5] Accessing objects in Java


Thanks, that worked great, I just had to add: 
@SuppressWarnings (value="unchecked") to remove the unchecked warning.



ptamilar wrote:
> 
> AS3 Objects are represented in Java as a HashMap<String, Object>.  So my
> guess would be:
> 
> HashMap<String, Object> obj = (HashMap<String, Object>)value;
> String message = obj.get("message");
> 

-- 
View this message in context:
http://old.nabble.com/Accessing-objects-in-Java-tp26714143p26717729.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




More information about the Red5 mailing list