# Having a problem =/

**URL:** <https://forum.kirupa.com/t/having-a-problem/299551>\
**Category:** flash\
**Created:** [November 6, 2009, 4:13pm UTC](https://forum.kirupa.com/t/having-a-problem/299551 "2009-11-06T16:13:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HustlePaintball](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@HustlePaintball](https://forum.kirupa.com/u/HustlePaintball)\
**Post date:** [November 6, 2009, 4:13pm UTC](https://forum.kirupa.com/t/having-a-problem/299551/1 "2009-11-06T16:13:05Z")

</div>

So I was tasked at work with creating a dynamic banner that picks at random from ones on our server, I used this script in CS4 with AS2.0 and it works fine with one hitch.

filename = [“TippmannBanner.swf”, “Tippmann98Banner.swf”];  
path = “[http://images.hustlepaintball.com/Flash/](http://images.hustlepaintball.com/Flash/)”;  
i = filename.length;  
k = Math.floor(Math.random()\*i);  
loadMovie(path+filename[k], movieTarget);

It makes the banners bigger than they are supposed to be, and they lose quality… any help would be much appreciated.
