Actionscript to close a windowless flash animation

How do I create a button that will close my flash animation?
The animation is windowless and positioned absolutley using DIV tags much like those pesky flash popup ads on some sites.

If you could help by telling me which actionscript to use or posting it I would appreciate it or if anyone knows of a tutorial or fla example somewhere to download?
Thx.
LVL 3
Insomniac_PhDAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BillystyxCommented:
You can hide the layer in html/js once the flash has finished playing, but as far as I know you cannot 'close' the flash embedded in an html page

Billystyx
0
Jakob_ECommented:
You can "remove" your flash using Css and javascript

In the header of your html document add this script:
<script type="text/javascript">
  // "flashContainer" is the id of the div-tag containing your movie
  function fromFlash(){ document.getElementById("flashContainer").style.display = 'none' }
</script>

In flash add this function to your "close button":
on(release){
 getURL("javascript:fromFlash()")
}

Jakob E
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Insomniac_PhDAuthor Commented:
I'll give that a try in a few.  Thanks.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Jakob_ECommented:
Hi Insomniac_PhD,

Did it solve your problem, or is this question still open?

~ Jakob E
 


0
Insomniac_PhDAuthor Commented:
So very sorry.  Been away from the boards due to busy work shedule.  Yes it did solve the issue.  Thanks and sorry for the wait.
0
Jakob_ECommented:
No problem :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.