# Adding fancy border to Scotty's image gallery

**URL:** https://forum.kirupa.com/t/adding-fancy-border-to-scottys-image-gallery/216483
**Category:** flash
**Created:** [February 16, 2007, 11:34pm UTC](https://forum.kirupa.com/t/adding-fancy-border-to-scottys-image-gallery/216483 "2007-02-16T23:34:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)
#### Post date: [February 16, 2007, 11:34pm UTC](https://forum.kirupa.com/t/adding-fancy-border-to-scottys-image-gallery/216483/1 "2007-02-16T23:34:07Z")

</div>

I’m encountering a weird glitch when I try to use a more complex image border: the image container and the text caption both jump into place at the last moment. A bad effect. All I’ve done is add two more variables, “w2” and “w3” to the code:

```auto

            var w = container._width+spacing, h = container._height+spacing;
            var w2 = container._width+space2, h2 = container._height+space2;
            var w3 = container._width+space3, h3 = container._height+space3;
            border.resizeMe(w, h, id);
            border2.resizeMe(w2, h2, id);
            border3.resizeMe(w3, h3, id);

```

The effect can be see here:  
[http://www.tornedgedesign.com/\_test/kirupa/multi\_borders.html](http://www.tornedgedesign.com/_test/kirupa/multi_borders.html)

The only way I can find to keep the border shapes in correct proportion is to create 3 different border clips and apply the “resizeMe” easing function to each of them.

Files are here - thanks for any help:  
[http://www.tornedgedesign.com/\_test/kirupa/multi\_borders.zip](http://www.tornedgedesign.com/_test/kirupa/multi_borders.zip)
