Old 21-07-2003, 07:06   #1 (permalink)
smallbeer
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.
  Reply With Quote
Old 21-07-2003, 14:40   #2 (permalink)
dan
Iris Folder
 
dan's Avatar
 
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 assuming your using MX - which I seem to remember you were.

this.onPress = function () {
this.startDrag(true);
}

this.onRelease = function (){
this.stopDrag();
}

And who says we aren't helpfull
  Reply With Quote
Old 21-07-2003, 16:20   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
Quote:
Originally posted by dan
And who says we aren't helpfull


Certainly not me my man.

Cheers
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 22-07-2003, 04:09   #4 (permalink)
dan
Iris Folder
 
dan's Avatar
 
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
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8