Archive

Posts Tagged ‘ActionScript3’

YouTube Video ID from YouTube link, AS3

July 29th, 2010 No comments

This function returns the YouTube ID if the input was any form of valid YouTube link or the ID itself.

private function extractID(input:String):String
{
  if (input.length == 11) return input;
  var reg:RegExp = /http:\/\/(?:youtu\.be\/|(?:[a-z]{2,3}\.)?youtube\.com\/watch(?:\?|#\!)v=)([\w_-]{11}).*/gi;
  var res:Object = reg.exec(input);
  if (res != null) return res[1];
  return "";
}
filip Categories: Coding Tags:

Useful Frameworks

June 25th, 2010 No comments
filip Categories: Coding Tags:

Cirondo

April 6th, 2010 No comments

My friend Harry showed me an interesting board game recently. It’s called cirondo. As far as I know it is no longer produced but it can be ordered here: cirondo.de

Here’s my (low graphics) Flash version: Cirondo (Flash, AS3)

The game should be quite self explanatory the way I made it. Possible moves are highlighted as soon as a stellar is selected. A sun comes into game when a moon reaches the center circle.

I don’t have permissions from the authors of the game … let’s see what happens :)

If anyone is interested in the sourcecode, please contact me. I’m also planning to do an iPhone/iPad version of it.

filip Categories: Coding Tags: , ,

Flash Upload Problems

January 20th, 2010 No comments

I had a conversation with some guys at the Adobe Bugbase about problems that were reported concerning the upload features of Flash on any browser.

It occurred  to me that Antivirus Softwares were  interrupting the process of uploading files to a server over the Adobe Flash Plugin by taking the whole file and then buffering it to the server. This is why the upload progress reaches 100% very fast and in addition to that it decreases the upload speed since the whole file is going through virus checks before it’s streamed to the server.

For now I agree with the fact  that those Antivirus Programs interfers with the upload functions of the Adobe Flash Plugin in any Browser:

(Tested with Flash 10, all versions but I’m assuming that this happens to all versions of the Adobe Flash Player)

Windows:
AVG Free 9.0
McAfee 4.001494

I try to keep updating the list, but if  anybody out there knows of more,  let us all know!

filip Categories: Coding Tags: ,