Contact Me


Recent Posts


Categories


Archives


Tags

3d actionscript Actionscript 2 Actionscript 3 api APIs as2 as3 brand caching carousel channel code compress contest contract CSS Flash flv fp10 free freelance gadget gadgets gdata google JavaScript jquery mvc papervision papervision3d PHP player playlist puremvc pv3d search tube tutorial twitter video widget XML you youtube

Recent Comments

  • Ahmed: Can you put up an example?
  • Ahmed: Hmmm sorry this is a tough one but I don’t work with ASP.NET! Sorry!
  • Michael: Good example but one question… in all the slider skinning I see with Flex the thumb overruns the left...
  • venkata: Hi I am using OAuth to connect to youtube api. I got accessToken and TokenSecret for a particular user. Now...
  • Ahmed: Good old flexlib, what component are you using?

Links


Help end world hunger

Posts Tagged “code”

Speeding Up PureMVC Development, Part 2.1: The Mediator (2)

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…)

Releasing My Code as Open Source

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…)

The YouTube Player API

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…)

Why I like the AS3DS Library

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…)

Creating a Video Player in Actionscript 3

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…)

jQuery’s Missing AJAX Function (and CodeIgnitor)

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…)

AMFPHP and CodeIgnitor

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”:

1
error_reporting(E_ALL ^ E_NOTICE);

Awesome! Here’s the CI Wiki page about integrating AMFPHP and CI.

Coding Conventions

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…)

Fork me on GitHub