ok, i'm trying to build a java style zoom view, where you have a small image
of a product you mouseover it and this then navigates you round an enlarged
view to the right of it, 

 

i've done a very quick mock up zipped here, but am useless at math and need
to know how to go abouts working out the way to equate the corresponding .x
and .y for the large image.

 

many thanks, T.

 

 

code

 

import gs.*;

 

var masker:MovieClip;

var small:MovieClip;

var big:MovieClip;

 

big.mask = masker;

var b = small.getBounds(this);

trace(b);

 

small.addEventListener(MouseEvent.MOUSE_MOVE, smallHover);

 

function smallHover (Event:MouseEvent):void{

                //trace(mouseX+ " mouseX");

                //trace(big.x + " bigX");

                

                TweenMax.to(big, 1, {x:mouseX});

                big.y = mouseY

}

                

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to