Contact
| ABN 76 112 803 072
Folio currently contains
131
items
Products
SeniorStore e-shop
SeniorCMS content management
Digital Signage
Flash & AIR
Video + Broadcast Apps
AIR Apps
Flash Apps / Sites
AS3 Code
Games
Animations
E-cards
Websites
Flash Sites
Dynamic PHP Sites
E-Commerce Sites
Photography Sites
iPhone/iPad Friendly Sites
Games
Flash Games
Shockwave Games (Old)
Competitions
Animation
Flash Animations
Banners
E-cards
DVD Menus
DVD Showreels
Design
DVD Menus
DVD Showreels
Graphics
Experimental
Code
Recent Work
Top Ten Views This Month
Contact us
Viewed
34
times this month
Actionscript 3.0 - LEVEL
INTERMEDIATE
AS3 Recursive Object Output Trace
Last edited 26TH NOV, 2009
This was originally written way back in AS2, and easily reversioned with better data typing for AS3. It spits out a legible trace of the contents of a multidimensional object variable. Handy for checking loaded and parsed XML.
//SUPER SENIOR OBJECT RECURSE - by Steve Smith / SeniorCreative public static function o (oObj:Object, sPrefix:String = ""):void { sPrefix == "" ? sPrefix = "---" : sPrefix += "---"; for (var i:* in oObj) { trace (sPrefix , i + " : " + oObj[i], " "); if (typeof( oObj[i] ) == "object") o ( oObj[i], sPrefix); // around we go again } }