A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need help in "<img

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    2

    Question need help in "<img

    i have the following xml in my.xml file:
    Code:
    <s:Schema id="RowsetSchema"></s:Schema>
    <rs:data>
       <z:row ows_Title="News"/>
       <z:row ows_Title="Qatar Media Services launches its new logo" ows_Comments="Qatar Media Services"
    link ="&lt;img alt=&quot;&quot; border=0 hspace=0 src=&quot;image002.jpg&quot; style=&quot;border:0px solid&quot;&gt;"/>
    in actionscript i did this
    Code:
    my_xml = new XML();
    my_xml.load("myxml.xml");
    my_xml.onLoad = my_function;
    my_xml.ignoreWhite = 1;
    
    function my_function() {
    
    text_field_1.text = my_xml.firstChild.childNodes[1].childNodes[1].attributes.link
    }
    in text_field_1 the result i have is the following code:
    <img alt="" border=0 src=image002.jpg" style="border:0px solid">

    but i need only:
    image002.jpg
    to be appear as text result (in text_field_1)

    any help please

    thanks


  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    have you tried -

    text_field_1.html = true;
    text_field_1.htmlText = ....

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    2

    yas ,,,

    thanks a_modified_dog for your kindly replay,

    yes i tried it before but nothing works unfortunately

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