Remco,

I recently posted some jsfl on my blog that shows how to recursively find all textfields and adjust font usage at a character level:

http://blog.snepo.com/articles/2006/09/04/flash-jsfl-swap-font

should be an easy step to modify it to your needs.

Arse
http://www.snepo.com
http://depot.snepo.com
http://www.arseiam.com


Remco Hoff wrote:
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?

Thanks,
Remco Hoff
[Fabrique, Delft, Netherlands]
_______________________________________________
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



--
*Anthony Eden*: Inventor at Snepo <http://www.snepo.com/>
contact | [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | 0411 5622 02


_______________________________________________
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