<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - burnandbass</title>
<link>http://snipplr.com/users/burnandbass</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 03:49:53 GMT</pubDate>
<item>
<title>(ActionScript 3) View trace() output in JavaScript console</title>
<link>http://snipplr.com/view/68735/view-trace-output-in-javascript-console/</link>
<description><![CDATA[ <p>import ExternalInterface class
use this instead of trace() to view output in JavaScript console</p> ]]></description>
<pubDate>Sat, 24 Nov 2012 01:16:09 GMT</pubDate>
<guid>http://snipplr.com/view/68735/view-trace-output-in-javascript-console/</guid>
</item>
<item>
<title>(ActionScript 3) after effects - data files to AS3 parser, frames number fixer</title>
<link>http://snipplr.com/view/67220/after-effects--data-files-to-as3-parser-frames-number-fixer/</link>
<description><![CDATA[ <p>If you need to read data files from Adobe After Effects in Flash and want to parse them... AAE exports every scene from frame 0, no matter where on the movie the scene starts. This is a good and easy way to fix frame numbering and make it easier for Flash to parse/read them.</p> ]]></description>
<pubDate>Tue, 18 Sep 2012 08:42:41 GMT</pubDate>
<guid>http://snipplr.com/view/67220/after-effects--data-files-to-as3-parser-frames-number-fixer/</guid>
</item>
<item>
<title>(jQuery) jquery.fitText.js -> Fit text in div</title>
<link>http://snipplr.com/view/65948/jqueryfittextjs--fit-text-in-div/</link>
<description><![CDATA[ <p>This is simple plugin, that will allow you to fit text in a div - the text will become the largest/smallest possible to fill all the div. It have self-explanatory options you can pass. The shrinking engine is Based on Nikolay Kuchumov script (https://github.com/kuchumovn/jquery-full-house), some mofications by Chrysto Panayotov (Bassta) -> Allow to center the text, add "spans" with different color, red border to see the div, etc. Require jQuery 1.7.1+ . Set width and height of the container.

save in jquery.fitText.js

usage:

html -->  Hello, this {is} span

JS(onLoad) --> $("#mydiv").fillText({border: true, spanColor:"green", textAlign:"center", verticalAlign:"middle"});</p> ]]></description>
<pubDate>Wed, 04 Jul 2012 23:23:48 GMT</pubDate>
<guid>http://snipplr.com/view/65948/jqueryfittextjs--fit-text-in-div/</guid>
</item>
<item>
<title>(ActionScript 3) ActionScript3 Touch Event</title>
<link>http://snipplr.com/view/64629/actionscript3-touch-event/</link>
<description><![CDATA[ <p>by Bassta</p> ]]></description>
<pubDate>Wed, 18 Apr 2012 18:33:25 GMT</pubDate>
<guid>http://snipplr.com/view/64629/actionscript3-touch-event/</guid>
</item>
<item>
<title>(jQuery) Iterate trough array - 1,2,3,1,2,3...etc</title>
<link>http://snipplr.com/view/64364/iterate-trough-array--123123etc/</link>
<description><![CDATA[ <p>This is perfect for "cycling" items...</p> ]]></description>
<pubDate>Thu, 05 Apr 2012 09:42:53 GMT</pubDate>
<guid>http://snipplr.com/view/64364/iterate-trough-array--123123etc/</guid>
</item>
<item>
<title>(jQuery) Fullscreen Google Maps Background</title>
<link>http://snipplr.com/view/64305/fullscreen-google-maps-background/</link>
<description><![CDATA[ <p>This is the whole HTML page with JS/CSS embeded, uses Google Maps API V3</p> ]]></description>
<pubDate>Tue, 03 Apr 2012 05:17:42 GMT</pubDate>
<guid>http://snipplr.com/view/64305/fullscreen-google-maps-background/</guid>
</item>
<item>
<title>(ActionScript 3) Make website look terrible</title>
<link>http://snipplr.com/view/64282/make-website-look-terrible/</link>
<description><![CDATA[ <p>Put this in the end of the  section, don't include jQuery if already on page ;) Resize window... and have fun</p> ]]></description>
<pubDate>Mon, 02 Apr 2012 06:59:12 GMT</pubDate>
<guid>http://snipplr.com/view/64282/make-website-look-terrible/</guid>
</item>
<item>
<title>(ActionScript 3) Shake Effect for any DisplayObject</title>
<link>http://snipplr.com/view/63934/shake-effect-for-any-displayobject/</link>
<description><![CDATA[ <p>Use this to make MovieClip "shake"</p> ]]></description>
<pubDate>Thu, 15 Mar 2012 02:08:16 GMT</pubDate>
<guid>http://snipplr.com/view/63934/shake-effect-for-any-displayobject/</guid>
</item>
<item>
<title>(ActionScript 3) ActionScript 3 SliceBitmap Class</title>
<link>http://snipplr.com/view/63280/actionscript-3-slicebitmap-class/</link>
<description><![CDATA[ <p>just slice bitmap class, takes DisplayObject, return array of BitmapData's

Can be used to do something like this: http://burnandbass.com/basstaslider</p> ]]></description>
<pubDate>Sun, 12 Feb 2012 06:46:10 GMT</pubDate>
<guid>http://snipplr.com/view/63280/actionscript-3-slicebitmap-class/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 - trim text for specific width and heigh</title>
<link>http://snipplr.com/view/62792/as3--trim-text-for-specific-width-and-heigh/</link>
<description><![CDATA[ <p>Hi;

Sometimes you need to "trim" textifield for specific height... This solves just this, perfect for news, news-readers, rss etc</p> ]]></description>
<pubDate>Thu, 26 Jan 2012 22:13:05 GMT</pubDate>
<guid>http://snipplr.com/view/62792/as3--trim-text-for-specific-width-and-heigh/</guid>
</item>
<item>
<title>(ActionScript 3) AutoPilot - cycle items in some seconds</title>
<link>http://snipplr.com/view/62624/autopilot--cycle-items-in-some-seconds/</link>
<description><![CDATA[ <p>This is lightwave script, made for banners/slideshows. You pass number items, time for slide and autostart. If you have 5 items and pass 2 seconds each, trought 2 seconds interval the numbers will be sldied (1,2,3,4,5,1,2,3,4,5,1,2,3..) and event will be passed. The code is self-explanary, for some real-world examples write me a comment</p> ]]></description>
<pubDate>Wed, 18 Jan 2012 20:46:02 GMT</pubDate>
<guid>http://snipplr.com/view/62624/autopilot--cycle-items-in-some-seconds/</guid>
</item>
<item>
<title>(ActionScript 3) Trial period</title>
<link>http://snipplr.com/view/62217/trial-period/</link>
<description><![CDATA[ <p>Use this if you need to make "trial period" to your app with Shared Objects. It is veri simple to use:

if(Validator.isActive(0,0,1)){
				trace("ENTER");
			} else {
				trace("YOUR DEMO IS OVER");
			}

this demo will be active only 1 minute. Pass the validor Validator.isActive(days,hours,minutes) number of days, hours and minutes and it will return boolean.</p> ]]></description>
<pubDate>Mon, 02 Jan 2012 04:45:15 GMT</pubDate>
<guid>http://snipplr.com/view/62217/trial-period/</guid>
</item>
<item>
<title>(ActionScript 3) Simple, but very robust Mad Libs algoritm</title>
<link>http://snipplr.com/view/62150/simple-but-very-robust-mad-libs-algoritm/</link>
<description><![CDATA[ <p>This is very simple script, you can add ass meny items and arrays as you want. You can change the separator and/or enging of the sentance. It can be very easily modified to work with external XML files</p> ]]></description>
<pubDate>Wed, 28 Dec 2011 22:33:38 GMT</pubDate>
<guid>http://snipplr.com/view/62150/simple-but-very-robust-mad-libs-algoritm/</guid>
</item>
<item>
<title>(ActionScript 3) LightLoader - load array of images, GC, bug fixes, 1.2k compressed</title>
<link>http://snipplr.com/view/62059/lightloader--load-array-of-images-gc-bug-fixes-12k-compressed/</link>
<description><![CDATA[ <p>This is VERY BASIC loading class, the idea is to load array of images and when they're loaded you can retrve them via ChromeLoader.getContent() method, just pass ID. In the constructor you got prepend url (for example images/) and "backup" (example "/backup" ). This will be used if the loader... The names of the functions are self-exaplanary, this is perfect solution for lightwave banners. 
v 1.1 - GarbageCollection added</p> ]]></description>
<pubDate>Wed, 21 Dec 2011 23:02:35 GMT</pubDate>
<guid>http://snipplr.com/view/62059/lightloader--load-array-of-images-gc-bug-fixes-12k-compressed/</guid>
</item>
<item>
<title>(ActionScript 3) Random generated String</title>
<link>http://snipplr.com/view/61938/random-generated-string/</link>
<description><![CDATA[ <p>This is easy way to generate random string

this will generate random word with 10 letters in it
var a:String = randString(10);</p> ]]></description>
<pubDate>Sat, 17 Dec 2011 04:26:33 GMT</pubDate>
<guid>http://snipplr.com/view/61938/random-generated-string/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 - Load and display image in flash from local drive</title>
<link>http://snipplr.com/view/60758/as3--load-and-display-image-in-flash-from-local-drive/</link>
<description><![CDATA[ <p>Use this class to create a simple upload-to-flash button. Select image from your local harddrive and upload it in flash, later you can get is as Bitmap() object
All images are stored in static array, so you can retrive it anywhere you want in your code!</p> ]]></description>
<pubDate>Sun, 13 Nov 2011 02:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/60758/as3--load-and-display-image-in-flash-from-local-drive/</guid>
</item>
<item>
<title>(ActionScript 3) Remove HTML tags</title>
<link>http://snipplr.com/view/60500/remove-html-tags/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 03 Nov 2011 03:30:46 GMT</pubDate>
<guid>http://snipplr.com/view/60500/remove-html-tags/</guid>
</item>
<item>
<title>(ActionScript 3) Model</title>
<link>http://snipplr.com/view/57712/model/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 10 Aug 2011 18:47:01 GMT</pubDate>
<guid>http://snipplr.com/view/57712/model/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Stats - hooked with Bassta Framework</title>
<link>http://snipplr.com/view/52870/as3-stats--hooked-with-bassta-framework/</link>
<description><![CDATA[ <p>Hi;

This is part of my new framework, the class is called Stats and is very simple stat util, click the black background to get more info, click the circle to garbage collect. It always get's on the top of the stage display list

The Grawl graphics are drawn by Bassta Draw API 

demo: http://burnandbass.com/stats-bab/</p> ]]></description>
<pubDate>Mon, 02 May 2011 09:06:51 GMT</pubDate>
<guid>http://snipplr.com/view/52870/as3-stats--hooked-with-bassta-framework/</guid>
</item>
<item>
<title>(ActionScript 3) Drag/drop/scale/move DebugUtil with TransformManager</title>
<link>http://snipplr.com/view/52709/dragdropscalemove-debugutil-with-transformmanager/</link>
<description><![CDATA[ <p>You need the greensock's TransformManager class, it is paid, but worth it. I use this class for debugging purposes, to move at runtime objects at the scene.

Use MagicDevugger.create(passSomeSprite); and you can transform all children of passSomeSprite</p> ]]></description>
<pubDate>Thu, 28 Apr 2011 06:36:17 GMT</pubDate>
<guid>http://snipplr.com/view/52709/dragdropscalemove-debugutil-with-transformmanager/</guid>
</item>
</channel>
</rss>