# Drunken

**URL:** <https://forum.kirupa.com/t/drunken/28355>\
**Category:** flash\
**Created:** [August 12, 2003, 9:19pm UTC](https://forum.kirupa.com/t/drunken/28355 "2003-08-12T21:19:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drunken](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Drunken](https://forum.kirupa.com/u/Drunken)\
**Post date:** [August 12, 2003, 9:19pm UTC](https://forum.kirupa.com/t/drunken/28355/1 "2003-08-12T21:19:11Z")

</div>

Heya!

How can I close an Interstitial ?

I have this but doesn’t work well:  
[AS]on (release)  
{

```
getURL("", _level0);
getURL(" java**script :this.close();");

```

}[/AS]

thks!=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:21pm UTC](https://forum.kirupa.com/t/drunken/28355/2 "2003-08-12T21:21:01Z")

</div>

Huh???

I don’t get what you are trying to do.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:21pm UTC](https://forum.kirupa.com/t/drunken/28355/3 "2003-08-12T21:21:44Z")

</div>

are you testing this from within flash? because technically flash isn’t a browser so it won’t close.

try publishing it then test it. I just did and it works fine.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:22pm UTC](https://forum.kirupa.com/t/drunken/28355/4 "2003-08-12T21:22:28Z")

</div>

see this: [http://www.nunosantos.net.tc/golo/Golo!.htm](http://www.nunosantos.net.tc/golo/Golo!.htm)

See the red coin ? I want that when user click on button this animation close

thks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:25pm UTC](https://forum.kirupa.com/t/drunken/28355/5 "2003-08-12T21:25:39Z")

</div>

You can …

A) gotoAndStop at a blank frame in the movie

or

B) Use Javascript to hide a DIV tag that houses your movie

if you aren’t up to date on Javascript then your easiest and best bet would be to use [AS]on(release){  
gotoAndStop(emptyFrameNumber);  
}[/AS]

Where emptyFrameNumber is the frame number of the empty frame you have set aside.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:34pm UTC](https://forum.kirupa.com/t/drunken/28355/6 "2003-08-12T21:34:24Z")

</div>

if a put a emptyFrame the site beside will be inacessible because the swf still there.

☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:41pm UTC](https://forum.kirupa.com/t/drunken/28355/7 "2003-08-12T21:41:25Z")

</div>

If you look at the movie in the link you provided the movie contains a transparent background (you can set this in the HTML tab of the Publish Settings). With a transparent background, if you go to an empty frame it will act as though no movie was there.

Although, if your viewer has the NEWEST (and I mean newest) plugin, this should work on most browsers in a Mac or PC environment, otherwise it will just work in IE for Windows.

Usually these things use Javascript to hide/show a div tag containing the data, I personally don’t think this would be too hard to pull off, but I don’t have the time to try it out either.

Question though… why would you want to make one of these things? They are more annoying than those infamous retarded pop-up ads Ⓜ Just wondering…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:46pm UTC](https://forum.kirupa.com/t/drunken/28355/8 "2003-08-12T21:46:43Z")

</div>

Yah … i agree but that is the costumer wants. Here in my country is very usually use this. You can I for example at www.tmn.pt that is the biggest phone operator on Portugal 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 9:52pm UTC](https://forum.kirupa.com/t/drunken/28355/9 "2003-08-12T21:52:19Z")

</div>

That tmn site… They go to a blank frame in the movie.

If you right click in a blank area and choose “select all” you can see the big square get highlighted of your movie. When you set a movie to have a transparent background, the movie becomes selectable like an image.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2003, 10:03pm UTC](https://forum.kirupa.com/t/drunken/28355/10 "2003-08-12T22:03:56Z")

</div>

I think you wrong because on tmn site the swf is closed. I am trying to do it with blankframe, but doesn’t work, for example a link that is beside the swf is inacessible ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2003, 10:23am UTC](https://forum.kirupa.com/t/drunken/28355/11 "2003-08-13T10:23:35Z")

</div>

:thumb: I have found a solution!

With javascript, by put a function on html page, like this:

[AS]\<SCRIPT language=JavaScript\>[/AS]

[AS]\<SCRIPT language=JavaScript\> function fechar(){ var timeout=0; //Desparece automaticamente setTimeout(“document.getElementById(‘flash’).style.display=‘none’;”, timeout \* 1000); }  
\</script\>  
[/AS]

and in flash movie put this:

[AS]on (release) {  
getURL(“javascript:fechar();”);  
}[/AS]

xauz
