Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    "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

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #3
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #5
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #6
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #7
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok i've done that with the picture i want make into the link now.

  • #8
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #9
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i can't open up that tutorial without a "members password" it says.

  • #10
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #11
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #12
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #13
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.

  • #14
    New Coder
    Join Date
    Jul 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #15
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •