# XML gallery:thumbs in a grid problem \[renamed\]

**URL:** https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187
**Category:** flash
**Created:** [April 3, 2006, 3:38am UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187 "2006-04-03T03:38:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)
#### Post date: [April 3, 2006, 3:38am UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/1 "2006-04-03T03:38:00Z")

</div>

I found the tutorial on how to create a photo album with thumbnails using XML. However the only thing that i shows me is to create it with a scroller. I made some modifications to thinking I was going to be able to turn it into a grid but everything that I have tried is not working. Can someone please help!!!1

```auto
 
function thumbnails_fn (k) {
 thumbnail_mc.createEmptyMovieClip ("t" + k, thumbnail_mc.getNextHighestDepth ());
 tlistener = new Object ();
 tlistener.onLoadInit = function (target_mc) {
  target_mc._x = _x + (target_mc._width + 5) * k;
  target_mc._y = _y + (target_mc._height + 5) * k;
  target_mc.pictureValue = k;
  target_mc.onRelease = function () {
   p = this.pictureValue - 1;
   nextImage ();
  };
  target_mc.onRollOver = function () {
   this._alpha = 50;
   thumbNailScroller ();
  };
  target_mc.onRollOut = function () {
   this._alpha = 100;
  };
 };
 image_mcl = new MovieClipLoader ();
 image_mcl.addListener (tlistener);
 image_mcl.loadClip (thumbnails[k], "thumbnail_mc.t" + k);

```

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [April 3, 2006, 6:10am UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/2 "2006-04-03T06:10:43Z")

</div>

[http://www.kirupa.com/forum/showthread.php?t=204346](http://www.kirupa.com/forum/showthread.php?t=204346) post # 12

scotty(-:

---

<div class="post-metadata">

### Author: ![sandeep\_cdac200](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sandeep\_cdac200](https://forum.kirupa.com/u/sandeep_cdac200)
#### Post date: [April 3, 2006, 6:47am UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/3 "2006-04-03T06:47:20Z")

</div>

hi,

> **[Example of loading a dynamic jpeg with AS?](https://www.kirupa.com/forum/showthread.php?t=211511)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

i hope this code will help you.

with regards  
sandeep(^\_^)

---

<div class="post-metadata">

### Author: ![sandeep\_cdac200](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sandeep\_cdac200](https://forum.kirupa.com/u/sandeep_cdac200)
#### Post date: [April 3, 2006, 6:48am UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/4 "2006-04-03T06:48:08Z")

</div>

post 15

---

<div class="post-metadata">

### Author: ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)
#### Post date: [April 3, 2006, 12:39pm UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/5 "2006-04-03T12:39:47Z")

</div>

Thanks…:!:

---

<div class="post-metadata">

### Author: ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)
#### Post date: [April 3, 2006, 8:17pm UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/6 "2006-04-03T20:17:05Z")

</div>

> [@sandeep\_cdac200](#):
>
> hi,
> 
> [http://www.kirupa.com/forum/showthread.php?t=211511](http://www.kirupa.com/forum/showthread.php?t=211511)
> 
> i hope this code will help you.
> 
> with regards  
> sandeep(^\_^)

This uses a scroll pane. How can I just make what I have scroll with out using any components and just jusing buttons.

---

<div class="post-metadata">

### Author: ![sandeep\_cdac200](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sandeep\_cdac200](https://forum.kirupa.com/u/sandeep_cdac200)
#### Post date: [April 4, 2006, 7:10am UTC](https://forum.kirupa.com/t/xml-gallery-thumbs-in-a-grid-problem-renamed/184187/7 "2006-04-04T07:10:53Z")

</div>

hi

I think you are using flash scrollpane component. if you are not using that than kirupa has created very nice tutorial regarding hw to create ur scrollbar. Follow that tutorial you will definitely overcome ur problem.

with regards  
sandeep(^\_^)
