Archive for the ‘General’ Category

Canvas Play 05: Vibrating Behaviours

The last demo introduced concepts from the HYPE Framework; object pooling and colour pooling. This demo introduces another one, behaviours, and in particular the FixedVibration behaviour, which is based on the HYPE class of the same name. The resulting effect is similar to previous demos, but the animation is much smoother, click the image below to see it.

Canvas_05 Demo
[Please note that this demo hasn't been optimised to work on all machines, so you may experience some slow down]

Continue reading »

Posted by Mark on March 17th, 2011
 

New Year(ish), New Look

I’ve always wanted to create my own WordPress theme for my site, but haven’t had the time (or patience!) before. I was hoping to have it complete by the new year but it took a back seat whilst I worked on the StatefulToolkit. Over the past week I’ve had chance to implement the design, and here it is! I hope you like it.

Now to get back to the StatefulToolkit…

Posted by Mark on February 14th, 2010
 

Happy New Year!

OK, so it ‘s a couple of days late but I’m now back at work and in the swing of things so I thought I’d write a new post.

2009 was a good year for me, I started my full-time job at MMT Digital after finishing university and have really started to delve a lot deeper into programming. The last year has seen me really improve my understanding of OOP as well as use design patterns and frameworks in my daily work.

This year, my new years (programming) resolutions are to:

  • Finish the Flash game I started programming in Autumn 2009
  • Pull together and publically release my stateful toolkit (AS3)
  • Learn more about TDD (test driven development) and optimisation
  • Blog more
  • and finally, play!

I’m hoping that by posting my resolutions I’ll actually stick to them, especially the top two – I’d really like to seem them out in the wild. I’d also like to blog more, even if it’s just some of the random things I come up with when playing with code!

I hope you all have a successful and enjoyable 2010!

Posted by Mark on January 5th, 2010
 

SWFObject not embedding Flash in Firefox

Whilst working on a site that used SWFObject to add Flash to a page, I came across a situation where my Flash movie wouldn’t embed in Firefox, but it would in all the other browsers. Here’s an code excerpt from the page.

1
2
3
4
5
6
7
<script type="text/javascript">
   swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
</script>
 
<div id="myContent">
   <p>Alternative content</p>
</div>

After spending around an hour on extensive research (Google!) and checking the case of my code, I still couldn’t find a solution to the problem.

Eventually I discovered that Firefox executes JavaScript at a different time to other browsers. Other browsers appear to load the page and then execute the JavaScript on the page, whereas Firefox appears to execute the JavaScript when it gets to it.  So by moving the script to below the div it miraculously worked in Firefox. It would probably be better if the embedSWF function was called on document ready. You can see the corrected code below. It’s so simple when you know how!

1
2
3
4
5
6
7
<div id="myContent">
   <p>Alternative content</p>
</div>
 
<script type="text/javascript">
   swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
</script>
Posted by Mark on November 20th, 2009
 

Hello World

I’ve been meaning to set up a blog for a while. I’ve not found the time whilst being at university, so instead I’ve made some contributions to the blog at psyked.co.uk. Now that I’ve recently graduated, I thought it was the perfect opportunity for me to finally buy a domain and get blogging!

The primary focus of the blog will be the Flash Platform, however other web and desktop technologies may crop up from time to time. I’m also hoping to share some of the small projects and experiments I do in my spare time.

Well, that’s the first post out of the way! Hopefully future posts will be more exciting!

Posted by Mark on July 19th, 2009