Well, Let me share with others here, finally I found a solution for this
problem.
Than in future who work with TextSnapshot (with static texts) and Loaded swf
can play smooth in Flex.
Here's my attempt.
private var mySnap:TextSnapshot;
private var snapCount:int ;
public function
search(textToFind:String,caseSensitive:Boolean=false):void {
var ar:Array;
mySnap = libMC.textSnapshot;
mySnap.findText(0,textToFind,false);
snapCount =
mySnap.findText(snapCount,textToFind,false);
var t:String = "..."+
mySnap.getText(snapCount,mySnap.charCount,false);
Alert.show(t);
snapCount = 0;
//Alert.show(t);
}
]]>
</mx:Script>
<mx:SWFLoader id="loadedSWF" x="193" y="197" width="650" height="462"/>
<mx:TextInput id="magicWord" x="193" y="167"/>
<mx:Button x="361" y="167" label="Search It!" width="99"
click="search(magicWord.text)" />
But the only problem still persists is
http://bugs.adobe.com/jira/browse/SDK-15295 this one. If anyone there with
good response please, vote to fix this problem.
Regards
Igor Costa
On Wed, Apr 1, 2009 at 2:49 PM, Igor Costa <[email protected]> wrote:
> Hi there crew.
>
> Does anyone here put TextSnapShot Class to work truely with loaded SWF with
> statics text? This bug http://bugs.adobe.com/jira/browse/SDK-15295 was the
> only close thing I found googling and is still opened.
>
> If you were lucky enough can you tell me the work arround done? the
> Docummentation of Class and even reading source code didn't helped me out.
>
> Regards
>
> --
> ----------------------------
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>
--
----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org