# Making a Dynamic SWF Background

**URL:** <https://forum.kirupa.com/t/making-a-dynamic-swf-background/304181>\
**Category:** flash\
**Created:** [February 2, 2010, 9:26pm UTC](https://forum.kirupa.com/t/making-a-dynamic-swf-background/304181 "2010-02-02T21:26:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IaguCool](https://avatars.discourse-cdn.com/v4/letter/i/67e7ee/32.png) [@IaguCool](https://forum.kirupa.com/u/IaguCool)\
**Post date:** [February 2, 2010, 9:26pm UTC](https://forum.kirupa.com/t/making-a-dynamic-swf-background/304181/1 "2010-02-02T21:26:15Z")

</div>

Hello everybody!

I’m constructing a Flash-based system as a personal website, and was using a dynamic background which I found on the internet.  
The problem is that this background is too boring, but I want to know how to code such background SWF myself.

To use it you just need to mcl.loadClip to a MovieClip on the stage. The background resizes itself and fits the texture and the gradient appropriately…  
Now, this SWF is encrypted, so I wasn’t able to decompile it in order to learn how exactly it works, so… yeah.

[http://www.swfcabin.com/swf-files/1265142987.swf](http://www.swfcabin.com/swf-files/1265142987.swf)

- Resize your browser window to see how the BG behaves.

Does anybody have any idea how-to?
