CATEGORY


MTASC and SEPY

If you are a satisfied SEPY user you maybe wanna check the synatx rules inside the editor and not to flush time by time.

Now it is possible with the open souce Action Script 2 compiler MTASC.

In newer SEPY versions there it is an easy thing to implement the MTASC compiler.

In SEPY IDE there is a button, similar to the check synatx button in Flash IDE. If you press and there are some errors, SEPY will go to the line where the error occured.



Flash 8 Objects and Functions

I have played around with some action script and the new flash player 8. There seems to be a lot of new functionality inside, filters, bitmaps, etc.

If you also wanna play around you need a Hex-Editor, Flash MX 2004 and Flash Player 8 installed.
Insert the following Action Script into the first frame of a new movie. Create a new dynamic textfield with the instancename “textF”.
[as]
function returnObjs(obj) {
for(var i:String in obj) {
if(typeof(obj[i]) == “object” || typeof(obj[i]) == “function”){
_root.textF.text += ”

objroot name: ” + i + “, value: ” + obj[i] + ”
“;
returnObjs(obj[i]);
} _root.textF.text += “name: ” + i + “, value: ” + obj[i] + ”
“;
}
}

returnObjs(flash);
[/as]

Export the flash movie and open the generated “.swf” with the Hex-Editor. Now you have to change the value of Byte number three. It will maybe look like this.


13 57 53 07 CF 01 00 00

By this exmaple Byte number three has the value “07″. This value you have to change to “08″.
Save the file and open it with flash player 8. Now in the textfield there are the names and the values of the new functions, try to play around with it.



Flash Player 8 Public Beta

Macromedia has released a Beta version of their flash player. The newest player has version number 8 and is a public beta release.

Here you can get the player for testing it.

This is the first sign that the new flash authoring enviroment, 8Ball will be released soon. My anticipation is getting greater than great;), because the new flash version has included filter and some other useful features for designers. I also hope that Action Script 2 will get an update and some new classes and components.



Add: Flash and dynamic backends

From the german publisher Galileo there is a book available which is very good to start into this complex and roomily theme.

Recension:

Die ersten drei Teile des Buchs führen in die Thematik PHP, MySQL und XML ein und bieten zusätzliche Verweise sowie Vor- und Rückgriffe. Das erlernte Wissen ist dann im vierten Teil gefragt: im praktischen Workshop kommen alle Elemente zum Zuge.

Hier zeigt sich, dass sich das Flash-Format mittlerweile nicht nur zur Darstellung von Animationen und Comics eignet, sondern auch für komplexe Infografiken und datenbankgestützte Anwendungen.



Design Pattern: Singelton

Today i wanna demonstrate how to implement a Singelton with Action Script 2.
[as]
class at.pics.core.AnimationService implements Functionality {
// attributes
private static var _instance:AnimationService;
// constructor
private function AnimationService() {
}
// getInstance method
public static function getInstance():AnimationService {
if(!_instance) _instance = new AnimationService();
return _instance;
}
[/as]

As you can see is the constructor marked with a private statement. If you wanna access the Class via

[as]var inst:AnimationService = new AnimationService();[/as]

you will get an error.

The singelton pattern is nearly equal to a static class. But there are some advantages. Inside the Class you can use normal members and not static. You are able to create instances in every other class, and the biggest advantage at least, a Singelton is much more stable than flash itselfs static classes are.




© 2006 - 2012 Hannes Wolfgang Moser