Ononmin Flash prototype – step 3

In this 3rd part we’ll manage stage edges and balls collisions. You’re invited to read steps 1 and 2 if you didn’t already. The main function does not change. 1 2 3 4 5 6 7 8 9 10 11 package { import flash.display.Sprite; public class onon extends Sprite { // field_mc has a parameter determining the number of big circles // on the stage public var field:field_mc = new field_mc(15); public function onon():void [...]

You Might Also Like...

  • The “in” operator

    340 readersJuten Tach, i work with Actionscript for some time now, but i wasn’t aware of that little thing. You can use “in” for checking, if an attribute/field exists in an object, like so: package { import flash.display.Sprite; public class Test extends Sprite { public function Test() { [...]

  • Quick Tip: How to Export Flash to PNG with HYPE

    1469 readersWith Flash you can create some awesome code generated graphics. Often you’d like to save these graphics as an image, so you can edit them afterwards with image editing software or just showcase them. We’ll use the HYPE framework from Joshua Davis and Branden Hall to save our code-generated graphics as a PNG. View Screencast Don’t like

  • Visual Rectangles Intersection AS3 Example

    810 readersActionScript3.0 Rectangle class is part of the flash.geom package besides Point, Matrix, Transform and ColorTransform. Any visual representation of rectangles has to be implemented by programmer. One way of doing it is to create new class and here I wanted to include rectangle color as initial parameter, so this new class vRectangle (from visual rectangle,

  • Quick Tip: Check Flash Player Version Using ActionScript 3

    857 readersIn this Quick Tip, I’ll show you how to get and display the Flash Player Version using ActionScript. Let’s take a look! Final Result Preview Here’s the final result we will be working towards: Step 1: Brief Overview Using the Capabilities class, we’ll get the Flash Player version and Operating System then display them in a series of TextFields. Step

  • Create a Password Masking Class in ActionScript 3.0

    1745 readers

  • Quick Tip: Stretch Your SWF with Stage.ScaleMode

    1362 readersWhat happens when a website crams your SWF into an area where it doesn’t fit? In this Quick Tip, you’ll find out how to take control of how your SWF scales. Step 1: Set up Your SWF Start a new Flash project, and set your stage to be 350px wide, 250px high. Create a basic

  • Quick Tip: How to Detect Mouse Direction Using ActionScript

    1813 readersIn this Quick Tip you will learn how to get the mouse’s current direction in your Flash application using AS3. You could use this to create an interesting control method for a game, using a mouse like a joystick, for example. For now we will just display the direction on screen. Preview Here’s a quick example to

  • Simple Method Closure in AS3

    766 readersMethod closures allow you to bind variables into the scope of an anonymous function. Watch the value of local variable 'i' in the example below in the returned anonymous function. It is a bit twisted but results show the scope of local variable 'i' is bound in the returned function from newCounter.CODE AT PASTIEpackage{ import

  • Using a class in flashx.textLayout package prevents the constructor from accessing Stage

    561 readers“Text Layout Framework example: News layout” in the [Help] yields the run-time error #1009. Because using a class in flashx.textLayout package prevents the constructor from accessing the Stage instance. As the test script below shows, the Stage object is available after the DisplayObject.addedToStage event, which is dispatched twice. package { import flash.display.Sprite; import flash.events.Event; import

  • Create a Dynamic Bar Graph Generator Using XML + AS3

    1276 readers

'>How to create a top quality logo for your company
  • Remove a Section of Your Photo
  • Subscribe to RSS headline updates from: GurusUnleashed
    Powered by FeedBurner

  • Design & Career Resources

    Open design job and RFQ/RFP listings for Thursday, 29 July Courtesy of Design Jobs Live!
    The latest resources and free stuff (like textures, fonts, Photoshop brushes, scripts, plug-ins, and much more!) from workflowFreelance.com. Read more!
    The latest headlines from workflowFreelance.com. Read more!
  • Popular Search Terms

    Curious what others are searching for? Below are the most popular search terms over the last 30 days.