Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-24-2009, 08:43 PM   PM User | #1
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
"click to enlarge" in flash

Is there any action script you can put on an image in flash that "on-click" makes it open up in a new web browser page with a magnifying glass to be able to zoom in and pan around the image? I'm really new to flash so any help would be much appreciated. Thanks
stanleyd25 is offline   Reply With Quote
Old 07-24-2009, 10:37 PM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
You could make a link on the image that would open up a new window with a new Flash window, that loads that image.

You would need to start with making the icons that open a new window.

I'll help you conceptually, but what version of AS?
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 07-25-2009, 11:45 PM   PM User | #3
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
I'm currently working with Adobe Flash CS3 Pro which is version 9 I think. Ok, so how is it that like on shopping websites or whatever, when you click on an image it opens up a window with a larger image and a magnifying glass to be able to zoom in and even pan around the image. Any hopes of doing something like that in flash?
stanleyd25 is offline   Reply With Quote
Old 07-26-2009, 12:01 AM   PM User | #4
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Sure, but the question is still which version of Actionscript, 2 or 3?

The basic functions for opening a new window in version 2 are getURL (look at the documentation for examples on how to use it) and then the zoom function would be a separate page with something like this

http://www.artluvr.com/2008/03/22/ma...ctionscript-2/

If you want to use AS3, there are other methods but similar processes.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 07-26-2009, 05:10 AM   PM User | #5
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
I'm using AS 2.0. That's all pretty much Greek to me man. I'm new to all this flash stuff. Could you break it down a little bit for me?
stanleyd25 is offline   Reply With Quote
Old 07-26-2009, 09:48 AM   PM User | #6
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Oh I'll try, but its going to require some experience with coding to get this to work.

Start with this.

http://www.developingwebs.net/flash/geturl.php

It will help you make the links in the main movie to open a new window.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 07-26-2009, 03:08 PM   PM User | #7
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
ok i've done that with the picture i want make into the link now.
stanleyd25 is offline   Reply With Quote
Old 07-26-2009, 04:54 PM   PM User | #8
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Make another file and do this tutorial.

http://www.webwasp.co.uk/tutorials/b...nify/index.php

That will show you how to make the magnify effect. Then lastly we'll have to change it so that it will load the same image that was clicked.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 07-27-2009, 08:14 PM   PM User | #9
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
i can't open up that tutorial without a "members password" it says.
stanleyd25 is offline   Reply With Quote
Old 07-27-2009, 09:13 PM   PM User | #10
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
http://www.webdesign.org/web/flash-&...ect.14833.html

There are others online if you want to search for them.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 07-29-2009, 01:50 PM   PM User | #11
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
Ok, I did this flash video tutorial and that's not really what I want o do. What would be the easiest way to just have a new browser window open with a larger size image?
stanleyd25 is offline   Reply With Quote
Old 07-29-2009, 02:39 PM   PM User | #12
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
here's an example of what I mean. When you click the picture it opens up a new box with a larger image.

http://www.circuitcity.com/applicati...&Sku=W330-1602
stanleyd25 is offline   Reply With Quote
Old 07-29-2009, 03:40 PM   PM User | #13
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Then just have it open up a new link with javascript.

http://kb2.adobe.com/cps/141/tn_14192.html
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Old 07-29-2009, 11:06 PM   PM User | #14
stanleyd25
New Coder

 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
stanleyd25 is an unknown quantity at this point
ok cool I got the new browser window to open. Now I need to know how to get the larger image file I want to pop up in that window. And another little thing...in the new browser window that opens it says "untitled". How can I change that?
stanleyd25 is offline   Reply With Quote
Old 07-29-2009, 11:16 PM   PM User | #15
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Well link directly to the large image, you'll have to know that in the actionscript so that it opens a new window directly to that image. Or you can create some kind of PHP page that accepts a variable and displays that image.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:08 AM.


Advertisement
Log in to turn off these ads.