# Need help with loader etc. (AS2)

**URL:** https://forum.kirupa.com/t/need-help-with-loader-etc-as2/270386
**Category:** flash
**Created:** [September 9, 2008, 12:35pm UTC](https://forum.kirupa.com/t/need-help-with-loader-etc-as2/270386 "2008-09-09T12:35:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Adamodr](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Adamodr](https://forum.kirupa.com/u/Adamodr)
#### Post date: [September 9, 2008, 12:35pm UTC](https://forum.kirupa.com/t/need-help-with-loader-etc-as2/270386/1 "2008-09-09T12:35:30Z")

</div>

I’m working on a new photogallery and even though I haven’t worked that much in flash it turns out quite well.  
Anyway, I need some help with a few actionscript solutions that seems to be hard to figure out.

In the main timeline a have a movieclip with a few buttons.  
When I press the buttons, the pictures are loaded externally from sfw files.  
Now I want a loader to appear in the movieclip in the main timeline, right beside the button which is linked to the sfw file. I don’t want a loadbar or any detailed movieclip rolling, just the numbers and %.

I also need some help with the picture sfw:s. I can’t figure out how to make the picture to a link without put a button on top of it. I want the clickable area to have the same size as the picture and I want the pictures size to be relative (20% of the original size).  
Enough of explaining, here’s the code I thought would work out.

this.createEmptyMovieClip(“holder”,1)  
holder.\_x = 50;  
holder.\_y = 40;  
holder.\_xscale = 20;  
holder.\_yscale = 20;  
holder.loadMovie(“pics/1.jpg”);  
holder.onRelease = function(){  
gotoAndPlay(5);  
}

Any help is appreciated.
