<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"><channel><title>MagicWing'S Blog</title><link>http://bbs.flash8.net/blogs/magicwing/default.aspx</link><description>灵翼记录的一些东西以及游戏制作心得啥的！</description><dc:language>en-US</dc:language><generator>CommunityServer 1.1 (Build: 1.0.5.38524)</generator><item><title>写了个用FLASH控制弹出窗口的傻瓜代码</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792594.aspx</link><pubDate>Wed, 11 Jan 2006 15:08:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792594</guid><dc:creator /><slash:comments>1</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792594.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792594</wfw:commentRss><description>&lt;P&gt;FLASH控制弹出窗口--傻瓜代码&lt;BR&gt;&lt;BR&gt;看了一下别的教程稍微改了一下，基本属于傻瓜代码了&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;页面部分说明：&lt;BR&gt;&lt;BR&gt;&lt;/STRONG&gt;asd.htm为欲弹出的页面，在&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;之间加入&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#f70909&gt;&amp;lt;script language="JavaScript" type="text/JavaScript"&amp;gt; &lt;BR&gt;function myWindow(theURL,winName,features) { &lt;BR&gt;window.open(theURL,winName,features); &lt;BR&gt;} &amp;lt;/script&amp;gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#010110&gt;OK页面上的事情完成了，就这么简单&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#010110&gt;&lt;B&gt;FLASH部分说明&lt;/B&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0909f7&gt;myurl="asd.htm"//打开地址&lt;BR&gt;myName="MHHF"//窗口名称&lt;BR&gt;myWidth=300//窗口宽度&lt;BR&gt;myHeight=300//窗口高度&lt;BR&gt;myTop="100"//上边距&lt;BR&gt;myLeft="200"//左边距&lt;BR&gt;myToolbar="no"//显示工具烂&lt;BR&gt;myMenubar="yes"//显示菜单&lt;BR&gt;myScrollbars="no"//显示滚动条&lt;BR&gt;myResizable="no"//是否可以改变大小&lt;BR&gt;myLocation="no"//是否显示地址烂&lt;BR&gt;myStatus="no"//是否显示状态烂信息&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#f70909&gt;a1.n="myTollbar"&lt;BR&gt;a2.n="myMenubar"&lt;BR&gt;a3.n="myScrollbars"&lt;BR&gt;a4.n="myResizable"&lt;BR&gt;a5.n="myLocation"&lt;BR&gt;a6.n="myStatus"&lt;BR&gt;function getWindow(){&lt;BR&gt;getURL("BLOCKED SCRIPTmyWindow('"+myurl+"','"+myName+"','height="+myHeight+",width="+myWidth+",top="+myTop+",left="+myLeft+",toolbar="+myToolbar+",menubar="+myMenubar+",scrollbars="+myScrollbars+",resizable="+myResizable+",location="+myLocation+",status="+myStatus+"')")&lt;BR&gt;}&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#010110&gt;兰色代码部分可以自行修改&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="" title=控制弹出窗口代码 href="http://www.mhhf.net/mwbbs/images/upload/2005/11/23/220438.rar" target=""&gt;&lt;FONT color=#000099&gt;&lt;STRONG&gt;原文件下载&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792594" width="1" height="1"&gt;</description></item><item><title>用FLASH制作GOOGL搜索</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792588.aspx</link><pubDate>Wed, 11 Jan 2006 14:59:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792588</guid><dc:creator /><slash:comments>0</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792588.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792588</wfw:commentRss><description>&lt;P&gt;这个用FLASH制作的google搜索非常简单，输入你要搜索的内容，点按钮立刻就能弹出你要搜素的内容，只不过是引用了GOOGLE的一个地址&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="" title="FLASH GOOGLS搜索" href="http://www.mhhf.net/mwbbs/images/upload/2005/11/23/141358.rar" target=""&gt;&lt;FONT color=#000099&gt;&lt;STRONG&gt;原文件下载&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;

&lt;/P&gt;&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792588" width="1" height="1"&gt;</description></item><item><title>FLASH8中的计算2点之间距离</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792586.aspx</link><pubDate>Wed, 11 Jan 2006 14:53:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792586</guid><dc:creator /><slash:comments>1</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792586.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792586</wfw:commentRss><description>&lt;P&gt;发现这个8里面的计算2点间的距离代码是挺好用的呵呵&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000cc&gt;import flash.geom.Point;&lt;/FONT&gt; &amp;nbsp; &lt;FONT color=#ff0000&gt;//计算一个点到另一个点之间的距离&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000cc&gt;a1= new Point(x,y);&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#ff0000&gt;//A点坐标&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000cc&gt;a2= new Point(m._x, m._y);&lt;/FONT&gt;&amp;nbsp; &lt;FONT color=#ff0000&gt;//B点坐标&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000cc&gt;a3=Point.distance(a1, a2);&lt;/FONT&gt; &lt;FONT color=#f70909&gt;//a3为a1点到a2点的距离&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;不错好玩呵呵！&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792586" width="1" height="1"&gt;</description></item><item><title>前一阶段研究的一注释组件再贴上来共享</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792574.aspx</link><pubDate>Wed, 11 Jan 2006 14:34:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792574</guid><dc:creator /><slash:comments>0</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792574.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792574</wfw:commentRss><description>&lt;P&gt;对文字处理不是很精确，不过还算好用了呵呵！&lt;/P&gt;
&lt;P&gt;范例：&lt;/P&gt;
&lt;P&gt;

