flash UGHHHH!!!
- Started
- Last post
- 3 Responses
- seventhHope
um shit...i am trying to make a picture menu....so... i have a movieclip that has a width=1000
and i set up boundries for it and i want ti to scroll from side to side against the _xmouse...so if the mouse moves to the right i want to have the movie clip scroll to the left...any suggestions??
- nuggler0
Something like this on the scroll bar:
on (press) {
startDrag(this, true, 80, this._y, 580, this._y);
}
on (release) {
stopDrag();
}onClipEvent(enterFrame){
_parent.mcname._x =+ (-this._x*2)+1000;
}
- autonoma0
There are seriously a million examples of this available for download on http://www.flashkit.com
- unknown0
Think of it this way...
if your screen size =400 wide and your image is 1000 wide... you will want the image to scroll the maximum of 600 (or -600) so you then take the mouses x-position / 400 (the screensize) ...
and times it by -600...
or something like that...