Flash … aaahh!!
What started out as an idea suggested to me (as I’ve been playing with some code), has grown into a full on learning cliff … no, that’s not a typo.
You see, I’d call a learning curve, a gentle upwards motion in the gaining of knowledge of a particular task. But, what I’ve been doing is continuously jumping, and diving, in the deep end of (drum roll) ACTIONSCRIPT.
The task, originally, sounded simple; to make an interactive ‘game-like’ activity to be used for gym students. This, however, very quickly turned into the learning cliff. I, as usuall, tried to think of every question or possibilty the activity could be asked to do (by the person who wanted to use the end product) and promptly tried to do all said possibilties.
The task was simple (emphasis on the was), to make a diagram of the body (muscle structure) and have the ability to drag and drop labels into the correct places.
Step1: Drag ‘n Drop
This was pretty easy, in fact, most of the code for Actionscript is pretty easy when you get going. Remembering the drag and drop application I made years ago in Visual Basic, I thought the code would be lengthy … luckily it wasn’t.
To the stage (that’s, the main area of the scene), I added the following line of code:
1) stage.addEventListener(MouseEvent.MOUSE_DOWN,dragstart);
stage … refers to the area/button/movie clip that the next lot of code will apply to. If I wanted to limit the code to a particular movie clip or button, then I’d change this to the instance name.
Filed under: projects | Leave a Comment
Tags: flash
No Responses Yet to “Flash … aaahh!!”