Skip to main content
October 13, 2007
Question

Dynamic Gallery - Automatic Resize To Window

  • October 13, 2007
  • 2 replies
  • 612 views
Hopefully this will be the last question about the dynamic Flash gallery I've been putting together. So far, the finished product can be found here: http://www.phenixdesigns.net/testing/art_index.html

First of all, thanks so much to everyone on the boards for their help with this.

And now, I've got one more question. It's not a necessity, really, as I've got the gallery working as I'd like it to. It's just a little added something that I think would be nice.

The only comparable example (that I've been able to find) to what I want to do is found at http://www.suicidegirls.com.. Be warned before clicking that it is an adult website with nudity.

When viewing pictures in their gallery, the full-size images resize when you change the window size. They also resize if you change your screen's resolution. I'm assuming that they have the full-size images in a high resolution on the site and that there is some code, be it XML or AS, that tells Flash to resize the image based on screen resolution/window size.

I've searched through the forums and on Google and I haven't found anything that really fits what I'm looking for. I did find some posts about dynamic image resizing, but as I said, they didn't seem (to me, at least) to really fit into what I'm looking to do. If I overlooked someone's post, please point me in that direction.

Otherwise, can anyone help me with this? I do have all of the images for the gallery I'm building in high-resolution, so it would be no problem to use those instead and just have the script scale them depending on screen resolution/window size.

Again, thanks so much for the help! Couldn't have done it without you folks.
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
October 14, 2007
yes.
October 14, 2007
Alright, cool.

I did look around at some stuff and tried a couple of things, but couldn't figure out what exactly to do. How should my code look for this?
kglad
Community Expert
Community Expert
October 14, 2007
as2 or as3?
kglad
Community Expert
Community Expert
October 14, 2007
in as2 the stage has an onResize method, and in as3 the stage has a resize event that you can use to trigger changes to your swf when these events occur.
October 14, 2007
I'll look into that, but I'm not trying to resize the SWF at all. I want the size of the external/dynamic JPEGS to change with window/resolution size.

Is that what this should do?

As I said, I'm looking it up right now to check it out, but I thought I'd cover my bases here at the same time.

Thanks!