AS3: Possible to read ppt file?
Is it possible to get the content of a ppt file with 开发者_Python百科as3? Possibliy similar to loading and reading an xml?
Technically speaking, yes. You can load a PPT file to your SWF using a URLLoader
whose dataFormat
is set to URLLoaderDataFormat.BINARY
and write code to parse it based on the PPT binary file format released by Microsoft. In practice, I'd say that's not going to be an easy task.
Consider open sourcing your ActionScript API for parsing PPT once you're done with it ;-)
There's certainly no quick solution, like the XML and XMLList classes for XML, and so whilst it may be possible in theory if you write your own classes to read in the no-doubt far more complex PPT format, in practice it isn't.
精彩评论