Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
complexity webforumsuser@macromedia.com #1
Closing Flash Movies
Hey all,
Ive got a flash add that is on screen, but now I want to give the users the option of closing the movie.
I have the movie sitting in a layer on screen like:
<div id="Layer1" style="position:absolute; width:785px; height:115px; z-index:1; center: 6px; top: 214px;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="785" height="250">
<param name=movie value="banner.swf">
<param name=quality value=high>
<param name=wmode value=transparent>
<param name=bgcolor value=#FFFFFF>
<embed src="banner.swf" quality=high wmode=transparent bgcolor=#FFFFFF width="785" height="250"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
</div>
But I have no idea how to close the movie itself. I presume I can just do this in Actionscript? Or do I have to write some javascript to remove the movie???
Any help is appreciated.
complexity webforumsuser@macromedia.com Guest
-
Closing window with Flash form
I have a pop-up window that contains a Flash form. I am trying to submit the form data and close the window when the user hits the submit button. ... -
Flash client closing connection
I am trying to use flash remoting to populate a ComboBox, based on the value of a first ComboBox, using a call to a cfc. Everything works fine when... -
Flash crashes Internet Explorer on closing
Hi, We have just developed a RIA in flash. It can be accessed at: ... -
Flash ad closing and pulling up the HTML
I have seen flash ads on sites that play and once they are completed they cinch up or collapse and the HTML will rise up. Does anyone know how this... -
Closing a Flash app
Hi. Ok, i know this is a completely rooky question... I've just created a Flash movie that just consists of blocks of texts fading in and out. ... -
Developer Exemplar #2
Re: Closing Flash Movies
well you can close a movie using the fscommand. the syntax for closing is:
fscommand("quit);
you can add this on an event handler for an on release event of a button
N Kiran Kumar Kowlgi
Developer Exemplar Guest
-
complexity webforumsuser@macromedia.com #3
Re: Closing Flash Movies
Unfortunatley fscommand("quit); is only available in stand alone players. This swf is loaded directly onto a webpage.
complexity webforumsuser@macromedia.com Guest
-
Developer Exemplar #4
Re: Closing Flash Movies
look you can pass parameters to a function in the javascript when the button in the flash movie is clicked.. so when you say you want to close the movie, do you mean close the browser??
N Kiran Kumar Kowlgi
Developer Exemplar Guest
-
noviKorisnik webforumsuser@macromedia.com #5
Re: Closing Flash Movies
You have to use JavaScript.
<script>
function closelayer () {
document.getElementById ('Layer1').style.display = "none";
}
</script>
Call from html: <a href="javascript: closelayer ();">close flash</a>
This can be done from Flash movie, look at [url]http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_07.html[/url]
Referring URLs
[url]http://www.macromedia.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_07.html[/url]
noviKorisnik webforumsuser@macromedia.com Guest



Reply With Quote

