Code Snippet – using as3Signals to delay function call by a frame

Sometimes there’s a need to delay a function call by a frame (normally to insure a rendering phase has been completed). Easily done with Signals: import org.osflash.signals.natives.NativeSignal; var delayFrameSignal:NativeSignal = new NativeSignal(this, Event.ENTER_FRAME, Event); delayFrameSignal.addOnce(delayFrameCall); function delayFrameCall(e:Event):void { trace(“called”); }

Posted at May 20th | no comments | Filed Under: Flash/Flex read on

FCSS – Loading/merging external css files and loading external fonts (with source)

Here is a proof of concept for using FCSS to load and merge css files externally for multilingual support. It could easily be integrated into a MVC(S) application but unfortunately I can’t share that code at this time. If you haven’t used FCSS take a look as it has some really handy features http://fcss.flashartofwar.com/. The [...]

Posted at May 20th | 1 comment | Filed Under: Flash/Flex read on

Ant Build scripts – java.lang.OutOfMemoryError

I seem to find getting a ‘java.lang.OutOfMemoryError’ a fairly common occurance when using ANT to build my flash projects ;( There’s not much docmentations out there and none of the solutions I found on the web fixed the issue for me ;( the code example below did… <!– IMPORTANT added folk=’true’ to help avoid java.lang.OutOfMemoryError [...]

Posted at Sep 14th | 6 comments | Filed Under: Flash/Flex read on

Twitter

Seeing as I never seem to find the time to write decent blog posts at the moment anyone who’s interested can follow me on twitter http://twitter.com/pddykn Blogged with the Flock Browser

Posted at Sep 3rd | no comments | Filed Under: Uncategorized read on

Bit Masking 600% faster than modulus operator

Nuget of wisdom learned today – according to Lee Brimelow using Bit Masking to find odd/even numbers is 600% faster than modulus operator! it’s a pretty common task to need this when working with lists so every other row can have a different style. Bit Masking for (var i:uint=0; i<100; i++) { if(i & 1) [...]

Posted at Jun 10th | 2 comments | Filed Under: Flash/Flex read on

How to resist Flex ListBase components scrolling on mouseWheel if html page also scrolls

Senario: A Flex app is part of an html page that has a scrollBar. The Mouse is over a List component and the mouseWheel is used,  browsers (PC firefox) will sometimes scroll both the html page and the List. As far as I know there isn’t any easy way to disable Flex ListBase Classes interacting [...]

Posted at May 14th | 1 comment | Filed Under: Flash/Flex read on

From Flex app to realworld prototypes with Nokia headset comp

Last year I helped built a flex site for a Nokia headset design competition. It was a great success with 10 times more entrance that forecast (hence the gallery navigation needing a bit of a overhaul). The winning designs where created last month and they look amazing. It’s wonderful to see designs come to life. [...]

Posted at Apr 7th | no comments | Filed Under: Flash/Flex read on

Away3D – Horizontal Spiral navigation (with source)

Last November I had the pleasure of attending a great 2 day course on Away3D. Rob Bateman, who is a great teacher, helped explain tons about 3D development in flash. I’d highly recommend doing a course if you get the chance! Anyway, after the course I mocked up the below as a test. The codes [...]

Posted at Mar 16th | 9 comments | Filed Under: Flash/Flex read on

Quest to extradite harmless hacker, Gary McKinnon

I’ve been following this case since the beginning, The London Mayor, ‘Blonde Borris’ has a pretty good summation of where it’s at. I wonder how much news coverage this gets in USA?   http://www.boris-johnson.com/2009/01/27/quest-to-extradite-harmless-hacker-gary-mckinnon/   http://freegary.org.uk/   http://search.bbc.co.uk/search?uri=%2F&scope=all&go=toolbar&q=Gary+McKinnon    

Posted at Jan 28th | 2 comments | Filed Under: Thoughts read on

Skill Matters – Free evening sessions, London

if anyones interested, I’ve just signed up to attend some evening session on; webservices, cloud computing, agile methods…. there are other free events too. http://skillsmatter.com/event/ajax-ria/yahoo-developer-network-php-oauth-web-services   http://skillsmatter.com/event/cloud-grid/cloud-computing-101-an-intro-to-cloud-computing-281   http://skillsmatter.com/event/agile-scrum/agile-methods

Posted at Jan 27th | no comments | Filed Under: Flash/Flex read on

About

Categories