Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

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.
0
Insomniac_PhD
Asked:
Insomniac_PhD
  • 3
  • 2
1 Solution
 
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
 
Insomniac_PhDAuthor Commented:
I'll give that a try in a few.  Thanks.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now