<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[5D Home]]></title> 
<link>http://www.5dhome.net/myblog/index.php</link> 
<description><![CDATA[PHP, Typo3 CMS, Typolight CMS, Javascript, Jquery, Windows, Linux, iphone]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[5D Home]]></copyright>
<item>
<link>http://www.5dhome.net/myblog/read.php?235</link>
<title><![CDATA[Flash获取PHP脚本变量]]></title> 
<author>曼查罗 &lt;34n.sam@gmail.com&gt;</author>
<category><![CDATA[flash]]></category>
<pubDate>Wed, 21 Oct 2009 02:27:07 +0000</pubDate> 
<guid>http://www.5dhome.net/myblog/read.php?235</guid> 
<description>
<![CDATA[ 
	<strong><span style="font-size: 14px;"><span style="color: #66FF00;">code of test.php:</span></span></strong><br/>[codes=php]<br/><?php<br/>$output = "var1=111&var2=222&var3=333";<br/>echo $output;<br/>?><br/>[/codes]<br/><br/><strong><span style="font-size: 14px;"><span style="color: #66FF00;">code of flash action:</span></span></strong><br/>[codes=js]<br/>loadvar = new LoadVars();<br/>loadvar.onLoad = function(success) &#123;<br/>if (success) &#123;<br/>trace(this.var1);<br/>trace(this.var2);<br/>...<br/>&#125;<br/>&#125;<br/>//这里用的是绝对路径<br/>loadvar.load("http://域名/test.php");<br/>[/codes]<br/>Tags - <a href="http://www.5dhome.net/myblog/tag.php?tag=php" rel="tag">php</a> , <a href="http://www.5dhome.net/myblog/tag.php?tag=flash" rel="tag">flash</a>
]]>
</description>
</item><item>
<link>http://www.5dhome.net/myblog/read.php?220</link>
<title><![CDATA[Flash层的深度问题]]></title> 
<author>曼查罗 &lt;34n.sam@gmail.com&gt;</author>
<category><![CDATA[flash]]></category>
<pubDate>Tue, 27 May 2008 04:15:32 +0000</pubDate> 
<guid>http://www.5dhome.net/myblog/read.php?220</guid> 
<description>
<![CDATA[ 
	1、获得某对象所在的深度 <br /><span style="color: #66cc00">MovieClip.getDepth&nbsp;&nbsp; </span><br /><br />2、获得某个深度处的实例对象 <br /><span style="color: #66cc00">MovieClip.getInstanceAtDepth&nbsp;&nbsp;</span><br /><br />3、获得下一个可用的最高深度 <br /><span style="color: #66cc00">MovieClip.getNextHighestDepth&nbsp;&nbsp;</span><br /><br />4、交换深度 <br /><span style="color: #66cc00">MovieClip.swapDepths() </span><br /><br />5、使对象处在最上面 <br /><span style="color: #66cc00">mx.behaviors.DepthControl.bringToFront(MovieClip)</span><br/>Tags - <a href="http://www.5dhome.net/myblog/tag.php?tag=flash" rel="tag">flash</a>
]]>
</description>
</item><item>
<link>http://www.5dhome.net/myblog/read.php?105</link>
<title><![CDATA[屏蔽Flash右键菜单]]></title> 
<author>曼查罗 &lt;34n.sam@gmail.com&gt;</author>
<category><![CDATA[flash]]></category>
<pubDate>Wed, 27 Dec 2006 03:20:20 +0000</pubDate> 
<guid>http://www.5dhome.net/myblog/read.php?105</guid> 
<description>
<![CDATA[ 
	屏蔽右键，在flash的第一帧加入action：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">Stage.showMenu=false;</div></div><br/><br/><br/>让Flash的右键放大、缩小菜单失效，基本上等于屏蔽右键了。在flash的第一帧加入action<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">right = new Object();<br/>right.onMouseMove = function() &#123;<br/>Stage.scaleMode = &quot;noScale&quot;;<br/>&#125;;<br/>Mouse.addListener(right);</div></div><br/>Tags - <a href="http://www.5dhome.net/myblog/tag.php?tag=flash" rel="tag">flash</a>
]]>
</description>
</item><item>
<link>http://www.5dhome.net/myblog/read.php?40</link>
<title><![CDATA[make perfect circle]]></title> 
<author>曼查罗 &lt;34n.sam@gmail.com&gt;</author>
<category><![CDATA[flash]]></category>
<pubDate>Fri, 20 Oct 2006 16:29:26 +0000</pubDate> 
<guid>http://www.5dhome.net/myblog/read.php?40</guid> 
<description>
<![CDATA[ 
	[codes=js]<br/>/* Using that control point for a 45-degree arc,<br/>we can connect eight such arcs to form a circle (45 * 8 = 360) with its<br/>center at x=100, y=100 and radius = 80 pixels:<br/>*/<br/><br/>MovieClip.prototype.drawCircle = function(r, x, y) &#123;<br/> &nbsp;this.moveTo(x+r, y);<br/> &nbsp;a = Math.tan(22.5 * Math.PI/180);<br/><br/> &nbsp;for (var angle = 45; angle&lt;=360; angle += 45) &#123;<br/> &nbsp; &nbsp;// endpoint:<br/> &nbsp; &nbsp;var endx = r*Math.cos(angle*Math.PI/180);<br/> &nbsp; &nbsp;var endy = r*Math.sin(angle*Math.PI/180);<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;// control:<br/> &nbsp; &nbsp;// (angle-90 is used to give the correct sign)<br/> &nbsp; &nbsp;var cx =endx + r*a*Math.cos((angle-90)*Math.PI/180);<br/> &nbsp; &nbsp;var cy =endy + r*a*Math.sin((angle-90)*Math.PI/180);<br/> &nbsp; &nbsp;this.curveTo(cx+x, cy+y, endx+x, endy+y);<br/> &nbsp;&#125;<br/>&#125;<br/><br/>var c80 = this.createEmptyMovieClip(&quot;c&quot;, 1);<br/>c80.lineStyle(1, 0xaaaaaa, 100);<br/>c80.beginFill(0xcccccc, 100);<br/>c80.drawCircle(80, 100, 100);<br/>c80.endFill(); <br/>[/codes]<br/><br/>Tags - <a href="http://www.5dhome.net/myblog/tag.php?tag=flash" rel="tag">flash</a>
]]>
</description>
</item><item>
<link>http://www.5dhome.net/myblog/read.php?39</link>
<title><![CDATA[Action Script分区画圆]]></title> 
<author>曼查罗 &lt;34n.sam@gmail.com&gt;</author>
<category><![CDATA[flash]]></category>
<pubDate>Fri, 20 Oct 2006 06:49:59 +0000</pubDate> 
<guid>http://www.5dhome.net/myblog/read.php?39</guid> 
<description>
<![CDATA[ 
	初涉Flash as有点茫然, 可能走了弯路, 但是会继续努力的<br/><br/>[codes=js]<br/>createEmptyMovieClip(&quot;drawing_mc&quot;,1);<br/>drawing_mc._y = 200;<br/>drawing_mc._x = 400;<br/>drawing_mc.lineStyle(1, 0xCCCCCC);<br/><br/>xpos = 200;<br/>ypos = 0;<br/><br/>for(i=0; i&lt;160; i++)&#123;<br/> &nbsp; &nbsp;var area;<br/> &nbsp; &nbsp;drawing_mc.moveTo(0,ypos);<br/> &nbsp; &nbsp;drawing_mc.lineTo(xpos,0);<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;if((xpos&gt;0 &amp;&amp; xpos&lt;=200) &amp;&amp; (ypos&gt;=0 &amp;&amp; ypos&lt;200))&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;area = 1;<br/> &nbsp; &nbsp;&#125;else if((xpos&lt;=0 &amp;&amp; xpos&gt;-200) &amp;&amp; (ypos&gt;0 &amp;&amp; ypos&lt;=200))&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;area = 2;<br/> &nbsp; &nbsp;&#125;else if((xpos&lt;0 &amp;&amp; xpos&gt;=-200) &amp;&amp; (ypos&lt;=0 &amp;&amp; ypos&gt;-200))&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;area = 3;<br/> &nbsp; &nbsp;&#125;else if((xpos&gt;=0 &amp;&amp; xpos&lt;200) &amp;&amp; (ypos&lt;0 &amp;&amp; ypos&gt;=-200))&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;area = 4;<br/> &nbsp; &nbsp;&#125;<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp;switch(area)&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;case 1:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xpos=xpos-5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ypos=ypos+5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp;case 2:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xpos=xpos-5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ypos=ypos-5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp;case 3:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xpos=xpos+5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ypos=ypos-5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp; &nbsp; &nbsp;case 4:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xpos=xpos+5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ypos=ypos+5;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br/> &nbsp; &nbsp;&#125;<br/>&#125;<br/>[/codes]<br/><br/><br/>Tags - <a href="http://www.5dhome.net/myblog/tag.php?tag=flash" rel="tag">flash</a>
]]>
</description>
</item><item>
<link>http://www.5dhome.net/myblog/read.php?38</link>
<title><![CDATA[flash连接asp程序]]></title> 
<author>曼查罗 &lt;34n.sam@gmail.com&gt;</author>
<category><![CDATA[flash]]></category>
<pubDate>Fri, 20 Oct 2006 06:46:50 +0000</pubDate> 
<guid>http://www.5dhome.net/myblog/read.php?38</guid> 
<description>
<![CDATA[ 
	asp 输出<br/>asp最终输出的形势为<br/>var1=value1&amp;var2=value2&amp;var3=value3<br/>的这种输出格式,注意变量之间不能有空格<br/><br/><div class="code"><br/>flash 处理<br/>ASP = new LoadVars(); //定义对象<br/>ASP.sendAndLoad(&quot;http://你的域名/navigation.asp?nocache=&quot;+random(65000),ASP,&quot;GET&quot;);<br/>ASP.onLoad=aspLoad;<br/>function aspLoad()&#123;<br/>//处理接收到的变量<br/>trace(ASP.var1);<br/>trace(ASP.var2);<br/>trace(ASP.var3);<br/>&#125; <br/></div><br/>Tags - <a href="http://www.5dhome.net/myblog/tag.php?tag=flash" rel="tag">flash</a> , <a href="http://www.5dhome.net/myblog/tag.php?tag=asp" rel="tag">asp</a>
]]>
</description>
</item>
</channel>
</rss>