Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close Flash swf file at end of movie

Status
Not open for further replies.

tyleri

Programmer
Joined
Jan 2, 2001
Messages
173
Location
US
I have a website that when you click on a link in the website it opens a small window that plays the swf movie. WHen the movie is done, I need for the window to automatically close.

Can someone walk me through the process step-by-step on how to do this? I am very new to flash and have no idea how to do this!

Thanks very much
 
let me understand you have a html page that calls a swf file into it?
e.gif


carlsatterwhite@endangeredgraphics.com
 
On a regular button I would use a getURL action with javascript:window.close() in the link to box.

you can try doing this in the last frame of the movie. I have never tried it in this fashion.

by the way... "window" can remain empty and select don't send in the drop-down menu.

Let me know if this works.
 
Actually - it links straight to the SWF file, there is no HTML code. IS there code that i can put into an action at the end of the movie that autmatically closes the window?

It is for our bank's intranet, and everyone has the flash player, and it was decided in a meeting that this should be how the movie closes... any ideas?
 
Did you try the getURL action I suggested? Put it in the last frame of your movie.

javascript:window.close()

 
OH - that will totally work - you're right - I'll try it - I misunderstood before :)
 
I do think the swf will have to be embedded into its own HTML page for this to work but I assume you are doing that anyway...correct?

How are you calling the popup window?

I have an easy FAQ on popups in the FAQ section. You might look at it. I discovered a new way of doing it and it is almost too simple to be true!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top