Hi all,
I am trying to get the charCount using "textSnapshot.charCount" and i
am getting result as 0. I used pdf2swf with -f option to create swf
file. if i run swfstrings swffile.swf command it gives me content of
swf file in text format. I am expecting textSnapshot.charCount should
return me the count of all chars in swf file, is it possible?
How can i get the charCount from swf file?
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
applicationComplete="init(event)"
width="100%"
height="100%">
<mx:Script> <![CDATA[
import flash.system.LoaderContext
import flash.display.DisplayObjectContainer
import flash.display.DisplayObject
import flash.text.TextSnapshot
import flash.text.*
private function init(evt:Event):void {
trace(swf_src.textSnapshot.charCount);
}
]]>
</mx:Script>
<mx:SWFLoader
top="40" id="swf_src"
scaleContent="true"
source="swffile.swf"
horizontalAlign="center"
horizontalCenter="0" />
</mx:Application>
Thanks in Advance
Atul K.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---