| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,236
|
simple flash I think
I have an image 1200x200 which will be displayed through a letter box on the site 600*200 so only half the image is visible at a time. All I want to do in Flash is allow the user to drag the image with their mouse to enable them to see the rest of it. Make sense? I'm sure this is simple stuff but I can't find anything through searching. Jamie That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
|
|
#2 (permalink) |
|
Iris Folder
Join Date: Apr 2003
Location: smokey
Posts: 2,672
|
Just place the image in a movie clip and make it dragable. Drop this code on the first frame of the movieClip along with the image and it should work this.onPress = function () { this.startDrag(true); } this.onRelease = function (){ this.stopDrag(); } And who says we aren't helpfull |
|
|
|
#4 (permalink) |
|
Iris Folder
Join Date: Apr 2003
Location: smokey
Posts: 2,672
|
If you want to constrain the movement to vertical/horizontal only it's a bit more work. There are plenty of scroll bar tutorials around that you could make use of for this. I'll post some when I next some across some... you can always try http://www.actionscript.org I think there's one on there, and I'm pretty sure that there is one on http://www.ultrashock.com Good luck |
|
![]() |