PDA

View Full Version : cool zoom in effect


skyflower
06-25-2005, 12:20 AM
Hi all,

I saw this cool zoom in effect:
http://www.jeffreyhein.com/welcome.html
Enter this site, click on the first image and then click on "View detail on" on the left.

Kewl, huh?

Well, I want to do something like this, but even cooler!
I want to be able to drag the image with a hand instead of mouse movement.
Also, what's important, I need to be able to load these big images dinamically, so that my boss can change them without ever opening Flash.

Any ideas?

Thanx :)

FTStudiosJoe
06-25-2005, 02:17 AM
Just use the examples that came with flash. They show you exactly how to do all these things that you are asking

krone
06-25-2005, 02:33 AM
i would
have one MC that loads up the normal image
another MC on top that loads up the bigger image (but only when u have "view detail" on)
and just use a starDrag stopDrag on the bigger image. finally using a mask to only see one part of it.
hope that made sense ;)
good luck

skyflower
06-25-2005, 04:14 AM
I did what you said and the movie clip on top loads the image but it doesn't let me drag it.

Here's the code in frame 1:
var zoomed = false;
small_images.loadMovie("img0.jpg");

Here's the code for the zoom button:
on(release) {
if (zoomed) {
big_images.unloadMovie("img0big.jpg");
zoomed = false;
}
else {
big_images.loadMovie("img0big.jpg");
zoomed = true;
}
}

And here for the movie clip holding big images:
on(press) {
startDrag("img0big.jpg");
}

on(release) {
stopDrag();
}

skyflower
06-25-2005, 04:18 AM
I had a misconception of what the "target" parameter of startDrag function was. I read full Macromedia documentation and fixed it. :p

Thanks for great advice :)