Online Nfo Reader v1.0 - 11 kb - Flash 7 This is an Online Nfo Reader made in Flash(published as Flash7). It will read nfo files containing ascii art, parse and render them correctly(hopefully). Including high ascii(block characters etc.). It will also make any links(starting with http://) clickable and also add them to the rightclick menu for easy access. Why? Most online nfo readers, Iīve seen, converts the nfo-file to a bitmap. Like, call some backend script or server plug-in, make the bitmap, show it on a page. This works fine and looks nice and all. The drawback is that you canīt select any of the text or copy text. Links in the nfo arenīt clickable either. But thatīs possible with this one. I originally made it for a friend who wanted it for a site, but I decided to release it here, in case anyone else founds it useful. Features Input parameters include: nfoFile - url to nfo-file, like: myNfoFiles/uber_cool_ascii_art.nfo txtColor[optional] - hex value for text, like: FFFFFF. Default is 000000. bgColor[optional] - hex value for background, like: 000000. Default is FFFFFF. selectableText[optional] - if the text should be selectable, true/false (user can change this in the rightclick menu). Default is true. All http-links found in the nfo are made clickable and also added to the rightclick menu. You can toggle if the text should be selectable or not. Variable width/height, you can set the swf to any width or height. The textarea and scrollbar will adapt. However if you make the width to narrow, it will linebreak and possibly mess up the ascii. Install Download the zip. It contains the "nfo_reader.swf", a "readme.nfo" and an "example" folder. To embed the nfo_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=7,0,0,0" width="570" height="340" id="nfo_reader" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="nfo_reader.swf?nfoFile=NoFuture.nfo&txtColor=FFFFFF&bgColor=333333" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="nfo_reader.swf?nfoFile=NoFuture.nfo&txtColor=FFFFFF&bgColor=333333" quality="high" bgcolor="#ffffff" width="570" height="340" 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: ?nfoFile=NoFuture.nfo&txtColor=FFFFFF&bgColor=333333&selectableText=false Will load an nfo-file named "NoFuture.nfo", the textcolor will be white, the background will be dark grey, textselection is disabled. You probably want to use some backend to write out the querystring. 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 Nfo Reader v1.0 >> (17 819 bytes) (C) OutsideOfSociety 2006. |