# Attach movie? PHP? i need expert help

**URL:** <https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457>\
**Category:** flash\
**Created:** [July 23, 2003, 9:27am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457 "2003-07-23T09:27:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sintax321](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sintax321](https://forum.kirupa.com/u/sintax321)\
**Post date:** [July 23, 2003, 9:27am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/1 "2003-07-23T09:27:18Z")

</div>

I have a FLA with a lot of thumbnail buttons in it. Each thumb is supposed to load a larger pic into a section. There are about 64 thumbs and i need a quick way setting this up.

Do make 64 mc’s out of the larger images and attach them from the library(if so how)?

I dont’ think they have PHP support so that avenue is out.

What would be the easist way for me to have 64 buttons laod a differnt pick into a certain area of the screen?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 9:31am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/2 "2003-07-23T09:31:49Z")

</div>

i don’t see why would you use php 🙂

are the larger pics included in the swf (in the library), or would they be loaded at run time? 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 9:42am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/3 "2003-07-23T09:42:17Z")

</div>

The larger pics the buttons link too would be included in the swf. They client doens’t want any preloaders after the main one.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 9:56am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/4 "2003-07-23T09:56:44Z")

</div>

okay, if they’re all the same dimensions, i would do it this way:

First, i would have all the images inside a single clip, at different frames.  
I would have for-loop nested inside another for-loop, which would attach the images on the timeline dynamically, modify their width/height to be thumbnail-size, and set the thumbnails’ onRelease functions.  
the onRelease function would merely make a duplicate of the movieclip with all the images and gotoAndStop() to the according frame 🙂

My explaination i know isn’t that good, i can make a sample fla if you need one =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 10:05am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/5 "2003-07-23T10:05:19Z")

</div>

Ok Wow that would be great cause i have about 3 other projects that could use that.

Un fortualty all the pics aretn the same size. they are all the same hight but the widths are all differnt. So i guess i find a new way or do a lot of croping huh? I guess icould make an action for it in PS to save croping time.

What do u think?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 10:21am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/6 "2003-07-23T10:21:30Z")

</div>

ok… the fla attached below works well for images with identical dimensions…

it can be easily modified though to work with images of different dimensions, i would use a (scripted) mask 🙂

[[Clickity Click](http://24.141.60.208:1337/p1.fla) ]

p.s. i need to go to bed now, i’ll do the masking thing tomorrow, or even better, try doing it on your own 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 10:22am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/7 "2003-07-23T10:22:48Z")

</div>

lol i’m off to bed to. and i will try it on my own. thanks for all the help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 10:25am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/8 "2003-07-23T10:25:11Z")

</div>

\*\*\*\* dude this is amazing. I cna’t believe how u gusy come up wiht this stuff so quick.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 6:47pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/9 "2003-07-23T18:47:34Z")

</div>

OK i got it working with the diffenrt sized pics. Now i have one question. When i have an uneven # of thumbs it jsut fills in the empty spaces with the last frame over and over again. Is there any way to get it to stop of should i jsut make hte last frame a blank one?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 11:21pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/10 "2003-07-23T23:21:06Z")

</div>

I don’t quite get you, can i see a sample of the movie running? =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 11:29pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/11 "2003-07-23T23:29:08Z")

</div>

well say if you where going 6 cloums x4 rows it will create 24 thubmnails. NOw if you only have 22 frames in the pics timeline it would take wnat is in frame 22 and put it in 23 and 24 to fill out the rows. So you are left with the last pic duplicating to fill out the last thumbnails.

That explane it?

All i did was cover it with a mask and that fixes it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 11:39pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/12 "2003-07-23T23:39:15Z")

</div>

oh… don’t mask, add this line inside the loop instead 🙂

```auto
if (num>=22) break;

```

what it does is, it checks if the variable ‘num’, which we incerement by 1 at each loop, is greater than or equal to 22. if it IS, it stops the loop from attaching any more clips =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 11:40pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/13 "2003-07-23T23:40:44Z")

</div>

kickass. iddint see anyway to break the loop. Oh “break” how i remember u from my Basic A days lol. htanks again ahmed;)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 5:42am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/14 "2003-07-24T05:42:17Z")

</div>

I’ve built the gallerys in separt SWF’s. I’m loading these into a main SWF. I’ve been trying to build a prelaoder for when they are loaded but my preloaders fail to work. I tried a simple ifFrameLoaded and a % prelaoder using getbytes but nithere seems to work. They jsut don’t show up.

I’m assuming this has something to do with the fact there is nothing in the main scene but AS?

Any ideas on what is going on. SOrry i’m beeing such a bohter this week.:-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 6:16am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/15 "2003-07-24T06:16:20Z")

</div>

hm… i can’t help you on preloading the swf’s, i’ve never done that ;(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 6:17am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/16 "2003-07-24T06:17:38Z")

</div>

NP man you have been a great help as it is. Yo uahve saved me liek 3 days of desing time. IT only took me 4 hours to make 6 gallerys with about 1000 pics total. Thanks again so much.:thumb: :A+:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 6:38am UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/17 "2003-07-24T06:38:35Z")

</div>

haha… no problem :beam:

I haven’t done a single preloader that actually works so far… i don’t know how you’d go about this, sorry 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 3:33pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/18 "2003-07-24T15:33:46Z")

</div>

hey ahmed:

can you re-post your fla? i´m getting a broken link. =)

Thanks 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 3:41pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/19 "2003-07-24T15:41:09Z")

</div>

Remove the port from the URL. 😉

[http://24.141.60.208/p1.fla](http://24.141.60.208/p1.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2003, 5:02pm UTC](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457/20 "2003-07-24T17:02:28Z")

</div>

hehe… sorry, i swiched servers last night 🙂

[Next page](https://forum.kirupa.com/t/attach-movie-php-i-need-expert-help/26457.md?page=2)
