| Ultrashock Forums
• Dragable flash? |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
|
2006-03-12
#2 |
||
|
ActionScript Code:
|
|
17 Creative Assets
|
2006-03-12
#3 |
||
|
You could also have a look at MovieClip.startDrag() and MovieClip.stopDrag() methods in the Flash Help docs. If you set Flash's wmode parameter in your HTM file though then I would use a custom class like bambi's up there^ to avoid a little Firefox/Mozilla bug. |
|
|
|
2006-03-12
#4 |
||
|
yeah, and you can't use easing with startDrag (afaik).
|
|
|
|
2006-03-12
#5 |
||
|
thanks, that helped!
|
|
|
|
2006-03-12
#6 |
||
|
Actually, I'm still having big problems, I'm a bit rusty with my Actionscripting . I had it working then it decided to just not drag at all. I also can get the MovieClip.startDrag() and MovieClip.stopDrag() to work, but I want it to have the easing. If anyone could just look at my file and get it working, that would be great. http://www.indieyoungstown.f2o.org/drag.fla |
|
|
|
2006-03-12
#7 |
||
|
there's no code in that file
|
|
|
|
2006-03-12
#8 |
||
|
I know I removed it because it was a mess. I don't even know where to begin.
|
|
|
|
2006-03-12
#9 |
||
|
my code above is a subclass of MovieClip. in your file, the clip on the stage needs to be draggable. take my code, create an as file and save it as Draggable.as in the folder with the fla. go to the clip in the library, and rename it Draggable. then right click on it and select Linkage... enter Draggable for both the identifier and the AS 2.0 class. check "export for actionscript" if necessary. |
|
|
|
2006-03-12
#10 |
||
|
yes! I did the part about saving it as Deaggable.as wrong. This was bugging me all day, thanks again!
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


9 comments
| 366 views


17 Creative Assets
. I had it working then it decided to just not drag at all. I also can get the MovieClip.startDrag() and MovieClip.stopDrag() to work, but I want it to have the easing. If anyone could just look at my file and get it working, that would be great.
Linear Mode