[Red5] onBWDone fuction prototype

Ritu Raj Tiwari rituraj.tiwari at gmail.com
Thu Mar 12 09:47:59 PST 2009


Santosh is right. The NetConnection needs to be provided an object where
callbacks coming from the media server can be directed. From Flex docs:
clientpropertyclient: <http://livedocs.adobe.com/flex/3/langref/Object.html>
Object <http://livedocs.adobe.com/flex/3/langref/Object.html>

*Language Version: *ActionScript 3.0*Runtime Versions: *AIR 1.0 Flash Player
9

Indicates the object on which callback methods should be invoked. The
default is this NetConnection instance. If you set the client property to
another object, callback methods will be invoked on that object.
So, since NetConnection class itself does not have a method called onBwDone,
you will see that error. Most people declare the method in the MXML/AS3 file
where they invoke NetConnection, so Santosh's solution works.

-Raj

On Thu, Mar 12, 2009 at 5:37 AM, Santosh Dhakal <sanimap at gmail.com> wrote:

> I don't know this may be the final solution.But when same thing was
> encountered in my application,i just did conn which was my NetConnection to
> conn.client = this; and this error vanished away.
> Hople this works for you also.
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>


-- 
-Raj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090312/5e4aa398/attachment.html>


More information about the Red5 mailing list