Category Archives: Labs

URLShortener package 0

Services included at the moment: Bit.ly (BitlyService) J.mp (JmpService) Is.gd (IsgdService) Tr.im (TrimService); ?View Code AS3  import com.deviouswork.http.url.*;   var us:URLShortener = new URLShortener(BitlyService);   //Only needed for Bit.ly and J.mp us.service.version = ’2.0.1′; us.service.login = ‘bitlyapidemo’; us.service.key = ‘R_0da49e0a9118ff35f52f629d2d71bf07′; //End Bit.ly/J.mp part   us.shorten(’http://www.deviouswork.com/labs/’); us.addEventListener(Event.COMPLETE, complete, false, 0, true);   function complete(event:Event):void { us.removeEventListener(Event.COMPLETE, [...]

Slotmachine effect 2

UPDATE I’ve uploaded an example with an working FLA (click the swf to replay it) Slotmachine FLA Dependencies – TweenLite Example: ?View Code AS3var sm:SlotMachine = new SlotMachine(’€15533′, font, 35, ’0123456789€’); addChild(sm); sm.addEventListener(Event.COMPLETE, _complete); sm.render();   function _complete(aEvent:Event):void { trace("SlotMachine COMPLETE"); }

Ordered Lists in TextField.htmlText 2

One thing thats kept bugging me with TextField.htmlText was the lack of support for ordered list (<ol><li></li></ol>) in a textfield with htmlText applied to it. I decided to write a simple class that strips a html string from the (<ol><li></li></ol>) and arrange the list(s) in numerical order with tabs instead. I know this isn’t the [...]

Simple ScrollBar Class 0

Basic and simple ScrollBar class based on com.jeroenwijering.utils.Scrollbar