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.
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.
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…
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.
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.
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.
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!
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…