Legal or not?

if you use a swf decompiler to find the actionscript behind a swf and want to use it, is
it legal? I tried contacting the author but no contact anywhere.