BIGGIES
addEventListener quick tips
Friday, 18th July
Often you stumble across having to write multiple functions for different event listeners which are essentially the same. For example you have 6 buttons that all link to different html pages and you need to write a function that calls navigateToURL for each one. I used to end up writing a function for each one but you can actually create a function in the addEventListener statement that references another function that you can pass a variable into. So it’s almost like passing a variable into the addEventListener.
Example:
my_btn.addEventListener(MouseEvent.CLICK, function():void{ myCustomFunc(variable) });
The reason you can’t do this…
my_btn.addEventListener(MouseEvent.CLICK, myCustomFunc(variable));
…is because you can only pass a reference to the function.
This is a tip I learnt from Tyler Egeto.
Another thing I stumbled across just by curiosity is that you can actually reference a function in a child from within addEventListener.
For example:
my_btn.addEventListener(MouseEvent.CLICK, object.myFunc);
Just be sure to have the event type in the function like so:
private function myFunc(e:MouseEvent):void{}
Hope this helps.
Posted in AS3, Flash | No Comments »
Arduino - Timelapse
Monday, 21st April
Using an arduino chip I programmed an application allowing you to capture time-lapse directly to your computer and move the camera over a specified amount of time. You specify the amount of seconds you want recorded and it does the work for you.
I was using Processing to make the app. Pretty soon I want to get a second Servo going so i can rotate on multiple axis.
Check out the short video test here.
Posted in Processing, Portfolio, Motion | 2 Comments »
Pablo’s Garden
Saturday, 15th March
Here it is. the much anticipated final Project. After 4 months of hard work you can finally check it out here at pablosgarden.com.
Pablo’s garden is a website where users can log in and express themselves as an artist, designer or however they feel. Users can interact and draw into the garden as well as have the power to vote on drawings.
The garden gives the opportunity for users to collaborate and draw pieces influenced by each-other. They can build on each others work and create combined works of art.
If you want to know more about my project you can download my case study here.
Posted in *Final Project, Flash, Fun | No Comments »
First glimpse of the world
Saturday, 9th February
Posted in *Final Project, 2D design | No Comments »
Coming out of the hole
Saturday, 2nd February
I am finally coming out of my hole. I’ve been holding off posting on the blog for a couple weeks now. I am at a point in the project where I have nothing to show yet.
The past 2 weeks I have learnt a lot about databases, mySQL and php. I have also been introduced into event driven programming in flash and how powerful it is.
I have been struggling through setting up a login and register as well as communicating with the database in these new coding languages. I have also been doing some experiments with setting up the world. This has also been a bit of a battle and I still haven’t got a final solution.
I have a date set in 2 weeks for when I want the beta application to be done. I’m a bit nervous but I am super excited because I know I have a lot of sleepless nights in the next 2 weeks. From there I will be doing user testing and having some fun adding new features.
So there’s my update. Keep an eye out for some design layouts of the site which I should post within the next week.
Posted in *Final Project | No Comments »





