[Flashr] simple tag search

Kelvin Luck kelvin at kelvinluck.com
Mon May 1 06:46:42 EDT 2006


Hi,

I've attached a copy of the AS file from the simple search example with
a very minor change. There is now a function called "doSearch" which
starts the whole search process running...

If you open up the fla you will see there is a small dot in the top left
hand corner. This is an instance of "FlashrSimpleSearch" and is
associated in the library with the class
com.kelvinluck.flashr.example.FlashrSimpleSearch. This basically means
that the actionscript in the FlashrSimpleSearch.as file is basically all
in this clip. (that's not a very good description - I'd recommend Colin
Moock's EAS2 [1] as an introduction to AS2 and classes etc).

Basically, if you give that clip on the stage an instance name (lets say
"simpleSearch") then from the timeline you would be able to do:

simpleSearch.doSearch("your,tags");

Hope that helps,

Kelvin :)

[1] http://www.moock.org/eas2/

Gareth Jones wrote:
> Hi,
>  
> sorry i have a few quick questions about the simple search example :-)
>  
> I am a bit of a newbie when it comes to classes.. how do i change a 
> class varibles from within my fla? for example the tag var:
>  
> public static var SEARCH_TAG:String = "red" i want to be able to change 
> from an input box in my fla.
>  
> also how do i stop the function running right away, i want to run it 
> after a value has been entered into the input box.
>  
> many thanks,
> Gareth
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FlashrSimpleSearch.as
Url: http://osflash.org/pipermail/flashr_osflash.org/attachments/20060501/30607072/FlashrSimpleSearch.bat


More information about the Flashr mailing list