Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4033546
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:51:36+00:00 2026-05-20T11:51:36+00:00

I have two requirements, and im not sure is those things possible in AS3.

  • 0

I have two requirements, and im not sure is those things possible in AS3.
Anyway I’ll explain what I want.

first, I need to show an <hr/> tag after the description, its an rss widget so need to seperate with each rss post with a border or hr. Its not possible to make it manually because its came from xml. I’ll give you the existing script with me.

second, I need to add utm tag after the urls to trace the clicks, this is actually I need to add after the links ‘utm_source=rsswidget’, you’ll get an idea by seeing the script below

   var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);

var xml:XML;

function onLoaded(e:Event):void
{
var style:StyleSheet = new StyleSheet();
style.setStyle(".heading", {fontWeight:"bold", color:"#6184b7", fontSize:12});
style.setStyle("body", {fontStyle:"italic"});

xml = new XML(e.target.data);
    var il:XMLList = xml.channel.item;
    for(var i:uint=0; i<il.length(); i++)
    {

t.setStyle("styleSheet", style);
t.htmlText = "<a href='"+il.link.text()[0]+"' class='heading'>"+il.title.text()[0]+"</a>"+"\<br />"+il.description.text()[0]+"\<br/><br/>"+"<a href='"+il.link.text()[1]+"' class='heading'>"+il.title.text()[1]+"</a>"+"\<br />"+il.description.text()[1]+"\<br /><br />"+"<a href='"+il.link.text()[2]+"' class='heading'>"+il.title.text()[2]+"</a>"+"\<br />"+il.description.text()[2];
    }

}

t stands for text area.

hope your replies get soon..

Paul

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:51:36+00:00Added an answer on May 20, 2026 at 11:51 am

    The HR tag isn’t supported in Actionscript. My suggestion would be to just use a loop to parse through all of your XML elements, and add the HR visuals as movieclips from your library after every entry… perhaps like so (btw, this is all pseudo-code – I haven’t tested it):

    var xmlData:String = "<channel><item><link>My link</link> <description>My description</description> </item> <item> <link>My link</link> <description>My description</description> </item> <item> <link>My link</link> <description>My description</description> </item>  <item> <link>My link</link> <description>My description</description> </item> </channel>"
    var xml:XML = new XML(xmlData);
    
    var buffer = 5
    var ypos = 0
    
    for(var i:uint=0; i<xml.item.length(); i++){
        // create the textfield and populate it with your data
        var t = new TextField()
        t.border = true
        t.autoSize = TextFieldAutoSize.LEFT
        t.multiline = true
        t.wordWrap = true
        t.y = ypos
        t.htmlText = "<a href='"+xml.item[i].link+"' class='heading'>"+xml.item[i].link+"</a>"+"\<br />"+xml.item[i].description
        this.addChild(t)
    
        // create one HR
        var hr = new HorizontalLine() // this would be a movieclip in your library with the linkage HorizontalLine
        hr.y = t.y + t.height + buffer
        this.addChild(hr)
    
            // positioning
        ypos = hr.y + buffer
    }
    

    Also, here’s an FLA saved to CS4 if you’re still stuck: http://clearmpls.com/temp/xml-list.zip

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have two opposing requirements related to an xml document and its related xsd.
I have a very creative requirement - I am not sure if this is
Our c# project requires two things on the target computer to run. The first
I have a string I need to parse. It meets the following requirements: It
Say I have two classes and have a requirement that the primary key property
Can i add two header text in Datagrid? My Requirement is to have two
I have a requirement to create two different maps in C++. The Key is
Have two folders with approx. 150 java property files. In a shell script, how
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two tables images2 and image_data So the goal is to have 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.