Advertisement

ActionScript

  • ActionScript
    AS3 101: Quick Tip - Dispatching Events Without Extending EventDispatcherPreview as3 101
    3 shares
    It's rare, but it happens. Sometimes you absolutely need to extend a class, and that class does not already extend EventDispatcher. At the same time, you absolutely need your class to be an EventDispatcher. Because ActionScript 3 does not allow multiple inheritance, how do you reconcile this?Read More…
  • ActionScript
    Euclidean Vectors in FlashPreview
    2 shares
    Twice a month, we revisit some of our readers’ favorite posts from Activetuts+ history. This week’s retro-Active tutorial, first published in April, is a guide to Euclidean vectors: what they are, why you'd use them, and how to implement them in Flash with AS3. Euclidean vectors are objects in geometry with certain properties that are very useful for developing games. They can be seen as points, but they also have a magnitude and a direction. They are represented as arrows going from the initial point to the final point, and that's how we will draw them in this article.Read More…
  • ActionScript
    How to Add Mouse Gesture Control to Your Flash Projects: Single-Stroke GesturesMousegestures
    6 shares
    I recently bought my first Bamboo, a Wacom tablet that recognises letters from shapes drawn with the stylus. It tickled memories of my first experience with gesture-controlled application: using mouse gestures, web browsers such as Maxthon (and later Opera) allowed users to quickly move back and forth through webpages in the history, switch between different tabs, and so on. I was facinated by its neat user interface, as it takes away traditional mouse clicks. Of course, sophisticated gesture-controlled devices such as the Kinect, iPad and iPhone are now available - but it all started with the good old PC. In this tutorial, you'll learn how to develop a photo gallery that recognises singular mouse gestures.Read More…
  • ActionScript
    Quick Tip: How to Debug an AS3 Error #1120Error 1120
    2 shares
    A very common ActionScript error is Error 1120, the "undefined property" error. In fact, this may be the most common compile-time error. Its cause is very simple, but there are a number of ways it can actually be induced. We'll take a quick tour of some of the scenarios in which you'll encounter this error, and how to fix them.Read More…
  • ActionScript
    AS3 101: Events - BasixPreview as3 101 events
    2 shares
    For this chapter of AS3 101, we will be diving into the mechanics of the Flash event system. If you've been following along so far, you'll have seen events in use, dating all the way back to the first episode of the series. The editor and I felt that it was time to write up something to be formally included in the curriculum, so if you've ever seen those lines of code about adding event listeners or dispatching events, and not quite caught on, then this is the tutorial for you.Read More…
  • ActionScript
    AS3 101: OOP Introduction – BasixPreview
    12 shares
    Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Activetuts+. This week’s retro-Active tutorial, first published in October 2010, is an introduction to object-oriented programming in AS3. Don't forget to check out the other AS3 101 tutorials! Object-Oriented Programming is a bit of a hot topic. More and more programming languages are cropping up that support it (Ruby, for example), and more and more languages that previously didn't support Object-Oriented Programming (OOP for short) have been released with versions that do, like PHP and ActionScript. Some languages only work if you utilize the whole OOP thing to begin with, like Java and Objective-C. It's actually been around for a long time, but came into the limelight in the 1990's primarily due to its advantages with programming GUIs and the rise of C++ and Objective-C. Wikipedia has an interesting section on the history of OOP, which is a great place to start learning. Read More…
  • ActionScript
    Quick Tip: Understanding getDefinitionByName()Getdefinitionbyname
    2 shares
    In this Quick Tip, you'll learn how to construct a reference to a class from a String, and then create an instance of that class, using a built-in AS3 function called getDefinitionByName(). You'll also learn the best methods for using this in different situations.Read More…
  • ActionScript
    The Power of Finite State Machines: Application and ExtensionFinite state machine tutorial
    Here's the concluding part of our tutorial about creating a multi-state car using a finite state machine. In this part, you will see how easy it is to add more states as well as new features to the car. When finished, you'll know exactly how to structure control for your FSM Object, which will be demonstrated when we add animation and sound.Read More…
  • ActionScript
    Querying (and Conquering) Big Collections in AS3 With Realaxy Editor200px
    3 shares
    Good news, everyone. Everybody who works with arrays and vectors - so, all developers - will enjoy the new opportunities: since the late August 2011 build of Flash, Realaxy ActionScript Editor (RASE) supports the new Collections AS3 language extension. In this post we'll show you what it can do.Read More…
  • ActionScript
    Quick Tip: How to Debug an AS3 Error #2044Error2044
    3 shares
    In this Quick Tip, we’ll take on run-time Error 2044, the un-handled IO error. It’s actually very simple, but it plagues even experienced developers, so we’ll go in-depth and turn everyone here into IO error ninjas.Read More…
  • ActionScript
    Understanding Date(): Making a Calendar in AS3Preview image
    4 shares
    Today we'll build a fully functional calendar widget using AS3. It's not rocket science, just an excellent example of using the Date class, which can handle all the complexity of extracting times, dates, months and years. We are also going to use some Flash components, and make sure that this calendar is portable to Flash Builder, FlashDevelop, and so on.Read More…
  • ActionScript
    Exclusive Freebie: Tr.ace(), an Excellent AS3 Debugging UtilityPreview
    We've got another Activetuts+ Exclusive Freebie for you! This time, Matt Stuttard (aka MSFX) is offering you his brand new debugging utility, Tr.ace(), which adds some very useful extra features to Flash's trace() function. Read on to find out more, and to download your copy.Read More…
Advertisement
Advertisement