moockblog http://www.moock.org/blog/ en-us 2010-02-23T16:06:26-05:00 ActionScript 3.0 Bootcamp: Hands-on OOP workshop May 7/8, 2010 http://www.moock.org/blog/archives/000299.html On May 7/8 I'm doing a hands-on workshop on the fundamentals of object-oriented programming ("OOP") in ActionScript 3.0. The course covers all OOP basics, including: Classes, objects, and packages Methods and variables Inheritance Encapsulation Datatypes and error handling Garbage collection and memory management Application structure and design principles And also the following core areas of Flash coding: Graphics loading and display Interactivity Model/View/Controller architecture State management Event dispatch and event... moock 2010-02-23T16:06:26-05:00 bloom http://www.moock.org/blog/archives/000298.html bloom... events moock 2009-12-01T16:50:43-05:00 hype is nice http://www.moock.org/blog/archives/000297.html i recently sat in on one of joshua davis's workshops in toronto and had a good look at hype--an ActionScript 3.0 class library for creating scripted motion graphics. simply put, hype is nice. joshua and branden hall (hype's creators) have done a great job wrapping powerful and complex features in an elegant, easy-to-use api. definitely worth taking a look if you're a graphics professional or game programmer looking to add... ActionScript moock 2009-11-30T16:27:48-05:00 MegaPhone and Union presentations now online http://www.moock.org/blog/archives/000296.html Learn about Union (a platform for building multiuser applications) and MegaPhone (a hosted service for developing multiuser big-screen games you control with your phone) in these two recently posted presentations: Multiuser Adventures at FITC >> http://www.fitc.ca/media/?video=Your_phone_is_your_controller-C_Moock.flv Your Phone is Your Controller at MAX: >> http://max.adobe.com/online/session/116... Union moock 2009-10-13T23:06:43-05:00 Natzke Colors of Nature in Toronto http://www.moock.org/blog/archives/000295.html last saturday erik natzke opened Colors of Nature, a solo show in toronto's function 13 gallery, run by fitc. while i've always been a fan of erik's experiments, and i love seeing his work running live on huge digital screens, prior to last saturday, i had never actually seen any of his paper prints in person. now that i've stood in a room of them, i think i finally really... events moock 2009-10-01T14:07:31-05:00 Flash CS5/Flash Builder 4 Integration Preview with Richard Galvan http://www.moock.org/blog/archives/000294.html Last week at Flash on the Beach 2009 in Brighton, England, Flash authoring product manager Richard Galvan demonstrated some of the improved integration planned for Flash CS5 and Flash Builder 4 (formerly Flex Builder). Like most of the ActionScript developer community, I've been waiting for better integration of the two tools for years, so I tracked Richard down after his presentation and pulled some additional information out of him. If... flash builder moock 2009-09-27T17:59:50-05:00 speaking at fitc mobile http://www.moock.org/blog/archives/000293.html fitc mobile in toronto is only two months away (september 13-14, 2009). i'll be there showing how to use the MegaPhone platform to build phone-controlled multiuser games that run on big public screens (like the ones in times square, sports stadiums, restaurant chains, airports, etc).... events moock 2009-07-08T13:51:12-05:00 get visible width/height of a display object http://www.moock.org/blog/archives/000292.html When it comes to the width and height variables of ActionScript's DisplayObject, what you see is not always what you get. For example, consider the following code, which draws a 50x75 rectangle at position (10, 10) in a Sprite, and then masks it with a 40-pixel-diameter circle: // The mask var maskShape:Sprite = new Sprite(); maskShape.graphics.beginFill(0); maskShape.graphics.drawCircle(20, 20, 20); addChild(maskShape); // The rectangle var rect:Sprite = new Sprite(); rect.graphics.beginFill(0xFF0000); rect.graphics.drawRect(10,... ActionScript moock 2009-05-25T22:58:22-05:00 can't enable gpu acceleration in flex builder/mxmlc http://www.moock.org/blog/archives/000291.html while working with a colleague at megaphone, it recently came to my attention that there is currently no way to enable hardware acceleration at the .swf level with flex builder 3 or the flex framework's standalone compiler, mxmlc. hence, a .swf file compiled via the flex framework or mxmlc currently cannot use hardware acceleration when running in the standalone version of flash player. i logged a bug as soon as... flex builder moock 2009-05-21T16:18:45-05:00 Announcing USER1 and Union http://www.moock.org/blog/archives/000290.html three days ago at fitc, derek clayton and i announced the launch of USER1 Subsystems Corporation and the Union Platform, a platform for creating multiuser applications. Union Alpha 1 is now available for download. USER1 is working in an exclusive partnership with Play MegaPhone Inc to create a network of big-screen, multiuser applications you control with a phone call. like shoot 'em up in Times Square or trivia at an... flash moock 2009-05-01T01:17:52-05:00 the lost actionscript 3.0 weekend http://www.moock.org/blog/archives/000289.html i finally decided to break the print tradition and make an actionscript training dvd with o'reilly. but it's not your average training video. we wanted to capture the energy of a programming session with a group of fun and passionate friends. so james paterson, hoss gifford, and i locked ourselves away in a cabin by the ocean for a three-day weekend to shoot an eleven-hour crash course on object-oriented programming.... ActionScript moock 2009-04-24T16:04:37-05:00 get number of bytes in a UTF-8 string http://www.moock.org/blog/archives/000288.html Here's a handy little ActionScript function that reports the number of bytes in a UTF-8 encoded string (the default encoding for ActionScript): public function getNumBytesUTF8 (s:String):Number { var byteArray:ByteArray = new ByteArray(); byteArray.writeUTFBytes(s); return byteArray.length; } // Usage: trace(getNumBytesUTF8("automobile")); // 10 trace(getNumBytesUTF8("車")); // 3 Note: "number of bytes" is not the same thing as "number of characters". For "number of characters," use the String class's length variable: trace("車".length); // 1... ActionScript moock 2009-04-05T20:39:05-05:00 James Paterson's new work http://www.moock.org/blog/archives/000287.html dear james, thank you for reminding us all (or me at least) why we do this. >> view The Rotten Fruit Tardis >> read about Harvest at bitforms i'm looking forward to seeing this in person at fitc.... flash moock 2009-03-25T16:21:22-05:00 FITC toronto 2009 http://www.moock.org/blog/archives/000286.html [UPDATE: Shawn Pucknell, founder of FITC, just gave me a discount code for all moockblog readers! Use code "moock" to get 20% off when you register for FITC.] fitc is coming up in april (25th-28th). in my presentation i'll officially be revealing what's kept me occupied for nearly every minute of the past 8 months. for a complete list of the always-inspiring sessions at the conference, visit FITC's presentation list.... events moock 2009-03-17T00:16:52-05:00 workaround for 127px font size limit http://www.moock.org/blog/archives/000284.html In ActionScript, text fields formatted via TextFormat, CSS, or HTML have an undocumented maximum font size of 127px. The limitation is based on historical requirements placed on Flash Player by the operating system. The limit also applies to dynamic and input text created in the Flash authoring tool, but not to static text. Fortunately, the 127 font-size limit can be overcome with an ugly little workaround: set the font size,... ActionScript moock 2008-08-12T01:09:46-05:00