[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:
*Language Version: *ActionScript 3.0*Runtime Versions: *AIR 1.0 Flash Player
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Red5