Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Drag and Drop Tutorial in Flash Actionscript 3 (Part 1 of 3)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
16,672
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 19, 2010

Learn how to write object oriented drag and drop Actionscript 3 code in Adobe Flash. The video takes you through the entire process from scratch, using a shopping trolley as an example. Covers external classes, event detection, drop target detection and much much more!

This is Part 1 of 3.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (DNDigital)

  • I didn't know Arnold Schwarzenegger could use Flash!

  • @kevinduffy89 He IS very versatile!! There was a discussion about this on one of the other videos already by the way ;) Hope you enjoy the rest of the tutorials...

  • Why do you make so many folders? net.dndigital.dragdrop? I got it going on and it took me days. I am a rookie, but I got all the way with part one and part two and it works. The trouble I am having, is any adjustment I make to code will not take to be published. However, if I save the script file (WhiteShirt.as), then open it again, whatever previous changes I made to the external action script will take place. Why is that? I am using cs4 pro. Your remind me of my brother. Pure genius.158 IQ. :)

  • @YouSpamTard Maybe I should ask your brother to do these instead :) Make sure you save your .as file first before publishing - it's easy to forget. The folders are important as they prevent conflicts between different projects. You might be able to set up an empty folder structure that you use as a template for projects (eg. 'view', 'data', 'buttons' etc). External code editors (FlashDevelop is free, FlashBuilder costs) will create the folders for you automatically too. Hope that helps!

  • Hello good afternoon

    I have a question, when I go to the properties of the symbol in the "base class" should have written - flash.display.MovieClip

    But this field goes out alone when I click "ok".

    Are there connections between the movieclip and AS file, but gives no error and the code works correctly.

    can you help me?

    thank you

  • @JoaoSoaresLima If you've defined a custom class in the first 'Class' field, then you don't need to edit the BaseClass field (it should probably just say 'flash.display.MovieClip'). The first field defines the name of the class and you would normally put in a whole package identifier ('net.dnd.MyClass'). If you just put a single name ('MyClass') without a separate .as file, that also works - Flash will warn you and create its own class with that name based on 'base class' when you publish.

see all

All Comments (46)

Sign In or Sign Up now to post a comment!
  • Cool stuff!! THX for sharing!!

  • @Artinostiger Hiya - You can use 'addChild' to add new visual content in the drag-and-drop if-statement. I've replied in more detail to your direct message.

  • Hi Teacher

    how we replace the Trolley after each drop ?

    and how we can give tshirts priority for dropping?

    Thx

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more