In addition. You want the image to move based on the mouse position? Like if the mouse if far to the left, the image will move fast.... if mouse is in center, the image is almost still... correct?
Bad tutorial here, but describing the principle:
http://www.internetcross.c
Another example of a slider:
http://www.flashkit.com/mo
Or slightly different:
http://www.flashkit.com/mo
Main Topics
Browse All Topics





by: dutchfoxerPosted on 2005-10-10 at 10:00:55ID: 15053604
Not really sure what you mean. But lets try a few links and you can decide if there is something usefull there. Otherwise give me more info based on these examples:
loper/flas h5/draggin gmask.htm
_root.myma sk); ) om/display /4.php
("containe r", 0); Clip("nest ed", 0); ("image.jp g");
("rectangularclip", 1234);
lip,0,0,20 0,150);
kWidth,mas kHeight) { larclip);
This one shows how a mask can be put on top of an image and then Move the mask:
http://www.kirupa.com/deve
This one shows you how to create masks using Actionscript (is actually easy: _root.mymovieclip.setMask(
http://www.internetcross.c
And I found the following Actionscript on this Experts website:
_root.createEmptyMovieClip
container.createEmptyMovie
container.nested.loadMovie
_root.createEmptyMovieClip
drawRectangle(rectangularc
function drawRectangle(mc,mX,mY,mas
mc.beginFill (0x000000, 100);
mc.moveTo (mX, mY);
mc.lineTo (maskWidth, mY);
mc.lineTo (maskWidth, maskHeight);
mc.lineTo (mX, maskHeight);
mc.lineTo (mX, mY);
mc.endFill();
}
container.setMask(rectangu
Any of this helpfull?