Professional Web Applications Themes

html - Macromedia Flash Sitedesign

what tags are supported in the HTML renderer for text boxes...

  1. #1

    Default html

    what tags are supported in the HTML renderer for text boxes
    mad Guest

  2. #2

    Default Re: html

    Here is a list of the supported tags and their attributes:

    Anchor tag (<a>) supports the attributes href and target

    bold tag (<b>)

    Break tag (<br>)

    Font tag (<font>) supports the attributes color(hex only), face and size.

    Image tag (<img>) supports the attributes src, id, width, height, align and
    vspace.

    Italic tag (<i>)

    List item tag (<li>)

    Paragraph tag (<p>) supports the attributes align and class

    Span tag (<span>) supports the attribute class.

    Text format tag (<textformat>) has the attributes blockindent, indent,
    leading, rightmargin, tabstops

    Underline tag (<u>)


    I think that should be all.

    Leon Guest

  3. #3

    Default HTML

    Hello,

    Is it possible to include a html file in a flash file?

    I want to make a flash website but i want to use html file as textfields
    because the layout is easer to optimise in HTML then in flash.

    I use flash 5 to create my website.

    Can somewhone help me?

    greeting
    Koen



    Keon Guest

  4. #4

    Default Re: HTML

    On Wed, 17 Nov 2004 15:13:21 GMT, "Keon" <be>
    wrote:
     

    Flash supports a limited subset of HTML tags. You can use CSS to
    optimise the HTML that's supported.

    For an example of what's possible, check out my site that uses
    external HTML files extensively.

    http://www.bb-video.net/

    The body of each tutorial is a different external HTML file (depends
    on which page button you click).

    One way to make a HTML page load from a Flash button using CSS for
    formatting follows. The HTML pages need to be modified. DO NOT use the
    head tags! Begin and end with just a <body> tag. As you can see, you
    can make custom tags and call them anything you want. In the example
    below the <M> tag stands for main body and <X1> for a sub heading. The
    tags are nested just like in a regular HTML page and you must close
    innner tages before starting, closoing outer tags.

    Example partial HTML file:

    <body><M><X1>My Web page</X1> more text here...</M></body>

    Example partial external CSS file:

    M{
    color: #FFFFFF;
    font-size: 14;
    font-family: "Tahoma",Arial, Helvetica, sans-serif;
    font-weight: normal;
    margin-left: 6;
    margin-right: 6;
    display: block
    }

    X1 {
    text-align:center;
    color: #A09DA4;
    font-family: sans-serif;
    font-size: 18;
    font-weight: bold;
    display: block
    }
    .................................................. .............

    The following is in ActionScript and would go on a page button

    on (release) {
    style_sheet = new
    TextField.StyleSheet();
    css_loc = "name of external style sheet.css";
    xml_loc = "name of file.htm";
    style_sheet.load(css_loc);
    style_sheet.onLoad =
    function(ok)
    {
    if(ok)
    {
    loadXML(xml_loc);
    }
    else
    {
    }
    }
    function loadXML(str)
    {
    var xml_loc = str;
    myXML = new XML();
    myXML.onLoad = function()
    {
    // create a Dynamic Text Field named myText_txt
    // values below as follows: name,level, X, Y, width, height
    temptext = myXML.firstChild;
    createTextField("myText_txt",1, 24, 100, 500, 335);
    // set features for newly created text field
    myText_txt.multiline = true;
    myText_txt.wordWrap = true;
    myText_txt.html = true;
    myText_txt.styleSheet = style_sheet;
    myText_txt.htmlText = temptext;
    }
    myXML.load(xml_loc);
    }
    }


    wvg@wideopenwest.com Guest

Similar Threads

  1. HTML <Href Link inside a form (HTML text box)
    By Lingodude in forum Coldfusion Database Access
    Replies: 1
    Last Post: February 15th, 08:31 AM
  2. textArea's and external html files> linking in the html to a new file
    By :\) Morganizer in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 29th, 01:36 PM
  3. Replies: 1
    Last Post: July 15th, 02:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139