# Stop flash loading in hidden layer

**URL:** <https://forum.kirupa.com/t/stop-flash-loading-in-hidden-layer/282196>\
**Category:** web dev\
**Created:** [February 18, 2009, 9:22pm UTC](https://forum.kirupa.com/t/stop-flash-loading-in-hidden-layer/282196 "2009-02-18T21:22:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmossjr](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@dmossjr](https://forum.kirupa.com/u/dmossjr)\
**Post date:** [February 18, 2009, 9:22pm UTC](https://forum.kirupa.com/t/stop-flash-loading-in-hidden-layer/282196/1 "2009-02-18T21:22:40Z")

</div>

Hi everyone -

I have a simple show/hide layer script that basically works on an onClick="…" value=“Show Div” - kind of idea. Within the hidden div is a streaming flash movie. The kick is that I can hear that flash movie loaded and playing before anything is clicked to load the hidden layer.

Is there anyway to keep the flash file from loading until the onClick? I don’t want to change the autoplay, because when the hidden file is loaded I would like the SWF to autoplay at that point.

Thanks!
