dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: html parsing

  1. #1
    Senior Member Boombanguk's Avatar
    Join Date
    Jun 2000
    Posts
    1,194

    html parsing

    Hi,

    I need to be load in an external .txt file with a url in the text, so that the url link works in the text field, how would i do that?

    thanks for any help.

    regards
    boombanguk

  2. #2
    nobody
    Join Date
    Aug 2002
    Posts
    269
    you can just load an html that uses only html 1.0 tags, with xml commands:

    var content_xml = new XML();
    content_xml.ignoreWhite = true;
    content_xml.onLoad = function() {
    var txt = yourtextfield;
    txt.embedFonts = true;
    txt.autoSize = true;
    txt.wordWrap = true;
    txt.html = true;
    txt.htmlText = content_xml;
    };
    content_xml.load(some.html);
    kra, kra

  3. #3
    nobody
    Join Date
    Aug 2002
    Posts
    269
    To open popups from that text field :

    <a href="javascript:window.open('link.html','n','widt h=400,height=274');" >Text link</a>

    To call function inside flash:

    <a href="asfunction:functionInFlash,attribute" >Text link</a>
    kra, kra

  4. #4
    Senior Member Boombanguk's Avatar
    Join Date
    Jun 2000
    Posts
    1,194
    but what would the external text file look like? could it just be plain text? with html (1.0) tags? or would it need to be encased in xml??

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center