#
# Dynamic HTML with Swftools http://www.swftools.org/   
#
# version 2 without fonts embeded (only one dummy font with little size)   
# 
#
.flash bbox=400x600 version=6 name="dynhtml2.swf" compress
        .box fond width=399 height=599 color=gray fill=salmon line=3
        .font default "../font/SFAutomaton.pfb"
        .edittext htm text="<font color='#0000ff'><u><a href='http://www.swftools.org' target='_blank'>http://www.swftools.org</a></u></font> << here is a link\n<font color='#ff0000'>text in red</font>\n<br><font size='30'>size is 30.</font><br>" color=black font=default size=40% width=380 height=100 html multiline wordwrap readonly variable=htmltext
        .edittext htm2 text="" color=black font=default size=40% width=380 height=100 html multiline wordwrap readonly variable=htmltext        
        .edittext htm3 text="" color=black font=default size=40% width=380 height=100 html multiline wordwrap readonly variable=htmltext        
        .edittext htmtext text="" color=#ff6666 font=default size=40% width=380 height=160 multiline wordwrap border variable=htmltext  
        .edittext listfonts text="" color=#ff6666 font=default size=40% width=380 height=80 multiline readonly wordwrap variable=fontlist       
        
.action:
        System.useCodePage = true;
        htm.embedFonts = 0;
        htm2.embedFonts = 0;
        htm3.embedFonts = 0;
        htmtext.embedFonts = 0;
        listfonts.embedFonts = 0;
        var loadStyle = htm.getTextFormat();
        loadStyle.font = "_sans";
        htm.setTextFormat(loadStyle);
        var loadStyle2 = htm2.getTextFormat();
        loadStyle2.font = "_serif";
        htm2.setTextFormat(loadStyle2);
        var loadStyle3 = htm3.getTextFormat();
        loadStyle3.font = "Arial";
        htm3.setTextFormat(loadStyle3);
        var loadStyleText = htmtext.getTextFormat();
        loadStyleText.font = "_sans";
        htmtext.setTextFormat(loadStyleText);
        a_fontlist = new Array();
        a_fontlist = TextField.getFontList();
        a_fontlist.Sort();
        fontlist = "List of system fonts ("+ a_fontlist.length + ") :\n"; 
        listlength = a_fontlist.length;
        for(i=0; i<=listlength+1; i++) {
        fontlist = fontlist + a_fontlist[i] + "\n";
        }
        var loadStyleList = listfonts.getTextFormat();
        loadStyleList.font = "_sans";
        loadStyleList.color = 0xc0bb00;
        loadStyleList.bullet = true;
        listfonts.setTextFormat(loadStyleList);
.end
#
# Place Objects
#
        .put fond
        .put htm x=10 y=10
        .put htm2 x=10 y=110
        .put htm3 x=10 y=220
        .put htmtext x=10 y=330
        .put listfonts x=10 y=505
.end # End swf movie