Posts Tagged “code”
Thursday, July 9th, 2009
I recently wrote a post about speeding up development with PureMVC’s mediator. Now I’ve created a super mediator class that will defiantly help you speed up your code.
I mentioned before that I really didn’t like the idea of having to use “listNotificationInterests()” and then “handleNotification()” as these functions lead to unnecessary duplication of code and, if you’re like me, most of the time you use the “switch()” within “handleNotification()” to execute functions rather than writing a load code.
(more…)
Tags: Actionscript 3, as3, code, free, git, mediator, mvc, puremvc
Posted in APIs, Actionscript 3, Development |
No Comments »
Monday, July 6th, 2009
Update: after a disastrous morning, I’m going to try and upload everything tomorrow!
When I first started this blog, I had every intention of releasing my code as open source for everyone to take and use. I’m still going to do this, in fact I’m just getting my repositories ready for uploading.
I’ve decided to use Github rather than SVN’ing to Google Code. I do prefer git a lot more over svn, but if you really want me to use Google Code, I’m sure I can upload to there too, only by popular demand though!
(more…)
Tags: Actionscript 2, Actionscript 3, as2, as3, code, git, github, open, os, PHP, source, svn
Posted in APIs, Actionscript 2, Actionscript 3, Development, General, PHP |
No Comments »
Monday, June 29th, 2009
Update: keep up to date with my latest code on my Github.
I’ve recently had an article on the YouTube Player API for Actionscript 3 published on the Flashtuts+ network. However, some people are having issues getting to grips with loading another video in-situ, so here’s a slight change to the code:
Once you read the tutorial, you will finish with two important files:
- YouTubePlayerWrapper.swf – The AS2 wrapper
- App.as – The AS3 class files
(more…)
Tags: Actionscript 2, Actionscript 3, api, APIs, as2, as3, code, flashtuts, player, tube, you, youtube
Posted in APIs, Actionscript 2, Actionscript 3, Development |
44 Comments »
Tuesday, June 23rd, 2009
This is a quick article about why I like the AS3 Data Structures For Game Developers. I first came across this library when I was looking at effective ways of making carousels, for example, the current carousel on my portfolio uses the library. I’m probably not using it to its full potential, but it’s very good for what I am using it for.
Imagine the situation: you want to create a carousel (much like the carousel on my portfolio) where by you are loading in images, moving them from the right to the left and then allowing the user to flick through them too.
(more…)
Tags: Actionscript 3, as3, as3ds, carousel, code, dlinkedlist, dlistnode, free, polygonal, sprite
Posted in APIs, Actionscript 3, Development |
No Comments »
Monday, June 22nd, 2009
So I’ve been working on creating a fully fledged player for the web site 1Click2Fame.com. A lot of people who have been following me on twitter have been asking me to publish my code, so here’s what you’ve all been waiting for.
This isn’t just your average FLV video player. I’m not going to go into great depths on creating stuff like the stop button, the seek bar and what not, I believe in creating clean and reusable code, so this tutorial is more about creating a great chromeless player API and then allowing you to go crazy with the UI.
(more…)
Tags: Actionscript 3, api, as3, chromeless, code, Flash, flv, free, play, player, video
Posted in APIs, Actionscript 3, Development |
1 Comment »
Tuesday, June 16th, 2009
This is a really handy tip if you use jQuery frequently and are receiving JSON data back. jQuery’s “$.post” allows you to do a POST call to your application and get the data back, but you have to flag the type of data being received by jQuery so that it can parse it.
(more…)
Tags: ajax, ci, code, codeignitor, ignitor, JavaScript, jquery, JSON, PHP, post
Posted in Development, JSON, JavaScript, PHP |
No Comments »
Friday, May 29th, 2009
As soon as I had written the entry about my success with AMFPHP and AS3, I had a crack about sorting it out with CodeIgnitor. It’s been a painful few hours, but I soon realised that my failing was this line in “index.php”:
It needs to be this, to suppress any blank spaces so that the content type is “application/x-amf”:
Awesome! Here’s the CI Wiki page about integrating AMFPHP and CI.
Tags: actionscript, Actionscript 3, amf, amfphp, code, codeignitor, ignitor, PHP
Posted in APIs, Actionscript 3, Development, PHP |
No Comments »
Sunday, May 17th, 2009
Recently I joined a debate started by the editor of Flashtuts+ regarding coding conventions. Now I’m a strong believer that if you’re going to code, you best do it right. Yet on a day to day level I still see sloppy code. Gone are the days of Actionscript 1 and 2 coding when you didn’t have to declare variable’s type or a function’s return value, but still people continue this in their coding of Actionscript 3.
The fun doesn’t stop there. I admit, when I first started coding yes I was very sloppy with my convention, but I’ve cleaned up my act, honest. With other languages such as PHP and JavaScript, you see how easy it is to just keep typing and typing and through any sort of convention out of the window. But when the client turns around as says: “Why can’t that be 3D?” you’re then going to have to go through all your sloppy code and make it 3D.
(more…)
Tags: actionscript, Actionscript 2, Actionscript 3, code, coding, convention, CSS, debate, guide, JavaScript, PHP, Python, style, tutorial
Posted in Actionscript 2, Actionscript 3, CSS, Development, General, JavaScript, PHP, Python |
No Comments »