You could then have it appear on the command menu and just run it.
I don't know exactly how to do it, but it is possible.
as2 or as3? are all your textfields on the main timeline or are some nested within child movieclips?
Thanks to you both for your quick replies. I tried the command from the linked site, but unfortunately it didn't work. The static text objects are all inside buttons, not movie clips. Is there a way to change those?
I'm using AS3 if that helps.
Thanks in advance,
static text is embedded by flash.
Static text doesn't need to be embeded. So I'm not sure what the problem you are having is. The page you linked to is for making an embedded font in your library that can then be exported for actionscript and used by code and style sheets. If you are following the instructions on the page you liked to you only need to do that once. Which shouldn't be too hard.
That is usually a different problem that having a bunch of different authortime created textfields that need to have characters embedded.
As far as I know your only hope to change a bunch of authortime/library items is using JSFL. So even if the thing I pointed to isn't exactly what you need you could keep googling a bit or use that as a template.
JSFL files are just text files so open it in note pad. Look for the line:
if(it[i].itemType == "movie clip")
and change it to this:
if(it[i].itemType == "movie clip" || it[i].itemType=="button")
Now it does buttons. You give up too easy.
that's incorrect. he can embed all the fonts during runtime.
that may be more or less difficult depending upon the number of different fonts being used. but if they're all the same, he just needs to answer my first reply.
(and static text needs to be embedded but is automatically embedded by flash.)
Which part is incorrect?
Yes he can embed all the fonts, but if the textfields don't have their embedFonts properties set to true they won't know to use the embeded fonts. Or am I missing some step here?
yes, you missed a step. all the textfields can have their text embedded during runtime.
this would require a loop through all the movieclips (as2)/displayobjectcontainers (as3) in the project searching for textfields and assigning their embedFonts property and assigning css or a textformat.
I think that might be theoretically possible, but I don't think it would be very effective or workable.
For example if you have a movieclip that doesn't have the textfield until frame 50 that textfield wouldn't be found by a runtime function unless it ran at/after frame 50. Also for buttons (and who uses buttons these days?) would that be able to find textfields on each of the states?
I guess the routine could be designed to look down a timeline and all, but it seems like it would just be implementing the same thing as the JSFL and that the JSFL will fix it once and be done with it.
I also think this approach would require changing a considerable amount of code in his project for the css and/or textformatting.
I'm still going to go with JSFL is the best solution for this. Especially since we have a script that does exactly (or almost) what is needed.
a textfield on frame 50 would be a problem but that's why i started by asking questions.
(but using non-static textfields in buttons are problematic anyway so noone uses them.)
Please accept my apologies - in my reply I meant to say all the dynamic text objects are inside buttons. Not static text objects - my mistake. I'm sorry for the confusion.
So does the fact they're within buttons prevent me from using the JSFL method? Is there any other way?
Perhaps my method of creating the file is odd - I've just pretty much taught myself the tiny bit I now know about flash using tutorials where possible. Unfortunately I don't know any good / bad practices yet; I've just found some things that do what I want!
Would it help if I upload the file?
how can you use dynamic textfields in true/simple buttons? or are these movieclip buttons?
If you see my post above, open the jsfl file with a text editor like notepad on windows or textedit on a mac, and change the one line it will work with buttons.
kglad -- my guess for how to use dynamic textfields in a true button would be using the var property of the textfield and not the text property. Seems to work for me. At work we are still publishing to Flash 5 and we have a lot of buttons that use this trick. Maybe there are others?