Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: dragging part two
From: Ramesh CT
Date: Wed, 1 Nov 2000 06:07:01 GMT

You have to have a starting movie clip's horizontal location, from there you
move a movie clip left or right 72 pixels.

// movie clip script
onClipEvent(load) {
origX = this._x; // starting horizontal position of MC
origY = this._y // starting vertical position of MC
}

// button script
on (press) {
startDrag (this, false, origX-72, origY, origX+72, origY);
}
on (release) {
stopDrag ();
}

hope this helps
regards
-------------------
Ramesh CT
http://www.geocities.com/ramesh_ct/

-----Original Message-----
From: Jim Curry <jcurry1attwcny [dot] rr [dot] com>
To: flasheratchinwag [dot] com <flasheratchinwag [dot] com>
Date: Wednesday, November 01, 2000 10:52 AM
Subject: FLASH: dragging part two


|
|OK, I think I give up!
|
|I have a movie clip with a hidden button that, when pressed allows the
|user to drag the clip. I want it to only drag one inch either left or
|right...no movement allowed up or down. I set the constraint to
|rectangle to 72 fro LTRB and as soon as I click down on the clip, it
|shoots to the top left coprner of the nmovie. What am I doing wrong???
|Thanks,
|Jim
|
|--
|Jim Curry :-)
|Virtual Curry
|"A nice place to unwind on the internet"
|gif and flash animations,
|illustrations, music and more
|http://home.twcny.rr.com/jcurry/
|
|jcurry1attwcny [dot] rr [dot] com (mailto:jcurry1attwcny [dot] rr [dot] com)
|************Stop by and Relax!**************************
| The Virtual Curry Gallery is filled with fun, entertaining, and
|interactive pieces. Be sure to try out the new PaintBall Flash
|Game for 1 or 2 players.
| The House Tour is undergoing some renovations! Stop by for
|the latest additions and changes!
|http://home.twcny.rr.com/jcurry/gallery.html
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|flasher is generously supported by...
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| flashforward2000 and the Flash(tm) Film Festival
| November 27-29, 2000, LONDON, National Film Theatre
|
| Produced by United Digital Artists and lynda.com
|-Sponsored by Macromedia, Adobe Systems and Apple Computer
|-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
| Register before November 10 and save �200
| http:// www.flashforward2000.com
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| To unsubscribe or change your list settings go to
|http://www.chinwag.com/flasher or email helpatchinwag [dot] com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: dragging part two, Jim Curry

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]