Results 1 to 3 of 3

Thread: XML text links

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default XML text links

    I have code for an automatic scroll content and the XML looks like this
    Code:
     <?xml version="1.0" encoding="utf-8" ?> 
    - <events>
      <photo scroller="Scrolling content Scrolling content Scrolling content Scrolling content Scrolling content" /> 
      </events>
    Does anyone have an idea how to drop a link in for a specific part of the text?

    I tried something like this
    Code:
     <?xml version="1.0" encoding="utf-8" ?> 
    - <events>
      <photo scroller="Scrolling <a href="http://www.site.com" target="_blank">content</a> Scrolling content" /> 
      </events>
    And that made my content in the flash site 'undefined' so I am drawing blanks here. Any help would be great.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    maybe

    Code:
    <photo scroller="Scrolling <a href=\"http://www.site.com\" target=\"_blank\">content</a> Scrolling content" /> 
      </events>
    thats only part of it but make sense?

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by nate51 View Post
    And that made my content in the flash site 'undefined' so I am drawing blanks here.
    Yeah, the extra quotes and brackets confuses the XML parser. If you want to include the link directly in the XML node value, use <![CDATA[]]>. For this to work though, your text field should be set up to parse HTML and you should pass the value via the TextField.htmlText property.

    More info: http://kb.adobe.com/selfservice/view...nalId=tn_14808

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
  •