Hello guys,
I need a little help to understand a couple of things:
I'm trying to design a website with a _ymouse panning background image (this is an example of what I'd like to do: http://www.scotch-soda.com/#/collection/scotch1_0/detail )...
here is the code I'm using (AS2):
import com.greensock.TweenLite;
myMouseListener = new Object();
myMouseListener.onMouseMove = function() {
TweenLite.to(bg_mc,1,{_y:-_ymouse});
};
Mouse.addListener(myMouseListener);
Questions:
1) According to your experience is this the best way to use TweenLite?
2) Of course by passing the parameter "-_ymouse" I only see part of the picture when I point the mouse to the bottom of the stage, because the _ymouse value is lower then the picture height... so this value must be a variable that changes as the stage size changes... forgive my ignorance but I don't know how to do it...
Thanks very much for your help and thanks so much to Greensock!