<?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; flash</title>
	<atom:link href="http://www.yuwuxing.com/category/webdesign/flash/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>通过实例 onEnterFrame 制作简单动画 来了解onEnterFrame</title>
		<link>http://www.yuwuxing.com/use-onenterframe-make-simple-flash/</link>
		<comments>http://www.yuwuxing.com/use-onenterframe-make-simple-flash/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 08:58:18 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=18</guid>
		<description><![CDATA[<p>通过一段代码来了解onEnterFrame的具体作用</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%2Fuse-onenterframe-make-simple-flash%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%2Fflash-mask-div-solution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%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%2Fuse-onenterframe-make-simple-flash%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%2Ftransfer-the-swf-in-flash-by-xml%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[进阶]通过外部XML文件加载外部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%2Fsifr%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%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>在舞台新建一个影片剪辑，实例名为line，样子就随便画个长条</p>
<p><textarea class="code" rows="10" cols="50">textwidth&nbsp;=&nbsp;200;&nbsp;this.onEnterFrame&nbsp;=&nbsp;function()&nbsp;{&nbsp;this.line._width&nbsp;+=&nbsp;textwidth/this._totalframes;&nbsp;};</textarea> onEnterFrame 在FLASH 帮助文件中的说明
<p class="code"><code>onEnterFrame（MovieClip.onEnterFrame&nbsp;处理函数）&nbsp;onEnterFrame&nbsp;=&nbsp;function()&nbsp;{}&nbsp;以&nbsp;SWF&nbsp;文件的帧频重复调用。分配给&nbsp;onEnterFrame&nbsp;事件处理函数的函数将在附加到受影响的帧上的所有&nbsp;ActionScript&nbsp;代码之前处理。&nbsp;必须定义一个在调用事件处理函数时执行的函数。您可以在时间轴上定义该函数，也可以在扩展&nbsp;MovieClip&nbsp;类或链接到库中的元件的类文件中定义该函数。&nbsp;一旦满足阻止&nbsp;Flash&nbsp;Player&nbsp;调用已定义函数的条件，将&nbsp;onEnterFrame&nbsp;事件处理函数的值设置为&nbsp;null。&nbsp;可用性：ActionScript&nbsp;1.0、Flash&nbsp;Player&nbsp;6&nbsp;示例下面的示例为&nbsp;onEnterFrame&nbsp;事件处理函数定义一个函数，该函数将&nbsp;trace()&nbsp;动作发送到&quot;输出&quot;面板：&nbsp;my_mc.onEnterFrame&nbsp;=&nbsp;function&nbsp;()&nbsp;{&nbsp;trace(&quot;onEnterFrame&nbsp;called&quot;);&nbsp;}</code></p>
<p> 个人理解onEnterFrame的作用就是逐帧执行函数中的代码，以上范例就是逐帧增加this.line._width的值达到动画效果</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%2Fuse-onenterframe-make-simple-flash%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%2Fflash-mask-div-solution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%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%2Fuse-onenterframe-make-simple-flash%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%2Ftransfer-the-swf-in-flash-by-xml%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[进阶]通过外部XML文件加载外部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%2Fsifr%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-onenterframe-make-simple-flash%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/use-onenterframe-make-simple-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash中用attachMovie复制元件置于舞台的方法</title>
		<link>http://www.yuwuxing.com/use-attachmovie-copy-element-in-stage/</link>
		<comments>http://www.yuwuxing.com/use-attachmovie-copy-element-in-stage/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 02:55:09 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=17</guid>
		<description><![CDATA[<p>今天研究了flash中用attachMovie复制元件置于舞台的方法，有几个位置需要注意</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%2Fuse-attachmovie-copy-element-in-stage%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%2Fflash-mask-div-solution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%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-onenterframe-make-simple-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%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%2Ftransfer-the-swf-in-flash-by-xml%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[进阶]通过外部XML文件加载外部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%2Fsifr%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%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 class="code"><code>function&nbsp;copybtn()&nbsp;{&nbsp;//此函数用来生成按钮&nbsp;nums&nbsp;=&nbsp;10;//复制的个数&nbsp;for&nbsp;(var&nbsp;j&nbsp;=&nbsp;1;&nbsp;j&lt;=nums;&nbsp;j++)&nbsp;{&nbsp;//复制库里的mc，并将其置于舞台上，分配好各自的坐标&nbsp;_root.attachMovie(&quot;round&quot;,&nbsp;&quot;abc&quot;+j+&quot;_mc&quot;,&nbsp;100+j);&nbsp;_root[&quot;abc&quot;+j+&quot;_mc&quot;]._x&nbsp;=&nbsp;19.5+30*(j-1);&nbsp;_root[&quot;abc&quot;+j+&quot;_mc&quot;]._y&nbsp;=&nbsp;186.5;&nbsp;}&nbsp;}</code></p>
<p> _root.attachMovie(&quot;round&quot;, &quot;abc&quot;+j+&quot;_mc&quot;, 100+j); 这句是重点，三个参数分别为 <b>round</b> 库里面的元件的标示符，在库中选择元件，右键点击选择链接，按如下图设置 <img src="/wp-content/uploads/200803061101545444.jpg" alt="" title=""/> <b>&quot;abc&quot;+j+&quot;_mc&quot;</b> 这个是置于舞台后的实例名 <b>100+j</b> 这个是置于舞台后的深度，数字大的上面</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%2Fuse-attachmovie-copy-element-in-stage%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%2Fflash-mask-div-solution%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%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-onenterframe-make-simple-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%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%2Ftransfer-the-swf-in-flash-by-xml%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[进阶]通过外部XML文件加载外部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%2Fsifr%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fuse-attachmovie-copy-element-in-stage%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/use-attachmovie-copy-element-in-stage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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%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%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%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%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%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%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>
		<item>
		<title>FLASH的外部调用SWF的方法</title>
		<link>http://www.yuwuxing.com/how-to-transfer-the-swf-in-flash/</link>
		<comments>http://www.yuwuxing.com/how-to-transfer-the-swf-in-flash/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 06:37:18 +0000</pubDate>
		<dc:creator>雨无形</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.yuwuxing.com/?p=15</guid>
		<description><![CDATA[<p>此代码是用来在flash中调用外部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%2Fuse-onenterframe-make-simple-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%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%2Fhow-to-transfer-the-swf-in-flash%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%2Ftransfer-the-swf-in-flash-by-xml%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[进阶]通过外部XML文件加载外部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-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%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%2Fhow-to-transfer-the-swf-in-flash%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 class="code"><code>&nbsp;var&nbsp;ad&nbsp;=&nbsp;&quot;ad/1.swf&quot;;&nbsp;container._lockroot&nbsp;=&nbsp;true;&nbsp;var&nbsp;my_mcl&nbsp;=&nbsp;new&nbsp;MovieClipLoader();&nbsp;my_mcl.loadClip(_root.ad,&nbsp;_root.container);&nbsp;</code></p>
</p>
<p>说明：</p>
<p>ad为定义外部flash地址</p>
<p>container._lockroot = true;</p>
<p>flash的帮助文件中介绍如下：</p>
<blockquote><p>一个布尔值，指定将 SWF 文件加载到影片剪辑中时 <code>_root</code> 引用的内容。默认情况下，<code><span class="searchhilite"><code>_lockroot</code></span></code> 属性为 <code>undefined</code>。您可以在正在被加载的 SWF 文件中或正在加载该影片剪辑的处理函数中设置此属性。</p>
<p>例如，假设您有一个名为 Games.fla 的文档，用于让用户选择要玩的游戏并将该游戏（例如 Chess.swf）加载到 <code>game_mc</code> 影片剪辑中。请确保，在加载到 Games.swf 中之后，在 Chess.swf 中对 <code>_root</code> 的任何使用都指向 Chess.swf 中的 <code>_root</code>（而非 Games.swf 中的 <code>_root</code>）。如果对 Chess.fla 具有访问权限并将其发布到 Flash Player 7 或更高版本，则可以将此语句添加到 Chess.fla 的主时间轴上</p>
</blockquote>
<p>my_mcl.loadClip(_root.ad, _root.container);中前面是flash地址，后面是想要在哪里调用。</p>
<p>源码下载：<a href="http://www.yuwuxing.com/wp-content/uploads/flash外部调用.rar" target="_blank">flash外部调用.rar</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%2Fuse-onenterframe-make-simple-flash%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%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%2Fhow-to-transfer-the-swf-in-flash%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%2Ftransfer-the-swf-in-flash-by-xml%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[进阶]通过外部XML文件加载外部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-attachmovie-copy-element-in-stage%2F&from=http%3A%2F%2Fwww.yuwuxing.com%2Fhow-to-transfer-the-swf-in-flash%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%2Fhow-to-transfer-the-swf-in-flash%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/how-to-transfer-the-swf-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

