Tagged with

actionscript

About Matthew Wallace

The lowdown on Matthew Wallace:
I’ve been a  software engineer for more than a decade. The technologies and languages I specialize in are many. Problem solving is something I really enjoy.

Languages I work in: Swift, Objective-C, Actionscript, Java, Ruby, Python, C++, Javascript

Niche Technologies that I work in: Video streaming platforms using Wowza (Java), FMS, WebRTC. I also have done realtime alert and chat systems using the same technologies such as FMS, XMPP, and others.

I tend to work in three main areas. Desktop, Web, and Mobile application development.

What you will get out of this:
My website is meant to showcase things I’m working, things I’m learning or interested it and also if you are looking for a software engineer, you’ve come to the right place. Feel free to reach out. I’d love to hear about what you are working on and what need I can fill or problem I can help solve.

How to convert an AS3 ANE to Haxe • Andy Moore

How to convert an AS3 ANE to Haxe • Andy Moore

BareBones MVC

An extremely light MVC framework built in Haxe.

A quick history: In late 2012 I was on a project building some games for IR5. It was a really good experiance because it was my first go at using the Starling framework for Actionscript.
The client had build the framework we where using to build the games around using Parsley. Parsley has been my MVC framework of choose for the past few years. I came to like IOC and Injection, however we found that the games themself ran faster and more smooth if we went for a simple “handrolled” MVC of our own and stay away from the Event driven nature of Flash.
Starling works so well that we found that responce to changes in data for the game where much faster by using a plain old publish subscribe method and allow our views to “register” with the data model and allow our data model to call “update” on any views that are subscribed to it. Old School plain Jane MVC if you will.
I have Steff Kelsey, the lead developer on the project to thank for coming up with the simple sturcture and conventions we used.
BBMVC is a direct result of the work that we did on these games. I liked it so much that I started using in on all my projects and figured the best thing I could do is create a reusable lib that is cross platform via a haxelib
More to come on BBMVC and examples soon. Stay tuned. If you have any qustions in the mean time please feel free to hit me up. @matthewswallace on twitter.

 

Eclipse syntax color themes for FDT

If you haven’t looked for this lately you are going to be really happy to see this eclipse plugin. For at least a couple of years I was hoping someone would build a plugin for managing themes in eclipse. We all tend to not like the default no matter what language you program in. The process be for was going into the Appearance tab in Eclipse and changing the color settings to reflect the needs you have, export preferences and then import every time you switch work spaces.

Well check out eclipsecolorthemes.org. This plugin adds a section under the Appearance menu in Preferences. You can brows the site and search for popular themes. My fav in TextMate has always been Twilight so I did a search and found one that was perfect, downloaded the theme and imported it with no issue. 

Flex 4 Scroller using pure Actionscript

I had to figure out how to use the new Flex 4 scrolling using pure Actionscript over the last day or two. It isn’t obviouse what the set up is right away without seeking out some documentation or posts by other users. 

The MXML version would lead you to believe that you you would just addElement() to a scroller object and you would be good to go.


<s:Scroller left="2" right="2" top="2" bottom="2">
<s:Group id="vp" horizontalScrollPosition="57" verticalScrollPosition="198">
<mx:Image source="http://sites.google.com/site/hansmuller/Home/archive/gyro-original.jpg"/>
</s:Group>
</s:Scroller>

Here is an example of adding a scroller to a VGroup in pure AS3.

_vgroup = new VGroup();
_vgroup.gap = 0;

_scroller = new Scroller();
_scroller.percentHeight = 100;
_scroller.viewport = _vgroup;

this.addElement(_scroller);

As you can see you create the component instance that you would like to apply the scroller too. Create the scroller and tell the scroller what component it is going to use for it’s viewport and then you add the scroller to the display list. Doing this takes care of adding the component that you will be scrolling to the view for you. Pretty nice way of doing this but not the most obvious.