HI,
you have to listen to the INFOWINDOW_CLOSING event

look at the MapEvent class
MapEvent.INFOWINDOW_CLOSING
or MapEvent.INFOWINDOW_CLOSED

 map.addEventListener(MapEvent.INFOWINDOW_CLOSING, IW_Closing)

On 25 mai, 15:02, Javier <[email protected]> wrote:
> Hi, I had a problem with the video in my InfoWindow. I have a PLAY /
> STOP button, but If the user clicks and opens other Infowindow or
> close the InfoWindow wihout stopping the video it goes playing at
> bakckground.
>
> My infowindow is an InfoWindowTabbedComponent with 3 tabs:
> "information", "images", "video"
>
> I doesnt' know how to detect  with an eventListener if the user close
> the infowindow or opens a new infowindow, (with the structure of my
> program)and execute VideoDisplay.stop().
>
> The structure of my InfoWindow CustomContent:
>
> public function InfoWindowCustomContent(parameters) {
>     var tabNavigator:TabNavigator = new TabNavigator();
>           tabNavigator.addChild(createTab("Information", arguments ));
>           tabNavigator.addChild(createTab("Images", arguments ));
>           tabNavigator.addChild(createTab("Video", arguments ));
>     addChild(tabNavigator);
>
> }
>
> public function createTab(label:String,arguments):Tile{
>
>      var container:Tile = new Tile() ;
>      if (label == "Information")
>          //Add some text to the container
>         container.addChild (the information)
>       if (label  == "Images")
>        //Add an image gallery to the container
>                container.addChild (an image gallery)
>       if (label  == "Video"){
>             var Video:VideoDisplayComponent = new VideoDisplayComponent
> ();
>                     container.addChild (Video);
>
>    return container;
>
> }
>
> And VideoDisplayComponent is a simple component based on Canvas with a
> VideoDisplay inside and a Play/Stop button.
>
> Anybody has a solution?
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to