How NOT to Code – Challenge 15

Today’s challenge is in AS3 and for those working in Flex for a while this will be pretty easy. This code may actually be ok in very specific cases, but I still see people implementing this badly so I figure it was worth posting. someObj.addEventListener(UserEvent.GET,getHandler);

You Might Also Like...

  • How NOT to Code – Challenge 9

    457 readersToday's challenge is a Flex code issue. What's wrong with this code? <mx:VBox borderStyle="solid"      borderColor="#000000"      backgroundColor="#FFFFFF"      width="200" height="100">      <mx:Text text="{bodyText}" width="100%" height="100%"/> </mx:VBox> Example from Jeff Tapper's 'How NOT to code Flex' presentation at MAX 2009. http://slidesix.com/view/262JeffTapperHownottocodeFlexApplications-nP23P

  • Elastic Collisions Inspiration…

    741 readersLast weekend I had some spare time for writing an article I got in mind from long time ago, this is about Elastic Collisions, pretty much simple concept but apparently there are some people implementing it in the wrong way (I heard about some crazy exceptions, many bugs and problems people have) and in most

  • Accurate Car Simulation in Flex

    453 readersThe demo below came from a technical challenge I set myself a few weekends ago.  I often like to set myself small challenges like this… I guess it’s kind of like doing a cross word puzzle. The challenge this week was to accurately simulate the movements of a car in 2D.  Most people don’t realize

  • 3D Christmas tree (aka the “Merry Christmas” post)

    332 readersHi there, lot of time without posting some code. I have been working three months on a Disney project, which will be on-line soon and makes me very proud, but almost drained all of my energies. Here is my Christmas card/gift for my readers, in less than 80 lines of code. Obviously with source code.

  • Evaluation Questions for Flex Programmers

    443 readersSometimes I am asked to interview potential Flex programmers for clients. A common requirement is to assess the candidate's ability to design and develop custom components. Today's blog posting is dedicated to the hiring manager who called after regular...

  • Reasons to go to 360Flex San Jose

    181 readersI haven't been posting to my blog in a while, and honestly I'm likely to keep being pretty bad about it. But 360Flex remains very important to me as it really is one of the best shows out there! Let...

  • Fixed: AIR update framework broken!

    386 readersArrgh! All of a sudden the AIR Update Framework stops working.  No explanation, no errors; nothing. Where you’d expect to see your update notification popping up, you get a window just like the one above – no content, just the default Flex blue background colour. The problem is actually a pretty specific one, but it’s

  • WebSocket Charting Demo with HTML5 and JavaScript

    608 readersOne of the PHP demos that goes over pretty well is my Flex socket demo. It used to be that Flex/Flash was really the only way to take advantage of WebSockets but with browser vendors implementing bleeding edge support for HTML5, developers can now use the WebSocket API in JavaScript. I wanted to combine that

  • Reasons to go to 360Flex San Jose

    103 readersI haven’t been posting to my blog in a while, and honestly I’m likely to keep being pretty bad about it. But 360Flex remains very important to me as it really is one of the best shows out there! Let me provide a few reasons that may not know as to why you should plan

  • Flash Break Out – Indianapolis Flash Event

    238 readersFlash Indianapolis is going to kick off the new year with something a little different. Instead of meeting for an hour during a weeknight, we will be holding a Saturday afternoon event. Instead of having a speaker, we are going to let everyone to bring their laptops, their work, and their questions. We will focus

'>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.