I’ve had to answer this at least three times in the last month so I’m assuming it’s a useful piece of code.
When creating liquid interfaces in ActionScript 2 you simply let your object listen to the stage for changes, like so:
1 2 3 4 5 6 7 | Stage.addListener(this); ... private function onResize() { this.mc_background._y = Stage.height } |
In ActionScript 3 the stage is accessible as a property in all classes inheriting from DisplayObject. Useful, but here is where the trouble begins for most people. If you…
I guess I should apologize for the agonizingly slow pace at with I update. It’s not to do with malice, I’m just swamped with freelance work and it eats away at the little free time I have to write in. It’s a pleasant problem, though; the demand for Flash developers is higher than ever.
Next week I’ll be writing two more articles on the principles of animation, and after that I’ll try to go a little deeper and touch upon…
First of all, thanks to everyone who has taken the time to visit this page and write to me. There aren’t many large development teams where there is more than one Flash expert – the one I’m on is no exception - so I take any chance I can get to get to know colleagues around the world.
I know it says on the front page that this site is about development as well as animation, but I’m still working…
Ok, bloging can’t be that hard. If it was hard, blogers would not be able to do it…