Skip to main content
Participating Frequently
July 2, 2009
Question

Newbie: How to close pop-up when movie ends

  • July 2, 2009
  • 1 reply
  • 764 views

Hi.

I'm new to AS3. So please bare with me.

I am creating a touch screen interactive for a museum. I have a AS2 button opening a AS3 swf file popup (no html). This AS3 file shows a movie. How can I get the pop-up to close down when the move has finished without the use of a button. I have a button option too.

The movie is an FLVPlayback obviously linked fro an FLV file. (so only 1 frame is showing)

Any ideas. This is the only thing I can't work out. It's the last thing on the project.

Thanks for any help.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 2, 2009

are you using javascript to open the popup?

Participating Frequently
July 2, 2009

Yes. I'm using the following from my button in my AS2 swf file.

on (release) {
getURL ("javascript:NewWindow=window.open('Coinsmovie.swf','newWin','width=1280,height=1024,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=Yes');  NewWindow.focus();      void(0);");
}

kglad
Community Expert
Community Expert
July 2, 2009

use:

getURL("javascript:NewWindow.close();");

p.s.  for future help, you're using as2 and posting in the wrong forum.