It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

A DIV containg flash to be closed from flash button within

Moderator: Phate

A DIV containg flash to be closed from flash button within

Postby samko on Mon Feb 02, 2009 8:31 am

Hello!

I would appreciate if you can help solve me the following problem:

I am using a dhtml popup on my site. The popup is a DIV that appears on load.

This div displays a flash movie. I wish to allow the user to close the DIV (and not just the flash) when button inside this flash is clicked.

Ideally, I need the entire code snippet to help me close the popped up div using a button inside the popped up flash div.

Any help will be highly appreciated.

Thanks

Samko
samko
 
Posts: 1
Joined: Mon Feb 02, 2009 8:27 am

Re: A DIV containg flash to be closed from flash button within

Postby flabbyrabbit on Mon Feb 02, 2009 12:37 pm

Im not sure the exact code to do this, but it should be easy enough to find. In flash you can call javascript functions on the html page its self. This is usually used to create popups e.g. http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=1, then you could simply change the popup script to window.close();

If you need any more detail just shout.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England


Who is online

Users browsing this forum: No registered users and 0 guests