1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

ActionScript Debugging

This is a simple little segment of code that i find very useful to work my way through flash files. It basically lists all the properties (which includes direct children) of the target movieclip. Here’s a few implimentations…

(Set n beforehand with something like var n = my_mc)

for(var i in n){
trace(i+" : "+n[i]);
};

and thats it in a nutshell. Your output will be something like this;

property : value

Ok, so thats not a very good example, but try it and you’ll see.
Here’s a function-based version for you…

traceProperties = function(movieclip){
n = movieclip;
for(i in n){
trace(i+" : "+n[i]);
}
}

and it’s Actionscript 2.0 sibling…

function traceProperties(n:Object):Void{
for(var i in n){
trace(i+" : "+n[i]);
}
}

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Obscure Markup

This is probably the least tipworthy tip i can find, but here’s some of the weirdest, most unusual tags and functions you can use in your basic HTML.

http://obscuretags.com/

What interests me most is the encoding of base64 data in your text code. (Check previous posts and you can see i’ve touched on this before) But now thanks to this article you can have a look at these links; One for the wiki on it and t’other for a website that can generate this base64 code for you from your images. How about that?