Skip to main content
Participating Frequently
May 6, 2013
Question

Creating a Keyword search box to locate Library Item.

  • May 6, 2013
  • 1 reply
  • 1005 views

Can anyone show me or point me in the right direction to figure the code to type a keyword into a text field and pull the closest image match from the library?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 6, 2013

library items are not searchable using actionscript.  in fact, they are not even included in the swf unless they've been added to the stage.

you can use jsfl to search for library items but that's not for use with a swf and not dynamic.

Participating Frequently
May 6, 2013

Then would I be able to create a search text box that would activate a movie clip already on the stage based on keywords typed into the text field?

kglad
Community Expert
Community Expert
May 7, 2013

sure.  the easiest way to do that would be to assign an instance name to your movieclips and use your textfield and actionscript to find matching movieclips.