fixed bug: openfl output: A swf file name is getted correctly.
reformatted code