Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash caroussel xml解析html链接_Html_Xml_Parsing_Hyperlink_Actionscript 2 - Fatal编程技术网

Flash caroussel xml解析html链接

Flash caroussel xml解析html链接,html,xml,parsing,hyperlink,actionscript-2,Html,Xml,Parsing,Hyperlink,Actionscript 2,您好,我正在尝试修改我在flash中的旋转木马脚本。 它的正常功能是使一些图标在单击时旋转 它们放大、淡入所有其他图像,并显示少量文本。 关于这篇文章,我想有一个像“阅读更多”这样的链接 如果我使用CDATA,它将不会显示任何内容,如果我使用alt char like <a href="www.google.com"> Read more + </a> 它只是将文本显示为:。 flash动态文本

您好,我正在尝试修改我在flash中的旋转木马脚本。 它的正常功能是使一些图标在单击时旋转 它们放大、淡入所有其他图像,并显示少量文本。 关于这篇文章,我想有一个像“阅读更多”这样的链接

如果我使用CDATA,它将不会显示任何内容,如果我使用alt char like

 <a href="www.google.com">  Read more + </a>
它只是将文本显示为:。 flash动态文本框不会将其呈现为html

我不知道如何添加这个。 我的代码:

var-xml:xml=new-xml();
xml.ignoreWhite=true//定义xml
xml.onLoad=函数()
{
var nodes=this.firstChild.childNodes;
numOfItems=nodes.length;

对于(var i=0;iYes),我会将实际url设置为图标的子节点/子节点。在这种方法中,您可以编写一个简单的actionscript来提取url(如下所示):

if(element.nodename.touppercase()=“URL”){ URL=element.firstchild.nodevalue; }

然后设置一个动态文本字段(在旋转木马上)称为“内容”,并启用“将文本呈现为HTML”选项

这样,内容区域中的任何内容都将呈现为html

:)

var xml:XML = new XML();
xml.ignoreWhite = true; //definições do xml

 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.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;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<icons>

<icon image="images/product.swf" tooltip="Product" content="Hello this is some random text
  &#60;a href=&#34;www.google.com&#34;&#62;  Read More + &#60;/a&#62; "/>

</icons>