반응형
어제 올라온 글중에
The Secret Life of SWFs: Flex 2’s undocumented SwfxPrinter tool 라는 글이 있어
정확한 용도를 알수가 없어서
일단 이런식으로 써보았습니다 라고만 쓰고
나중에 다시 업데이트 하겠습니다. ㅠㅠ
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label text="Test - Hi" horizontalCenter="0" verticalCenter="0"/>
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label text="Test - Hi" horizontalCenter="0" verticalCenter="0"/>
</mx:Application>
위에 있는 단순무식한 코드를 아래처럼 돌려보니
C:\Program Files\Adobe\Flex Builder 2.0.1\Flex SDK 2\lib>java -classpath asc.jar;swfkit.jar flash.swf.tools.SwfxPrinter hi.swf >> test
* 사용법
Usage: java tools.SwfxPrinter [-encode] [-asm] [-noactions] [-showdebugsource] [-showoffset] [-noglyphs] [-external] [-save file.swf] [-nofunctions] [-out file.swfx] file1.swf ...
* 사용법
Usage: java tools.SwfxPrinter [-encode] [-asm] [-noactions] [-showdebugsource] [-showoffset] [-noglyphs] [-external] [-save file.swf] [-nofunctions] [-out file.swfx] file1.swf ...
아래와 같은 코드가 나왔습니다.
작성된 파일의 기본정보와 기타 파일 구조에 대한 설명이 나오는듯 합니다.
넌 누구냐..
http://iteratif.free.fr/blog/index.php?2005/10/31/13-le-format-swfx
에 나오는 내용을 보면 flash8 과 호환성을 위하여 사용되는 것인것 같기도 하고
이렇게 아무도 이야기하지 않는 숨겨진 것들을 찾아내는것 보면 신기하기만 하네요.
정확한 내용을 아시는 분은 덧글로...남겨주세요..ㅠㅠ
<!-- Parsing swf file:/C:/Program Files/Adobe/Flex Builder 2.0.1/Flex SDK 2/lib/hi.swf -->
<!-- ?xml version="1.0" encoding="UTF-8"? -->
<swf xmlns='http://macromedia/2003/swfx' version='9' framerate='24' size='10000x7500' compressed='true' >
<!-- framecount=2 length=257126 -->
<FileAttributes hasMetadata='true' actionScript3='true' suppressCrossDomainCaching='false' swfRelativeUrls='false' useNetwork='true'/>
<Metadata>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'>
<dc:format>application/x-shockwave-flash</dc:format>
<dc:title>Adobe Flex 2 Application</dc:title>
<dc:description>http://www.adobe.com/products/flex</dc:description>
<dc:publisher>unknown</dc:publisher>
<dc:creator>unknown</dc:creator>
<dc:language>EN</dc:language>
<dc:date>2007. 4. 10.</dc:date>
</rdf:Description>
</rdf:RDF>
</Metadata>
<ScriptLimits scriptRecursionLimit='1000' scriptTimeLimit='60'/>
<SetBackgroundColor color='#869CA7'/>
<ProductInfo product='Macromedia Flex for J2EE' edition='Developer Edition' version='2.0' build='155542' compileDate='07. 4. 10오전 2:17'/>
<FrameLabel label='_hi_mx_managers_SystemManager'/>
<DoABC2 name='frame1'>
</DoABC2>
<SymbolClass>
<Symbol idref='0' className='_hi_mx_managers_SystemManager' />
</SymbolClass>
<ShowFrame/>
<FrameLabel label='hi'/>
<DoABC2 name='frame2'>
</DoABC2>
<ShowFrame/>
</swf>
<!-- ?xml version="1.0" encoding="UTF-8"? -->
<swf xmlns='http://macromedia/2003/swfx' version='9' framerate='24' size='10000x7500' compressed='true' >
<!-- framecount=2 length=257126 -->
<FileAttributes hasMetadata='true' actionScript3='true' suppressCrossDomainCaching='false' swfRelativeUrls='false' useNetwork='true'/>
<Metadata>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'>
<dc:format>application/x-shockwave-flash</dc:format>
<dc:title>Adobe Flex 2 Application</dc:title>
<dc:description>http://www.adobe.com/products/flex</dc:description>
<dc:publisher>unknown</dc:publisher>
<dc:creator>unknown</dc:creator>
<dc:language>EN</dc:language>
<dc:date>2007. 4. 10.</dc:date>
</rdf:Description>
</rdf:RDF>
</Metadata>
<ScriptLimits scriptRecursionLimit='1000' scriptTimeLimit='60'/>
<SetBackgroundColor color='#869CA7'/>
<ProductInfo product='Macromedia Flex for J2EE' edition='Developer Edition' version='2.0' build='155542' compileDate='07. 4. 10
<FrameLabel label='_hi_mx_managers_SystemManager'/>
<DoABC2 name='frame1'>
</DoABC2>
<SymbolClass>
<Symbol idref='0' className='_hi_mx_managers_SystemManager' />
</SymbolClass>
<ShowFrame/>
<FrameLabel label='hi'/>
<DoABC2 name='frame2'>
</DoABC2>
<ShowFrame/>
</swf>
728x90