Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

zoom, drag and drop in a movie clip

New Here ,
Sep 07, 2013 Sep 07, 2013

if zoom a movie clip...i want drag and drop the mc...and also don't go the mc outside the screen..pls help me...:(

TOPICS
ActionScript
582
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 07, 2013 Sep 07, 2013

To drag within a limited area you use the startDrag() method, defining a rectangle to limit how far the object can be moved in any direction.  The startDrag is normally executed when a MOUSE_DOWN event occurs for the object that is to be dragged.  A MOUSE_UP event is what is used to trigger a call to the stopDRag() method, whereby the listener for that is usually assigned to the stage.

Search Google for a tutorial using terms like "AS3 drag drop tutorial" if you need detailed coding help to get started.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2013 Sep 08, 2013
LATEST

how can i set the limit for the rectangle..ie i want to move my mc inside the stage only and dont want to see the background...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines