Interactive Image Panning Help Please!!!!!

Hey guys,
I'm trying to achieve an effect similar to this one:
http://www.prada.com/pradabook/
When you click on a thumbnail and the larger image opens, when you move the mouse all the way to the right or left, the image just moves a fraction of the distance...
I simply can't figure this out...I only manage to have the image follow the mouse til the absolute edges....
I am playing arround with 2 scrolling codes:
// Create a point when the image is first clicked
var mouseLocFirstTime:Point = new Point(mc2._xmouse, mc2._ymouse);
mc2.onEnterFrame = function()
mc2.onMouseMove = function()
// Keep creating points according the mouse position on the image
var destination:Point = new Point(mc2._xmouse, mc2._ymouse);
// Find the difference between the two points
finalDX = destination.x - mouseLocFirstTime.x;
finalDY = destination.y - mouseLocFirstTime.y;
// Tween to the difference and add the mc2 x and y since the image inside mc2 is aligned top left
TweenMax.to(mc2,2,{_x:finalDX + mc2._x, _y:finalDY + mc2._y});
By the way, mc2 is the large zoomed image, which is much much larger than the stage...its about 8000 px!!!
The above code works fine, but i'm trying to reverse the direction, which is proving to be a pain!!! Can you guys please help?!?!?
The other code I'm trying to implement is this one:
var xRatioS = 0;
var yRatioS = 0;
var xTweenAmountS = 0;
var yTweenAmountS = 0;
mc2.onEnterFrame = function()
xRatioS = ((Stage.width - mc2._width) / Stage.width);
xTweenAmountS = _xmouse * xRatioS;
yRatioS = ((Stage.height - mc2._height) / Stage.height);
yTweenAmountS = _ymouse * yRatioS;
TweenLite.to(mc2,2,{_x:xTweenAmountS, _y:yTweenAmountS});
Now this one goes in the right direction as I need, but it goes all the way to the edges of my image...and I can't seem to figure out how to reduce the distance to about half or a quarter?!?!?!?
Thank you guys...I know this a long post....but i'm hoping that someone out there can help me out with any one of the above!!!
CHEERS

depending on the way you lay it out you could have it become part of the rollover on each button. But you'd have to have enough space on screen to accommodate the text you want displayed. Note that the video playing as part of menu background can only be so long and adds to the media on the disk.

