# Work in progress Experiment

**URL:** https://forum.kirupa.com/t/work-in-progress-experiment/10068
**Category:** Uncategorized
**Created:** [December 23, 2002, 7:28pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068 "2002-12-23T19:28:20Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![lostinbeta](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lostinbeta](https://forum.kirupa.com/u/lostinbeta)
#### Post date: [December 23, 2002, 7:28pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/1 "2002-12-23T19:28:20Z")

</div>

Hey people, I started a project a while ago about a resizing image gallery. Well I kinda dropped it, but today I rewrote the entire script with “optimized” code. In the future I might rewrite the whole thing so that it is all code and nothing on the stage or in the library. I am undecided on that one.

Well right now it is just basic shapes. And yes, I did see it somewhere else, I just have no clue where. And yes I do know this is really basic, but I still think it looks cool 🙂 In the end I plan to load in Graphics or .swf files.

Instructions: Press the black buttons at the bottom.

[swf=“[http://www.lostinbeta.com/experimental/imageResizer.swf](http://www.lostinbeta.com/experimental/imageResizer.swf) height=400 width=550”][/swf]

Let me know what you 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: [December 23, 2002, 7:31pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/2 "2002-12-23T19:31:01Z")

</div>

horrible. 😛 Looks good Lost! I like it. Would make a good gallery tutorial… (-:

---

<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: [December 23, 2002, 7:32pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/3 "2002-12-23T19:32:44Z")

</div>

yes it would  
i like it very much  
good job man

---

<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: [December 23, 2002, 7:39pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/4 "2002-12-23T19:39:22Z")

</div>

how come that being good does not surprize me? 😛

---

<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: [December 23, 2002, 7:58pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/5 "2002-12-23T19:58:07Z")

</div>

Thanks guys (-:

As for being a good tutorial, I am not sure I would write one…lol. I don’t know if I am prepared to answer the 165,431 billion questions about how to modify it or how to get it to work that will be posted on this forum.

Now to set up the code to load in content… I think this is going to be harder than what is planned in my head.

---

<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: [December 23, 2002, 8:08pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/6 "2002-12-23T20:08:05Z")

</div>

Will you just pull th image size to get the window size or will you have to define it individualy on each button?

---

<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: [December 23, 2002, 8:11pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/7 "2002-12-23T20:11:56Z")

</div>

I am going to attempt to pull it from the image size, but as for now, I have defined a function that you call on the button to get the width and height (since I am loading now content yet).

Right now this is the code on the button…

```auto
on (release) {
	_root.changeSize(100, 100);
}

```

And if worse comes to worse, the code will just become something like …

```auto
on (release) {
	_root.changeSize(100, 100,"yourFile.jpg");
}

```

But if worse goes to best then it will become something like …

```auto
on (release) {
	_root.changeSize("yourFile.jpg");
}

```

---

<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: [December 23, 2002, 8:12pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/8 "2002-12-23T20:12:29Z")

</div>

> As for being a good tutorial, I am not sure I would write one…lol. I don’t know if I am prepared to answer the 165,431 billion questions about how to modify it or how to get it to work that will be posted on this forum.

OMG I KNOW! I get so many e-mails from people about my tutorials. I know that once I finish this guestbook tut, I am giong to get crazy amounts of e-mail…

---

<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: [December 23, 2002, 8:14pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/9 "2002-12-23T20:14:59Z")

</div>

Yeah, I get the same thing Jubba.

Do you know how many people e-mail me asking me how to contrain my easing on mouse follow tutorial to an area? I get at least 8 a week about it. I am thinking about just adding on to that tutorial with the way to do it because I am so tired of getting the e-mails.

I have none on my newest preloader tutorial yet, but I know soon enough people will start asking questions on it :-\

And as for that guestbook, yes, you will get many questions on that because it involves PHP… and that mixes a lot of people up.

---

<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: [December 23, 2002, 9:02pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/10 "2002-12-23T21:02:53Z")

</div>

Thanks Philbert 🙂

---

<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: [December 23, 2002, 9:34pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/11 "2002-12-23T21:34:47Z")

</div>

Great job lost!

For now on when I write tutorials I am going to put it under another alias and give them your email address. I am still getting emails from people asking for me to help them make menus and such with my ‘Alpha Graphic Fade with Intertia’ tutorial. 😛

---

<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: [December 23, 2002, 10:55pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/12 "2002-12-23T22:55:53Z")

</div>

LOL… no please Dan no, don’t put my e-mail!!!

Well, thanks for the compliment though 🙂

---

<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: [December 24, 2002, 4:45am UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/13 "2002-12-24T04:45:48Z")

</div>

Greetings lostinbeta!

That’s a really cool photo display. I’m always on the lookout for new stuff on that front.

What I really like about your experiment here is the way you present different size graphics. That’s always a challenge to do in a nice-looking way.

Great job!

\<:}  
Karen

PS. I’m wondering if once the .jpg/.swf loads, a function could pull in the size parameters. That way, the code would fire regardless of changes in the photo-set. I just finished an experiment with a photo display toy, and the thing works (always a surprise :sigh: ) by setting just two variables to change the whole photo set.

---

<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: [December 24, 2002, 5:09am UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/14 "2002-12-24T05:09:11Z")

</div>

Well I know when you dynamically load a JPG file the dimensions register as 0x0, so once the image is fully loaded into Flash you will be able to pull the dimensions of the image. In my theory at least.

I plan on preloading the images before the box size changes. Or something along those lines.

---

<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: [December 24, 2002, 8:59am UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/15 "2002-12-24T08:59:22Z")

</div>

Hmm… is there anyway to load in the .jpg dynamically into a movieclip…

And then testing .getbounds of the movieclip to figure out it’s width and height?

Maybe that might be an answer to your just laoding up a .jpg in your movie…

I love the concept though… Very original and cool indeed brutha.

---

<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: [December 24, 2002, 12:33pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/16 "2002-12-24T12:33:49Z")

</div>

sweet,I would use it,execpt I would change the blk,squares to 50x50 thumbnails,or maybe some really small squares too.

---

<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: [December 24, 2002, 4:05pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/17 "2002-12-24T16:05:34Z")

</div>

i love it lost! i could really use something like this myself. hmmm  
see what happens to me when i actually get to visit round here?

\>\>\> INSPIRATION :elderly:

which i have severely lacked lately with being so busy…or at least  
i was telling myself i was too busy. welp! time to break that…

/unflux  
\<:}

---

<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: [December 24, 2002, 6:01pm UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/18 "2002-12-24T18:01:14Z")

</div>

Playamarz: In theory I can load the clip and have it be \_visible = false and then get the width and height, and once the box expands or contracts, instead of displaying the size like I currently do, I will just turn the clip to \_visible = true… As I said though… in \<B\>theory\</B\> this will work…lol.

joeytomatoes: Yeah, for the example I just used basic shapes, I wasn’t going to go all out and fancy it up when all the scripting isn’t finished.

Unflux: Where have you been man? I missed ya 🙂 Inspire away!

Thanks for the cheer on guys 🙂

---

<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: [December 25, 2002, 3:08am UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/19 "2002-12-25T03:08:54Z")

</div>

_lol_…

Well if you need any help comign to a conclusion… I will try and feed you in on some info… This is rather interesting to me as well… And for my RPG to work I’ll have to do that sometime anyways… hehe…

---

<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: [December 25, 2002, 3:12am UTC](https://forum.kirupa.com/t/work-in-progress-experiment/10068/20 "2002-12-25T03:12:38Z")

</div>

I am pretty sure I can get this on my own, but thanks for the offer playamarz.

[Next page](https://forum.kirupa.com/t/work-in-progress-experiment/10068.md?page=2)
