Re: [Flashcoders] JSFL - Finding all textfields in movieclips in the library

2006-09-26 Thread Arse @ Snepo

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 
contact | [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


[Flashcoders] JSFL - Finding all textfields in movieclips in the library

2006-09-26 Thread Remco Hoff

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