# Portfolio Problem

**URL:** https://forum.kirupa.com/t/portfolio-problem/114247
**Category:** Uncategorized
**Created:** [June 26, 2004, 3:22pm UTC](https://forum.kirupa.com/t/portfolio-problem/114247 "2004-06-26T15:22:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fresh0308](https://avatars.discourse-cdn.com/v4/letter/f/e19adc/32.png) [@fresh0308](https://forum.kirupa.com/u/fresh0308)
#### Post date: [June 26, 2004, 3:22pm UTC](https://forum.kirupa.com/t/portfolio-problem/114247/1 "2004-06-26T15:22:59Z")

</div>

Hi,  
Ive been putting together my art portfolio [[http://jake.exit-13.net/portfolio/art.html](http://jake.exit-13.net/portfolio/art.html) ]. If you view it though you can see that when you click on one icon the picture shows up but the next icon on release wont load the picture.

I think it might be something with my scripting im not sure.  
Can some expert check it out?

Thanks

**Heres the actionscript for the container\_\_**

spacing = 10;  
containerc.\_alpha = 0;  
MovieClip.prototype.loadPic = function(pic) {  
\_root.containerc.\_alpha = 0;  
this.loadMovie(pic);  
\_root.onEnterFrame = function() {  
var t = containerc.getBytesTotal(), l = containerc.getBytesLoaded();  
if (t != 0 && Math.round(l/t) == 1) {  
var w = containerc.\_width+spacing, h = containerc.\_height+spacing;  
containerborder.resizeMe(w, h);  
delete \_root.onEnterFrame;  
}  
};  
};  
MovieClip.prototype.resizeMe = function(w, h) {  
var speed = 3;  
this.onEnterFrame = function() {  
this.\_width += (w-this.\_width)/speed;  
this.\_height += (h-this.\_height)/speed;  
if (Math.abs(this.\_width-w)\<1) {  
this.\_width = w;  
this.\_height = h;  
\_root.containerc.\_x = this.\_x-this.\_width/2+spacing/2;  
\_root.containerc.\_y = this.\_y-this.\_height/2+spacing/2;  
\_root.containerc.\_alpha = 100;  
delete this.onEnterFrame;  
}  
};  
};

**Heres the actionscript attached to the buttons\_\_\_**

on (release) {  
containerc.loadPic(“[http://fresh.urban-stylez.net/portfolio/Digital/Vectors/Nikki.jpg](http://fresh.urban-stylez.net/portfolio/Digital/Vectors/Nikki.jpg)”);  
}

on (release) {  
containerc.loadPic(“[http://fresh.urban-stylez.net/portfolio/Digital/Vectors/Solemn.jpg](http://fresh.urban-stylez.net/portfolio/Digital/Vectors/Solemn.jpg)”);  
}
