Forum Moderators: open
That is all that is required, just the one scrolling image. I have seen a few tutorials on the web, and the concept seems quite simple, but these tutorials always go a couple of steps further than I need and with my knowledge do not allow me to get what I want.
Is what I want simple? Can someone advise what I need to do?
Hope someone can help.
Cheers
this should get you started with the picture scrolling in response to mouse movements:
have your picture contained in a movieclip with an instance name of pic_mc. in your actions layer put this:
pic_mc.onEnterFrame = function ()
{
picx = pic_mc._x;
//define picx as the x coordinate of the picture
mousex = _root._xmouse;
//define mousex as the x coordinate of the mouse
if (picx <= mousex) {
pic_mc._x += 1;
//if the mouse is to the right of the pictures centre, move the picture to the right
}
if (picx >= mousex) {
pic_mc._x -= 1;
//if the mouse is to the left of the pictures centre, move the picture to the left
}
};
ben