I found the anser through the docs and some blog posts

http://blogs.katapultmedia.com/jb2/flash/
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002401.html


Hope this helps someone else from suffering through this!

Mani


On 4/27/06, Manuel Saint-Victor <[EMAIL PROTECTED]> wrote:
>
> I am using the following code to add an eventListener
>     VideoModel.getInstance().addEventListener("startUpdates",
> Delegate.create(this, videoUpdates));
>
>
> Later when this dispatched event is caught I'm using the following to try
> to remove the listener but it is not working- Am I missing some other
> detail.
>
>
> public function videoUpdates(ev){
>         Logger.info("updated");
>         Logger.info("source:"+ ev.source._name);
>         if(ev.source._name==targetVideo || targetVideo=="defaultVideo"){
>             Logger.info("BINGO");
>             this.assignedStream=ev.stream;
>             Logger.debug(ev.target);
>             VideoModel.getInstance().removeEventListener("startUpdates",
> this.videoUpdates );
>         }
>         Logger.info("i am "+ this  +" my targetVideo is"+ targetVideo);
>
>     }
> I also tried removing the listener using  a reference that was passes in
> through the event object with no success.
> Please help- I can't figure out why it's failing.
>
> Mani
>
>
>
>
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to