Category: Actionscript 3
-
Using QR codes in AS3
Very simple really, google does most of the heavy lifting. Simply load this url as you would to load an external image: http://chart.apis.google.com/chart?cht=qr&chl=[YOUR-URL]&chs=120×120 Replacing the [YOUR-URL] with a url, i.e. http://bbc.co.uk – and the 120×120 with your own width and height Example: var myLoader:Loader = new Loader(); myLoader.load(new URLRequest(“http://chart.apis.google.com/chart?cht=qr&chl=http://bbc.co.uk&chs=150×150”)); Would dynamically load a QR code…
-
iTunes Affiliate Search Demo & Free Code
Here’s a quick demo i knocked up to prototype using the iTunes search API. N.B. As apple deny the use of flash making a straight call to their API due to their crossdomain.xml restrictions, i have used a php proxy. Once again, i’m making this code freely available to do with as you choose, just…
-
Groupon API Review & Example
Everyone must have heard of Groupon.com by now, the deal-of-the-day company that launched a couple of years ago, and due to an agressive expansion and pervasive online ad campaign is now worth over a billion dollars. Joining the service and accessing their Deals via their API is straight forward enough. 1.) Signup to their API…
-
Using the Amazon Product API with AS3 – #FreeCodeSunday
This is really an update to an earlier post on how to use the Amazon Product API search and retrive products, all tied to your Amazon account. Using this information you can present information about each product, and drive traffic to the product page on Amazon. If the user then purchases the Product then you…
-
An easy to use AS3 shape drawing class, gear, cogs, wedge, arc, star, burst
Every other Sunday i’m going to try and release some free code. Things like projects i thought had legs, got to the prototype stage but never had time to finish, or Actionscript libraries that i think other might find useful. In this case i’m releasing my shape drawing AS3 class. This is mainly just an…
-
Standing Wave 2 – Open source AS3 sound engine
I’ve been messing around with recently released Standing wave 2 engine over at JoeberKovitz.com. He used the initial version for his online musical composition app NoteFlight which is very polished, if a little hard to get into for a non muso like me. I’m planning on using it in a child orientated music composition game,…
-
BristolFUG Talk
Been a while since i’ve had a chance to post i know, now i’m back fulltime freelance i can add some more tutorials, free code and tips and tricks and reply to comments a little bit more often. Tomorrow i’m giving a talk to the Bristol Flash user group on 3d in flash. We’ll be…
-
Problem with Flash Player 9.0.28 or below?
Try adding this little line in your document class constructor to create the ADDED_TO_STAGE constant as this was not present in players 9.0.28 or below.review smartphone android Bit of a hair puller this one. if (Event.ADDED_TO_STAGE == null) { Event[“ADDED_TO_STAGE”] = “addedToStage”; }
-
Google spreadsheet and flash part 2 – A Read/Write example
I’ve iterated up the previous example showing how to save data from a Google Spreadsheet, to add in the ability to load the data from the spreadsheet as well. Googles service in impressively fast, and works well with concurrent users. This is however no substitute for a proper database, and shouldn’t be used as such.…
-
AS3 Youtube player 0.2
I’ve had a little time to iterate upon my previous demo using Youtube player in AS3. It’s still not as clean as i’d like, and i haven’t done the Documentation yet, but it’s pretty solid and provides a good example of the methodology invloved. I’ve only added Play/Pause btn, a clickable Progress bar, and mute…