ActionScript 3 Notes Are Now Searchable

About a month ago I posted the monster deck of 165 slides from my ActionScript 3 workshop. I’ve had a lot of positive feedback, and have also found myself and my team using it as a quick AS3 reference.

The one thing that was holding it back from being a really useful reference was the need to click through every slide to find what you were looking for.

To address that, I added the ability to search for keywords by using the TextSnapshot object. I had never used TextSnapshot before, but it was quite easy to add keyword searching without modifying my slide deck, which is effectively just a timeline with static text fields on it. It works fairly well, except for a number of bugs with it selecting the found text. For example, you’ll notice it does not highlight text in the code samples. I’m going to try to pin these issues down, and then post an article on using TextSnapshot, along with a handy class for doing timeline searches like the one in my slide deck.

You can find the slides on my talks page at gskinner.com/talks/.

Grant Skinner

The "g" in gskinner. Also the "skinner".

@gskinner

2 Comments

  1. Really good idea. Do you think to make it compatible with search engines search URLs arguments ?

    I actually don’t know how Google will handle keywords found in Flash animations (regarding the last news about it). Will it point to the page that hosts the animation or will it point directly to the SWF file ? One or the other it will be possible to handle search arguments and highlight text as searched in Google. 😉

  2. AjitPal Singh July 22, 2008 at 4:34am

    slides contain excellent information about hw to play with as3.. i have stuck some where need ur help.

    I’m loading swf1 inside swf and then again swf1 movie clip (bg_mc) is again loading another swf2. but i’m unable to control that swf2 from swf…like play or to stop.

    1:- like swf contain:- main_mc

    then after adding swf1(bg_mc), it contain

    main_mc.bg_mc

    2:- and again adding swf2(one_mc) to

    main_mc.bg_mc.one_mc

    but i’m unable to unload or play that (main_mc.bg_mc.one_mc.play())… could u plz tell me what logic should i follow?????

Comments are closed.