Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-19-2006, 04:04 PM   #1
neatman
Registered User
 
Join Date: Jan 2006
Location: Ohio
Posts: 2
Send a message via AIM to neatman
Default Zoom Gallery (Photo)

Y'all,

I am seeking an actionscript based flash solution to allow zooming photos for details. I would like something that doesn't require the viewer to download a plug-in. (zoomify)

Does anyone have an suggestions on tutorials or a concept that I can start with? I really like this example. Does anyone know how to do this?

http://www.sundancecatalog.com/shopp...ProductID=7878

(Click the large image)

Thanks in advance.
NeatMan
neatman is offline   Reply With Quote
Old 01-19-2006, 07:13 PM   #2
neatman
Registered User
 
Join Date: Jan 2006
Location: Ohio
Posts: 2
Send a message via AIM to neatman
Default ZOOM Gallery (Photo)

Y'all,

I am seeking an actionscript based flash solution to allow zooming photos for details. I would like something that doesn't require the viewer to download a plug-in. (zoomify)

Does anyone have an suggestions on tutorials or a concept that I can start with? I really like this example. Does anyone know how to do this?

http://www.sundancecatalog.com/shopp...ProductID=7878

(Click the large image)

Thanks in advance.
NeatMan
neatman is offline   Reply With Quote
Old 01-19-2006, 07:18 PM   #3
Paerez
Chick dig raccoons
 
Paerez's Avatar
 
Join Date: Apr 2005
Location: Maryland / Massachusetts
Posts: 1,104
Send a message via AIM to Paerez
Default

I wrote one of these. Its pretty simple. Use a scrollpane and use scrollpane.load to load an image. Then you record its dimensions (like 800x600). Then, you make a slider. Then you set the onRelease of the slider to compute its distance from the start to the end to get a number. Then you use a linear transformation to change that number to a number between 1 and 10 (for a 10x maximum magnification).

Use this number (time 100) as the xscale and yscale for scrollpane.content. If you want to center as you zoom, you have to do some math to figure out the increase in x pixels and y pixels after the scale, and subtract half from the content's current _x and _y. Also you use startdrag and stopdrag on the content to move it around.
Paerez is offline   Reply With Quote
Old 01-19-2006, 07:28 PM   #4
theDude78
Registered User
 
Join Date: Feb 2005
Location: Yukon Oklahoma
Posts: 96
Default

I would think you would need to start with an obviously larger HIGH rez image of what you want to zoom and then somehow add the scale factor to each button press. Sadly I'm an aspiring actionscripter and all I can say is good luck and I apologize that I can't be of more assistance.
theDude78 is offline   Reply With Quote
Old 01-23-2006, 03:44 PM   #5
rnby
Registered User
 
Join Date: Sep 2005
Posts: 3
Default

Quote:
Originally Posted by Paerez
I wrote one of these. Its pretty simple. Use a scrollpane and use scrollpane.load to load an image. Then you record its dimensions (like 800x600). Then, you make a slider. Then you set the onRelease of the slider to compute its distance from the start to the end to get a number. Then you use a linear transformation to change that number to a number between 1 and 10 (for a 10x maximum magnification).

Use this number (time 100) as the xscale and yscale for scrollpane.content. If you want to center as you zoom, you have to do some math to figure out the increase in x pixels and y pixels after the scale, and subtract half from the content's current _x and _y. Also you use startdrag and stopdrag on the content to move it around.
could me please show me your example

thanks in advance
rnby is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Photo Gallery - Thumbnail and Gallery Centering Issues retrodog ActionScript 2.0 1 01-31-2005 06:45 AM
photo gallery question hondo311 ActionScript 1.0 (and below) 0 08-04-2004 08:13 PM
need help with zoom effect for photo gallery pixelNymph Animation and Effects 1 10-31-2003 02:16 PM


All times are GMT. The time now is 04:43 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.