Work in progress Experiment

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 :slight_smile: 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 height=400 width=550”][/swf]

Let me know what you think :slight_smile:

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

yes it would
i like it very much
good job man

how come that being good does not surprize me? :stuck_out_tongue:

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.

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

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…

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

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

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

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

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

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…

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.

Thanks Philbert :slight_smile:

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. :stuck_out_tongue:

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

Well, thanks for the compliment though :slight_smile:

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.

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.

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.

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

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
<:}

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 :slight_smile: Inspire away!

Thanks for the cheer on guys :slight_smile:

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…

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