FlashFontLoop Actionscript
Table of contents | Previous document | Download FlashFontLoop.as | SWF!T Homepage RCSfile: FlashFontLoop.as,v Revision: 1.4 Date: 2003/01/29 16:40:18
Copyright 2003 Orgdot AS. All Rights Reserved. http://dev.swfit.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
FlashFontLoop controls the behavior of the font clips and the external data.
author Olaf Havnes
version Revision: 1.4 Date: 2003/01/29 16:40:18
since SWFIT1.0
Sets all text clips invisible, and only the selected clip visible.
i = 0;
while (i < num_font)
{
setProperty (eval ("font_file_" add i), _visible, i == cur_font);
i++;
}
Set the selected font data.
font_name = eval ("font_name_" add cur_font);
font_desc = eval ("font_desc_" add cur_font);
font_link = eval ("font_link_" add cur_font);
font_file = eval ("font_file_" add cur_font);
Handle the "auto-clearing" text field.
which_textfield = "display";
display_text_start = "type here to test drive fonts";
#include "../_scripts/ClearTextFieldLoop.as"
display = (display_text ne display_text_start) ? display_text : "";
|
|