Online Ansi Reader v1.0 - 9 kb - Flash 8 This is an Online Ansi Reader made in Flash(published as Flash8). It will read Ansi(.ans, .cia, etc...) files containing ascii art, parse and render them correctly(hopefully). Features Input parameters include: fileToLoad - url to ansi-file, like: myAnsiFiles/ansiFileName.ans font[optional] - 80x25 or 80x50. Deafult is 80x25. iceColors[optional] - true or false. Default is false. Install Download the zip. It contains the "ansi_reader.swf", a "readme.nfo" and an "example" folder. To embed the ansi_reader.swf on a page, you can use code like this: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="656" height="480" id="nfo_reader" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="ansi_reader.swf?fileToLoad=DR-COLLY.ANS" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="ansi_reader.swf?fileToLoad=DR-COLLY.ANS" quality="high" bgcolor="#000000" width="656" height="480" name="nfo_reader" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> The bolded parts is what you should care about. The width and height are pretty obvious. The other part is the querystring after the swf. So a line like: ?fileToLoad=DR-COLLY.ANS Will load an ansi-file named "DR-COLLY.ANS". Note. That you need write that out in both the object-tag and the embed-tag since different browsers use different tags. In the example folder there is also an example using javascript(swfObject) to embed the swf, gets rid of the IE "Click to activate..." thing. Download Download Online Ansi Reader v1.0 >> (28 979 bytes) (C) OutsideOfSociety 2006. |