Posted in Flex, web-dev on August 19th, 2009 by Nick – Be the first to comment
BlazeDS allows us to use RPC to access our Java objects from an Adobe Flex or AIR app. This is a simple example that allows you to have a remote java object which you will make calls upon from Flex (or Actionscript). There are plenty of BlazeDS remoting tutorials out there. This HOW-TO shows how to create an actionscript class to handle your remote objects and handlers as well as linking more than one method to a single remote object.
read more »
Posted in Flex on July 27th, 2009 by Nick – 4 Comments
This is a short example of how to play an audio clip and loop it in Flex, and works with AIR. Some of this code is taken from the Sound class example in the Adobe Flex Language Reference docs.
You can paste this into pretty much any function, like an init():
var soundReq:URLRequest = new URLRequest("someSound.mp3");
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
sound.addEventListener(Event.COMPLETE, completeHandler);
sound.addEventListener(Event.ID3, id3Handler);
sound.addEventListener(IOErrorEvent.IO_ERROR, ioSoundErrorHandler);
sound.addEventListener(ProgressEvent.PROGRESS, progressHandler);
sound.load(soundReq);
soundControl = sound.play(0, int.MAX_VALUE);
read more »
Posted in Java, Programming, iBatis on March 29th, 2009 by Nick – 4 Comments
iBatis is a framework used to map a SQL database to POJOs (Plain Old Java Objects). iBatis is one framework of many out there, others include Hibernate. Recently I’ve been tasked with a new webapp which will connect to a very old legacy database. One of the first things I decided to do was look through the database and figure out what data I needed, and then design and create java objects to hold said data. I chose iBatis for this particular project because I was dealing with a legacy database which I had little control over, and iBatis can give me the flexibility I need in case I need to write complex and specific SQL to construct my objects.
read more »
Posted in php on March 15th, 2009 by Nick – 9 Comments
Posted in Java, web-dev on March 10th, 2009 by Nick – 2 Comments
Setting up your webapp to work with https and SSL encryption when using Tomcat is easier than most people think. Here’s a very quick HOW-TO to get you up and running…
read more »