// PowerSDK Icon Engine 1.01 // Icon - http://www.powersdk.com/icon/ // // Copyright 2004 - PowerSDK Software Corp. // BSD License - http://www.powersdk.com/dev/License // // The Icon engine draws an ASCII format Icon to a MovieClip. // Usage: // _global.drawIcon(Icon,Target) // _leve0.aMovieClip.drawIcon(Icon) // // Please send feedback to ted@powersdk.com. // Feedback, comments, and suggestions are welcome. ;) // Icon Engine // Define the Icon Engine v1.01 Beta // // Changes: // 1/11/03 - added support for line copy via *{line} syntax. See 1.01 icon format spec _global.drawIcon = function(s, t) { var t, d, v, i, w, h, x, y, c, l, b, g, f, j, a b = s.split(',').reverse() g = b.shift().split('<') f = {} j = 65 a = b.length while (a--) { f[String.fromCharCode(j++)] = b[a].split('|') } t.clear() for (d in g) { v = g[d] if(v.charAt(0)=='*') v = g[Number(v.slice(1,v.length))] l = v.split('|') y = Number(d) x = 0 for (i=0; i