A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    225
    anyone know how to create a dargable image but constrain how far it can be dragged. it is probably easy but i cannot find any tutorials anywhere.
    thanks

  2. #2
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    to drag it only sideways put this script on a button in an mc:

    Code:
    on (press) {
    	startDrag (this, false, -200, this._y, 200, this._y);
    }
    on (release) {
    	stopDrag ();
    }

    the -200 and 200 dictate how far sideways you can drag it

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    225
    many thanks swampy

    ever driven in naples?
    i had a taxi ride from one side to the other and the taxi driver was nuts!

  4. #4
    curmudgeon swampy's Avatar
    Join Date
    Jan 2001
    Location
    [wakey]
    Posts
    2,775
    No worries. Yes I used to srive in Naples every summer when I visited my parents.

    rules are:

    1.don't worry about anyone behind you, they will take care of themselves.
    2. only stop at traffic lights where people are selling things.
    3.don't stop anywhere after dark

  5. #5
    Senior Member
    Join Date
    May 2001
    Posts
    225
    ha ha

    our guy said never look scooter drivers in the eye, always pretend you haven't seen them otherwise they will not swerve out of the way. and the traffic police go home at 8pm and leave eveyone to it! fantastic. back to the dragging sideways thing - i'm going to try it tomorrow, been a bit busy so far but i really appreciate your help, it is the exact effect that i was looking for
    ta

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center