Tuesday, 20 January 2009

Day 2 - Strategy Change

I'm not doing to badly with FlashDevelop, well have installed it, and managed to instantiate classes to draw some primitive shapes on stage. Managed to attached to attach a jpeg also. Problem is when searching for online tutorials, most seem to use the Adobe Flash IDE. This is quite frustrating for learning. This is the same for the books I have. Actually, I haven't took a good look at EAS 3.0, cus I know it is know it is going to be too in depth to start with.

So I've downloaded the trial of Flash CS 4.0 (this lasts a month) and am going to try and follow the examples in the 'Learning AS 3.0' book then try and implement examples in FlashDevelop.

So far, so good. This approach pushes me not just to cut'n'paste but rewrite code to get it to work in FlashDevelop.

I've managed to get the intial part of the inheritance chapter (chapter 6) working in FD. This doesn't use any graphics though.

All I had to do was modify the base Class, which is the .fla in the book.


package {
import flash.display.MovieClip;
import flash.events.Event;
public class MainClass extends MovieClip {
private var vehicle:Vehicle;
public function MainClass() {
var vehicle:Vehicle = new Vehicle(21, 18);
vehicle.go();
}
}
}

No comments:

Post a Comment