Advertisement

01.06.2008 at 01:49PM PST, ID: 23062431
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

Loading external xml to dynamic text field and accepting html tags in flash actionscript 2.0

Asked by thawts in Macromedia Flash, Extensible Markup Language (XML)

Tags: , ,

K so I am loading from an xml file and I have listed the coding below.  I can't seem to be able to store html in the xml file under CONTENT and have it load into my dynamic text field name theText.  Render as html is checked and multiline as well.  If I dont have any html in the xml file it works perfectly but if I put some in the movie fails to load so I am thinking that I am loading the xml wrong and there must be another way to load it to accept the html tags.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
////////////////////////////////////loading the xml file
 
var xml:XML = new XML();
xml.ignoreWhite = true;
 
xml.onLoad = function()
{
	var nodes = this.firstChild.childNodes;
	numOfItems = nodes.length;
	for(var i=0;i<numOfItems;i++)
	{
		var t = home.attachMovie("item","item"+i,i+1);
		t.angle = i * ((Math.PI*2)/numOfItems);
		t.onEnterFrame = mover;
		t.toolText = nodes[i].attributes.tooltip;
		t.content = nodes[i].attributes.content;
		t.destination = nodes[i].attributes.destination;
		t.icon.inner.loadMovie(nodes[i].attributes.image);
		t.r.inner.loadMovie(nodes[i].attributes.image);
		t.icon.onRollOver = over;
		t.icon.onRollOut = out;
		t.icon.onRelease = released;
	}
}
 
/////////////////////////////the xml file
 
<icons>
 
<icon image="products/bodycomplete.png" tooltip="Body Complete" content="hello<br>goodbye" destination="[http://www.afcomponents.com/components/flow_list]"/>
 
<icon image="products/detoxical.png" tooltip="Detoxical" content="ok" />
 
<icon image="products/efaplus.png" tooltip="EFA Plus" content="ok" />
 
</icons>
 
/////////////////////////calling the text
 
theText.htmlText = t.content;
////////theText is the dynamic text file
[+][-]01.06.2008 at 11:20PM PST, ID: 20597464

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Flash, Extensible Markup Language (XML)
Tags: Adobe, Flash, Actionscript 2.0
Sign Up Now!
Solution Provided By: blue-genie
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628