# Open ad before playing external embedded movie

**URL:** <https://forum.kirupa.com/t/open-ad-before-playing-external-embedded-movie/309311>\
**Category:** flash\
**Created:** [May 12, 2010, 3:28am UTC](https://forum.kirupa.com/t/open-ad-before-playing-external-embedded-movie/309311 "2010-05-12T03:28:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![latchet](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@latchet](https://forum.kirupa.com/u/latchet)\
**Post date:** [May 12, 2010, 3:28am UTC](https://forum.kirupa.com/t/open-ad-before-playing-external-embedded-movie/309311/1 "2010-05-12T03:28:07Z")

</div>

Hello,

I have a website with embedded external videos. The movies start playing when the user clicks the play button.

I would like to create a preloader which opens an ad when clicked, and then allows the user to watch the movie.

Here’s an example of the embedded video (NSFW!):

```auto
<object width="510" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://static.xvideos.com/swf/flv_player_site_v4.swf" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="id_video=266507" /><embed src="http://static.xvideos.com/swf/flv_player_site_v4.swf" allowscriptaccess="always" width="510" height="400" menu="false" quality="high" bgcolor="#000000" allowfullscreen="true" flashvars="id_video=266507" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

```

Does anyone have a preloader template which can be used, or tips how to create a preloader?

Thanks!