Similar Messages

  • Interactive Image Panning within a Mask

    Hey guys thanks for the help so far. The last piece to the
    puzzle for me is figuring out how to scroll a movie clip within a
    mask. I'm currently working with the script taken from the
    Interactive Image Panning tutorial on kirupa.com as a base. Right
    now the script references the entire Stage area for scrolling the
    image whereas I want this to happen just within a mask. How do I
    set this up. Here is where I have the script right now:
    this.onMouseMove = function() {
    constrainedMove(Work_placeholder, 4, 1);
    function constrainedMove(target:MovieClip, speed:Number,
    dir:Number) {
    var mousePercent:Number = _xmouse/Stage.height;
    var mSpeed:Number;
    if (dir == 1) {
    mSpeed = 1-mousePercent;
    } else {
    mSpeed = mousePercent;
    target.destY =
    Math.round(-((target._height-Stage.height)*mSpeed));
    target.onEnterFrame = function() {
    if (target._y == target.destY) {
    delete target.onEnterFrame;
    } else {
    target._y += Math.ceil((target.destY-target._y)*(speed/100));
    ps. the instance name of my mask is Work_mask (movie
    clip)

    ok note sure if i got what your saying but il give it a try.
    you have a background image and a mask made up of 72 squares
    (1 symbol, 72 instance of that 1)
    if thats right. i just tried it also all i is 1 box working.
    mainly cause there symbols. so how do you do 72 easy make it 1
    symbol but not the easy way your ganna have to make it the long way
    ill try to help...
    go from the stage into the mask symbol so you can see the
    background image. now instead of having 72 instances just copy
    frames and make 72 layers then move them to fill screen. making
    your checked desolve look possible.
    if thats not what your looking for please put more info so
    someone else or i can help thanks..

  • I am trying to download Firefox 3.6 to use on my Mac OS X version 10.3.9. Three attempts and I continue to get "mounting failed" and "corrupt image". Help please?

    I am trying to download Firefox 3.6 to use on my Mac OS X version 10.3.9. Three attempts and I continue to get "mounting failed" and "corrupt image". Help please?

    Firefox 3.6 requires at least OS X 10.4, the last version of Firefox that worked on OS X 10.3.9 was Firefox 2.0.0.20 which is available from ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/mac/

  • PHOTOSHOP ELEMENTS 10 USING CANON 7D IMAGE PROBLEMS - HELP PLEASE

    I AM HAVING PROBLEMS WITH ELEMENTS 10 AND IMAGES FROM MY CANON 7D WHEN I DOWNLOAD TO SONY LAPTOP ON WINDOWS VISTA. COLOURS ARE DISTORTED, ESPECIALLY ON REDS WHICH ARE SHOWING AS EXTREMELY VIVID AND SOME BROWNS GOING TO A WINE COLOUR. THIS IS A FAIRLY RECENT PROBLEM AND NOT SURE WHAT I AM DOING WRONG? HAVE I ADJUSTED A SETTING BY MISTAKE? ALL HELP APPRECIATED
    MIKE WEBSTER
    SCOTLAND
    UK
    70 YEARS YOUNG
    [email protected]

    Hi Brian,
    Thanks for your reply.
    I have had the 7d for 4 years or more.
    The images downloaded before from the 7d, we're ok and still look ok, it is only in the past month this has happened and it is not with every image it is intermittent. Some are clear then others on the same shoot have the problem. It is even more exaggerated when printed.
    I have tried Zoom browser and it is less evident on there but still shows.
    I am shooting both with Raw & Jpeg and I think it shows in both.
    Being a mean Scotsman I grudge having paid for Photoshop Elements and not getting the good of it.
    I have tried Adobe on line but no luck and they ask me to pay for an annual contract before they will give me technical support, which is about £100.
    I appreciate your assistance and any further help.
    Best wishes,
    Mike
    Sent from AOL Mobile Mail

  • I recently upgraded to Yosemite.  Now in my Pages documents I cannot select/edit any objects or images.  Help Please!

    I just recently updated my MacBook Pro to Yosemite 10.10.2
    I also updated my "Pages" when asked to.
    Now when a open any of my Pages documents, I cannot select/edit any of the objects/images in those documents.
    I have gone through the "Pages" help but still cannot solve the problem. 
    There used to be a "make background objects selectable" button, but I can no longer find it.
    I have tried the "arrange tab" > section masters > make master objects selectable, but nothing happened
    Any suggestions

    Hello Kappy,
    I checked out your link and I remember the import box popping up when I upgraded from iWork to Pages a few years ago.  My problem is with all files (even documents created with "pages" last week.  The documents open fine, I just cannot select/edit the objects/images in the background of my documents.  Yes, I have tried going through all of the tab menus and layout options and tried "pages" help.
    So my problem is that I cannot open documents and adapt them to my next lesson, etc.
    Anyone else have any suggestions?

  • Image Maps - Help Please

    Hi, I have been asked to make web buttons of a floorplan. hard to explain but I'll try.
    I have placed the floorplan in Illustrator CS. The rooms/suites are different shapes. Is there a way to create buttons so that each floor will change color as it is rolled over. I can easily create a button in GoLive etc. but the problem is I need the floorplan in the background in GoLive and then I need to have the different shaped floors change color when rolled over.
    Can I do this in Illustrator and then use in GoLive?
    Thanks

    > Is there a way to create buttons so that each floor will change color as
    > it is rolled over
    Not easily. The best/easiest way I know of would be to have each room's
    graphic as an isolated image in the color you want, with a transparent
    background. Then place this in a layer, positioned exactly over the entire
    floorplan graphic (you can't use a background image here since you want to
    apply hotspots to it). Then draw your hotspots on that floorplan graphic
    and have each hotspot show the associated room layer in such a way that it
    APPEARS that the room has changed colors. Make the mouseover event on the
    hotspot to show the layer, and the mouseout event on the image in the layer
    HIDE the layer.
    There are other ways that would be better, but not easier....
    Murray

  • HP Photosmart Premium c309g-m does not have a mirror image print option-help please

    After twice being dropped from HP chat support I have laned in this forum to get some help please.
    I need to be able to print mirror images from my printer and it simply is not a option-it's not a matter of turning on the
    option, it is not there at all.
    Thanks
    Donna

    Check the iron-on packaging for ink specs.   Make sure to use HP iron-on paper.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • I had all photos on a Windows desktop.  Got a mac laptop, installed LR5, and put all images from Windows onto an external hard drive.  When I go to import them into LR on the Mac, they are all locked.  Help, please.  Thanks

    I had all photos on a Windows desktop.  Got a mac laptop, installed LR5, and put all images from Windows onto an external hard drive.  When I go to import them into LR on the mac, they are all locked.  Help, please!

    "I plugged the external into the Mac and moved a folder of images onto the desktop.  It looks like it went from read only to not locked.  Is this possible?"
    Yes, that's exactly what happened. If you buy another drive, you could copy from your existing drive to the new and your files will be read/write. The new drive will have to be formatted as an HFS drive (that's the Mac's format). If you need to format it, you use Disk Utility which is in the Utilities folder on your Mac. Be careful with that -- it wipes out whatever is currently on the drive. Make sure you format the right drive.
    I keep all my images on an external drive, too. In fact, I have two matching drives and sync them so I always have a backup.

  • Safari 5.1 in iMac OS X 10.6.8.Adding Bookmarks to "unsorted Bookmarks" folder puts them in a black hole.  I can't find the "UB" folder.  Where is it? Should I add it to the folder list somewhere on the left pane? OR? Help, please!

    Safari 5.1 in iMac OS X 10.6.8.Adding Bookmarks to "unsorted Bookmarks" folder puts them in a black hole.  I can't find the "UB" folder.  Where is it? Should I add it to the folder list somewhere on the left pane? OR? Help, please!

    It looks like that the installation process of one of the applications have caused some trouble. One of them may have changed or added kext files.
    For that, the Window server crashed if you try to open a non Apple application like Firefox
    Start the system in safe mode by holding the shift key on power on.
    If save mode is reached, perform a permissions repair with the Disk Utility.
    Don't bother about upcoming warnings like "could not repair file xy" as that occur cause you use the tool on a running system and opened files can not get touched by the tool.
    After repair is done reboot system to normal and try to open Firefox.
    If the problem persits, please report back here.
    Lupunus

  • For the last 2 days whenever I try to upload photos from my iPhoto page to facebook I get an error message: Bad Image There was a problem with the image file.  I haven't knowingly changed any settings on iPhoto or facebook. Can anyone help, please ?

    I need help with uploading photos from iPhoto to facebook. I could do it till 2 days ago. Now any new photo I try to upload gives me an error message:
    Bad Image
    There was a problem with the image file. 
    Please help.

    Can you drag it to the Desktop?

  • Have photoshop cs5 installed on desktop..got new Canon rebel T5i camera...cannot open RAW images...updated and installed plug-in...still now working.  Need help, please.

    I have photoshop cs5 installed on desktop...got new Canon rebel T5i camera...cannot open RAW images...updated and installed plug-in...still not working...help please.

    In any event, that camera was first supported by ACR version 7.4 which needs at least CS6 to run.  Naturally, all later versions support it too.
    Your choice is either to upgrade your Photoshop, or to look for, download, install, launch and run the free, stand-alone Adobe DNG Converter 8.6 on each folder containing your raw Canon files to convert them first to raw DNGs that you can open in CS5.
    In no case does an Adobe application belong "on your desktop".  The default install location should always be respected and left alone.

  • Can anyone help please with my Time Machine, I have been getting the following message The backup disk image "/Volumes/Mac Backup/Stephen Smith's iMac.sparsebundle" is already in use.

    Can anyone help please with my Time Machine, I have been getting the following message The backup disk image “/Volumes/Mac Backup/Stephen Smith’s iMac.sparsebundle” is already in use.

    See > http://pondini.org/TM/C12.html

  • Put dynamic image on interactive forms can u please tell steps by ste

    Hi,
    I need to display image on interactive forms can u please tell steps by steps.
    Regards,
    Gurprit Bhatia
    Edited by: GURPRIT BHATIA on Dec 26, 2007 5:20 AM

    Hi Gurprit Bhatia,
    To add a static image:
    In the Standard tab of the Library palette, drag a Static Image object into the form.
    Insert the image:
    To reference a link to an object stored separate from the form, double-click the Static Image object on the form design and insert the image:
    In the URL box, type the URL to the image file.
    Click the Browse button  to the right of the URL box, navigate to the image file that you want to insert, and click Open.
    With Regards,
    RooP KumaR .

  • I have an ibook g4 laptop and i cant add   music frommy library to my ipod touch but my ipod shows up on image capture ? please help immiedeatly

    i have an ibook g4 laptop and i cant add   music from my library to my ipod touch4 but my ipod shows up on image capture ? please help immiedeatly

    What OS is on the iPod?
    What version of iTunes is on the computer
    Try using iTunes 10.6.3

  • I have an older Mac desktop, version 10.5.8. I need to reinstall Image Capture. Help, please.

    I have an older Mac desktop, version 10.5.8. I need to reinstall Image Capture. Help, please.

    Do you have the original gray system disks that came with the computer, or a full retail install disk set for 10.5? If so, you can use a utiltiy:
    http://charlessoft.com/pacifist_olderversions.html
    to extract just Image Capture from the disk and install it. Otherwise, you  would have to reinstall the entire OS

Maybe you are looking for