<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>雨无形的BLOG &#187; xml</title>
	<atom:link href="http://www.yuwuxing.com/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuwuxing.com</link>
	<description>关注互联网发展</description>
	<lastBuildDate>Fri, 23 Dec 2011 04:00:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>[进阶]通过外部XML文件加载外部SWF动画</title>
		<link>http://www.yuwuxing.com/transfer-the-swf-in-flash-by-xml/</link>
		<comments>http://www.yuwuxing.com/transfer-the-swf-in-flash-by-xml/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 09:25:45 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=16</guid>
		<description><![CDATA[<p>在上一篇的基础上提高，通过调用外部XML文件来控制加载的SWF</p><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">FLASH的外部调用SWF的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过实例 onEnterFrame 制作简单动画 来了解onEnterFrame</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">div层总是被flash层遮盖的解决方案</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">flash中用attachMovie复制元件置于舞台的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsifr%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">sIFR文本替换技术</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>实现这个效果真是一波三折，花了一天多实现在研究清楚</p>
<p>实现代码如下：</p>
<p>&nbsp;</p>
<p><textarea class="code" rows="10" cols="50">&nbsp;var&nbsp;myXML:XML&nbsp;=&nbsp;new&nbsp;XML();&lt;br&nbsp;/&gt;myXML.ignoreWhite&nbsp;=&nbsp;true;&lt;br&nbsp;/&gt;myXML.load(&quot;test.xml&quot;);&lt;br&nbsp;/&gt;myXML.onLoad&nbsp;=&nbsp;function(suc)&nbsp;{&lt;br&nbsp;/&gt;&nbsp;if&nbsp;(suc)&nbsp;{&lt;br&nbsp;/&gt;&nbsp;&nbsp;loadStart();&lt;br&nbsp;/&gt;&nbsp;&nbsp;//载入完成后执行loadStart函数&lt;br&nbsp;/&gt;&nbsp;}&lt;br&nbsp;/&gt;};&lt;br&nbsp;/&gt;var&nbsp;myCL:MovieClipLoader&nbsp;=&nbsp;new&nbsp;MovieClipLoader();&lt;br&nbsp;/&gt;function&nbsp;loadStart()&nbsp;{&lt;br&nbsp;/&gt;&nbsp;var&nbsp;swfurl&nbsp;=&nbsp;String(myXML.firstChild.childNodes[1].childNodes[1].firstChild);&lt;br&nbsp;/&gt;&nbsp;myCL.loadClip(swfurl,&nbsp;_root.container);&lt;br&nbsp;/&gt;}</textarea></p>
<p>研究中出现的问题：</p>
<p>一、强制转换数据类型</p>
<p>a=String(b);</p>
<p>可以把b的类型转换成字符串赋予a</p>
<p>二、查看变量类型</p>
<p>trace(typeof(a));</p>
<p>可查看a的变量类型</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">FLASH的外部调用SWF的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过实例 onEnterFrame 制作简单动画 来了解onEnterFrame</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fflash-mask-div-solution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">div层总是被flash层遮盖的解决方案</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">flash中用attachMovie复制元件置于舞台的方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.yuwuxing.com%2Fsifr%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Ftransfer-the-swf-in-flash-by-xml%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">sIFR文本替换技术</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.yuwuxing.com/transfer-the-swf-in-flash-by-xml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

