> Hi all,
>
> To be able to easily add characters to all the textfields in my fla (not
> only those allready on stage), I want to find all the textfields in all
> movieclips in the library.
>
> To find all the library items I use this script:
>
> var result = "";
> var myItem;
> for (var i = 0; i < fl.getDocumentDOM ().library.items.length; i ++)
> {
>     myItem = fl.getDocumentDOM ().library.items [i];
>     result += myItem.itemType + " -> ";
>     result += myItem.name + "\n";
>     for (var j in myItem)
>     {
>         fl.trace (" * " + j + ": " + myItem [j]);
>     }
> fl.trace (result)
> }
>
> When 'itemType == movie clip' I want to check if there is a textfield in
> that movieclip. Does anyone know how to do that?

Yes - you can look through the timeline of the library item just as you
would through the main timeline, searching for text elements.

Danny

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to