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 [...]
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() { [...]
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
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,
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
1745 readers
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
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
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
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
1276 readers
8,013
Subscribe to RSS headline updates from:
GurusUnleashed
Powered by FeedBurner
Curious what others are searching for? Below are the most popular search terms over the last 30 days.

