• home
  • forum
  • my
  • kt
  • download
  • Flash actionscript basics drag object

    Author: 2007-07-03 09:51:16 From:

    1.
    This is actually very very basic so maybe to small to call it a tutorial, but okay it may not be so basic for beginners so I decided to make it anyway.
    Start by creating the graphic you want to drag.

    Photoshop Tutorial thumb picture


    2.
    Right click the object and convert it to a button.
    In the properties panel (default located at the bottom), and name the button a.

    Photoshop Tutorial thumb picture


    3.
    Now select the new button and go to the actionscript panel.

    Type in the following actionscript code.

    on (press) {
    startDrag("a")
    }

    on (release) {
    stopDrag()
    }

    Now the first part make the button dragable on press, then on release it stops dragging, pretty basics, but may be a good starter for beginners.

    Photoshop Tutorial thumb picture


    And we are done.

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      3D (20)
      Math Physics (14)
      3rd Party (5)
      Navigation (60)
      Actionscripting (26)
      Optimization (16)
      Animation (32)
      Projector (9)
      Audio (46)
      Special Effects (112)
      Backend (25)
      Text Effects (65)
      Drawing (18)
      Tips and Techniques (41)
      Dynamic Content (25)
      Tricks (6)
      Games (66)
      Utilities (19)
      Getting Started (71)
      Video (10)
      Interactivity (21)
      Web Design (22)

    New

    Hot