dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: problems getting the links to show

  1. #1
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707

    problems getting the links to show

    hi all....i have a news database that is processed to xml for reading posts. At present, i can not get Flash to read the xml links. For example, one post has this sentence, mid-paragraph:

    Code:
    I posted a <a href="http://www.website.com"><b>time lapse video</b></a> of the process last week.
    when i trace the xml output, it looks fine....on stage, all the posts load, except when a link loads, it cuts off the rest of that post....so the above would just read

    Code:
    I posted a
    my AS to make the text box is:
    Code:
    postedNews = imageBox.createEmptyMovieClip("postedNews", 200);
    	var postedNewsTx:TextField = postedNews.createTextField("postedNewsTx", 0, 0, 0, 450, 0);
    	postedNewsTx.selectable = false;
    	postedNewsTx.autoSize = true;
    
    	postedNewsTx.html = true;
    	postedNewsTx.wordWrap = true;
    	postedNewsTx.multiline = true;
    	postedNewsTx.styleSheet = fmStylesSheet;
    	postedNewsTx.htmlText = "<p class='postedText'>"+newsText+"</p>";
    extra strings that may help you: xml is created from php, and i am first loading an external stylesheet to fromate the postedNewsTx box.

    any help would be great
    thanks

  2. #2
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707
    just to add....when running a trace of that excerpt above, i get:
    It&apos;s

    i'm lost

  3. #3
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Wrap that node in a CDATA tag in your XML to use native HTML. There is an example in the stickie in this forum.

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