&lt;/P&gt;
&lt;P&gt;使用方法：&lt;/P&gt;
&lt;P&gt;将TITLE放到主场景中！&lt;/P&gt;
&lt;P&gt;&lt;IMG src="/bbs/UploadFile/2005-11/2005119125145890.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0033&gt;显示注释：_root.titleShow.Show("注释内容")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0033&gt;删除注释：_root.titileShow.unShow()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0909f7&gt;TITLE内&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0909f7&gt;Snum为每一排显示的字符数&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0909f7&gt;way为路径&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0909f7&gt;注释文本最好不要加入“\n”换行&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0033&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0033&gt;&lt;STRONG&gt;&lt;A class="" title=下载注释组件原文件 href="http://www.mhhf.net/downloads.asp?id=6" target=""&gt;下载此组件&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792574" width="1" height="1"&gt;</description></item><item><title>FLASH中输入文本怪问题解决</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792571.aspx</link><pubDate>Wed, 11 Jan 2006 14:17:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792571</guid><dc:creator /><slash:comments>0</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792571.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792571</wfw:commentRss><description>&lt;P&gt;在FLASH中，如果把输入文本设置成为单行输入的格式，则所有输入文字只能在一行中显示！&lt;/P&gt;
&lt;P&gt;在一些情况下仍然可以进行多行输入，比如把SWF放入页面，在输入文本中按住CTRL再ENTER则可以切换到第二行，这个问题比较郁闷的说！&lt;/P&gt;
&lt;P&gt;不知道是不是BUG！&lt;/P&gt;
&lt;P&gt;如何解决这样的问题呢，和朋友研究了一下，必须对输入字符串进行处理！代码如下&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#3300ff&gt;mytxt.onChanged = function(){checkNewline()}&lt;BR&gt;function checkNewline(){&lt;BR&gt;&amp;nbsp;var _len=mytxt.text.length;&lt;BR&gt;&amp;nbsp;for(var i=0;i&amp;lt;_len;i++){&lt;BR&gt;&amp;nbsp;&amp;nbsp;if(mytxt.text.charCodeAt(i)==13){&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var _a=mytxt.text.substr(0,i);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var _b=mytxt.text.substr(i+1,_len);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mytxt.text=_a.concat(_b);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;BR&gt;&amp;nbsp;&amp;nbsp;}&lt;BR&gt;&amp;nbsp;}&lt;BR&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;当输入框状态发生变化的时候，用以上函数来检查输入文本的字符，如果发现CTRL+ENTER的操作则忽略换行符，CODE=13为CTRL+ENTER&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792571" width="1" height="1"&gt;</description></item><item><title>关于改善SWF在HTML下的FPS问题</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792562.aspx</link><pubDate>Wed, 11 Jan 2006 14:14:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792562</guid><dc:creator /><slash:comments>0</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792562.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792562</wfw:commentRss><description>&lt;P&gt;SWF镶入页面后其FPS会明显下降，如果和改善其速度&lt;/P&gt;
&lt;P&gt;现在有一方法可以实现：&lt;/P&gt;
&lt;P&gt;页面代码如&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#009999&gt;&amp;lt;param name="movie" value="test.swf"&amp;gt;&lt;BR&gt;&amp;lt;param name="quality" value="MEDIUM"&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color=#ff0000&gt;&amp;lt;param name="wmode" value="opaque" /&amp;gt;&lt;/B&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;增加红色字体部分，可以明显改善SWF在页面中的运行速度！&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792562" width="1" height="1"&gt;</description></item><item><title>刚申请。测试中</title><link>http://bbs.flash8.net/blogs/magicwing/archive/2006/01/11/1792486.aspx</link><pubDate>Wed, 11 Jan 2006 12:13:00 GMT</pubDate><guid isPermaLink="false">240926df-9980-43c6-bf94-e601873829a3:1792486</guid><dc:creator /><slash:comments>0</slash:comments><comments>http://bbs.flash8.net/blogs/magicwing/comments/1792486.aspx</comments><wfw:commentRss>http://bbs.flash8.net/blogs/magicwing/commentrss.aspx?PostID=1792486</wfw:commentRss><description>测试，请别看&lt;img src="http://bbs.flash8.net/aggbug.aspx?PostID=1792486" width="1" height="1"&gt;</description></item></channel></rss>