search text in P2FDoc, with TextField on stage

Publishing Flash documents by embedding them in Flash movies
Post Reply
jeremy
Posts: 3
Joined: Mon Feb 02, 2009 10:07 am

search text in P2FDoc, with TextField on stage

Post by jeremy » Thu Feb 19, 2009 10:35 am

On my stage I have a input TextField, and I would be able to search text, that is enter in the input, inside the P2FDoc.

I guess i should use these :

Code: Select all

		public function SearchText(text:String,CBFunc:Function):void {
			APILC.send(connstr,"SearchText",RegisterCBFunc(CBFunc),text);
		}			
		
		public function findNext(CBFunc:Function):void {
			APILC.send(connstr,"findNext",RegisterCBFunc(CBFunc));
		}			
		
		public function ResetTextSearch():void {
			APILC.send(connstr,"ResetTextSearch");
		}						
		
		public function setFindText(text:String):void {
			APILC.send(connstr,"setFindText",text);
		}						

		public function getFindText(CBFunc:Function):void {
			APILC.send(connstr,"getFindText",RegisterCBFunc(CBFunc));
		}


But I don't understand how can I use it.

Somebody can explain to me, or show me an exemple ?

Post Reply