A variation of the gravity with throwable ball experiment. It has optional gravity. Click the ball to drag and release to drop or throw it. Press the space bar to add more balls (up to 30). Press the down arrow to turn gravity off, and pres the up arrow to turn it back on. You [...]
Tag Archives: as2
Gravity
Posted in portfolio Also tagged actionscript, experiment, flash, interactive, open source Leave a comment
Drag Line
Actionscript exercise with a line connecting movable movieClips. Flash Example
actionscript // get x and y coordinates of the circles var ax = _root.point1._x; var ay = _root.point1._y; var bx = _root.point2._x; var by = _root.point2._y; var cx = _root.point3._x; var cy = _root.point3._y; // draw line [...]Posted in portfolio Also tagged actionscript, experiment, flash, interactive, open source Leave a comment
Multiple Targets
An actionscript exercise. Trying to get a movie clip to go to the closest dynamically created target. Click the button to make more targets. Dragable targets. Move the targets around to see the ball’s target change. Example
actionscript Here’s the actioscript for the little ball: onClipEvent (load) [...]Posted in portfolio, tutorial Also tagged actionscript, experiment, flash, interactive, open source Leave a comment












Karl