<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[星愿]]></title> 
<link>http://www.starwish.com.cn/index.php</link> 
<description><![CDATA[STARWISH]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[星愿]]></copyright>
<item>
<link>http://www.starwish.com.cn/read.php?112</link>
<title><![CDATA[复制mc，并修改属性]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[Flash as3]]></category>
<pubDate>Thu, 02 Sep 2010 07:57:14 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?112</guid> 
<description>
<![CDATA[ 
	import flash.events.MouseEvent; <br/>for (var i=0; i<5; i++) { &nbsp; &nbsp; &nbsp; &nbsp;<br/>var mc:A_mc=new A_mc; &nbsp; &nbsp; &nbsp; &nbsp; <br/>mc.x=i*50; &nbsp; &nbsp; &nbsp; &nbsp; <br/>this.addChild(mc); &nbsp; &nbsp; &nbsp;<br/>mc.name="mc"+i; &nbsp; &nbsp; &nbsp; <br/>mc.addEventListener(MouseEvent.CLICK,clickHandler); <br/>} <br/>function clickHandler(event:MouseEvent):void { <br/> &nbsp; &nbsp; &nbsp; <br/>trace(event.target.name); <br/> &nbsp; &nbsp; &nbsp;<br/>event.target.y=20; <br/>} <br/> <br/> <br/>//event.target.name &nbsp;<br/>//event.target.y 
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?111</link>
<title><![CDATA[随机取数]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[Flash as3]]></category>
<pubDate>Thu, 02 Sep 2010 07:54:25 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?111</guid> 
<description>
<![CDATA[ 
	两整数之间的随机整数<br/>function randRange(min:Number, max:Number):Number {<br/> &nbsp; &nbsp;var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;<br/> &nbsp; &nbsp;return randomNum;<br/>}<br/>trace(randRange(6,10))<br/><br/><br/><br/>
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?110</link>
<title><![CDATA[java程序员面试]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[饭的天空]]></category>
<pubDate>Wed, 30 May 2007 13:28:56 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?110</guid> 
<description>
<![CDATA[ 
	面试官：熟悉哪种语言<br/>应聘者：Java。<br/>面试官：知道什么叫类么<br/>应聘者：我这人实在，工作努力，不知道什么叫累<br/>面试官：知道什么是包?<br/>应聘者：我这人实在 &nbsp; 平常不带包 也不用公司准备了<br/>面试官：知道什么是接口吗?<br/>应聘者：我这个人工作认真。从来不找借口偷懒<br/>M：知道什么是继承么<br/>Y：我是孤儿没什么可以继承的<br/>M:知道什么叫对象么？<br/>M:知道，不过我工作努力，上进心强，暂时还没有打算找对象。<br/>M：知道多态么？<br/>Y：知道，我很保守的。我认为让心爱的女人为了自已一时的快乐去堕胎是不道德的行为！请问这和Java有什么关系？？ 
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?109</link>
<title><![CDATA[中国是全球唯一绝对不能惹的国家！]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[随便游览]]></category>
<pubDate>Wed, 30 May 2007 08:15:08 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?109</guid> 
<description>
<![CDATA[ 
	中国是全球唯一绝对不能惹的国家！ <br/> <br/>原因是这样的：基地组织曾派出七名恐怖分子袭击中国，结果：一人在炸立交桥时转晕桥上；一人在炸公交车时没挤上车；一人在炸超市时，炸弹遥控器被盗；一人在炸政府大楼时被保安狂揍：&quot;叫你讨薪，叫你上访&quot;，一人成功地炸矿，死伤数百人，潜回基地后，半年没见任何新闻报道，遂被基地组织以&quot;撒谎罪&quot;处决了；一人曾经尝试炸广州，结果刚一出火车站就把炸药包给飞车党抢了，半天没缓过神；一人去炸中国钢铁基地铁岭，被赵本山忽悠了；最近，派一女恐怖分子去炸河南，被骗去做了媳妇 &nbsp;
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?108</link>
<title><![CDATA[application.broadcastMsg]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[FMS 相关]]></category>
<pubDate>Wed, 30 May 2007 05:02:55 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?108</guid> 
<description>
<![CDATA[ 
	1.关于服务器端的 trace()<br/>只要我们在服务器端脚本里面 写入 trace(变量) ,然后我们打开 fms安装文件夹内的 fms2_console.swf 就可以看到输出结果!<br/><br/>2,服务器端向所有客户端发送信息 <br/>application.broadcastMsg<br/>相当于循环遍历application.clients数组,并且在客户端调用 clinet.call()<br/>但是application.broadcastMsg的效率更高<br/> 服务器端代码 <br/>application.broadcastMsg(&quot;showall&quot;,&quot;消息&quot;)<br/> 客户端代码 &nbsp;<br/>client_nc = new NetConnection();<br/>client_nc.showall = function(msg) {<br/> txtChat.text += msg;<br/>};<br/><br/><br/>3.client.referrer 一个很有用处的属性<br/>client.referrer 是返回客户端 swf 文件所在位置的,通过此属性我们可以限制访问
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?107</link>
<title><![CDATA[13亿人口]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[随便游览]]></category>
<pubDate>Tue, 29 May 2007 15:29:34 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?107</guid> 
<description>
<![CDATA[ 
	中国一共有 13亿人口， &nbsp;<br/>其中有 三亿退休， &nbsp;<br/>那就只剩下9亿人工作了； &nbsp; <br/>8亿人在农村， &nbsp;<br/>那 就只剩下一亿人在工作； &nbsp;<br/>二千万是学生， &nbsp; <br/>那只剩下八千万人在工作； &nbsp;<br/>这八千万当中有四千万是政府工作人员， &nbsp;<br/>其中一千万在打牌 ， &nbsp;<br/>一千万在看报， &nbsp;<br/>七百万在厕所， &nbsp;<br/>一千万在聊天， &nbsp;<br/>三百万在打毛衣。 &nbsp;<br/><br/>那只剩下四千万人在工作； &nbsp;<br/>三千万人工作在机关事业单位， &nbsp;<br/>只剩下一千万人在工作； &nbsp;<br/>剩下的人里， &nbsp;<br/>有三百万是军人， &nbsp;<br/>只剩 下七百万人做工作； &nbsp;<br/>在任意的时间里， &nbsp;<br/>全国各医院都共有二百八十五万三千七百九十六人接受治疗， &nbsp;<br/>只剩下四百一十四万六千二百零四人在工作； &nbsp;<br/>其中四百一十四万六千一百零二人正在坐牢， &nbsp;<br/>而其中再有一百人在驱使、监督、评价别人的工作， &nbsp;<br/>就只剩两个人在工作-你和我, &nbsp;<br/>而你， &nbsp;<br/>你现在， &nbsp;<br/>就是现在， &nbsp;<br/>正坐在电脑前面看笑话。 &nbsp;<br/><br/>所以， &nbsp;<br/>只剩下我在工作， &nbsp;<br/>难怪我很累！！！！ <br/>
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?106</link>
<title><![CDATA[flash调用js函数]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[FLASH学习]]></category>
<pubDate>Thu, 24 May 2007 02:29:10 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?106</guid> 
<description>
<![CDATA[ 
	把你的这些Script写在一个function里，还是放在网页中。<br/>假设Function的名字叫做MyFunc<br/>然后在Falsh按钮事件这样写<br/><br/>on(release){getURL(&quot;javascript:MyFunc();&quot;);} <br/>///----------------<br/>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;<br/>&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;测试&lt;/TITLE&gt;<br/>&lt;META http-equiv=Content-Type content=&quot;text/html; charset=gb2312&quot;&gt;&lt;LINK <br/>href=&quot;css/home.css&quot; type=text/css rel=stylesheet&gt;<br/>&lt;STYLE type=text/css&gt;BODY {<br/>&nbsp;&nbsp;MARGIN: 0px;<br/>&nbsp;&nbsp;background-image: url(bg.jpg);<br/>}<br/>&lt;/STYLE&gt;<br/>&lt;script &nbsp; language=&quot;javascript&quot;&gt; <br/>function bodyh(){ &nbsp; <br/> &nbsp; &nbsp;return document.body.clientHeight; <br/>}<br/>&lt;/script&gt;<br/>&lt;META content=&quot;MSHTML 6.00.2900.3059&quot; name=GENERATOR&gt;&lt;/HEAD&gt;<br/>&lt;BODY&gt;<br/>&lt;TABLE width=1003 height=&quot;100%&quot; border=0 align=&quot;center&quot; cellPadding=0 <br/><br/>cellSpacing=0&gt;<br/> &nbsp;&lt;TBODY&gt;<br/> &nbsp;&lt;TR&gt;<br/> &nbsp; &nbsp;&lt;TD align=middle&gt;<br/> &nbsp; &nbsp; &nbsp;&lt;TABLE cellSpacing=0 cellPadding=0 width=1003 border=0&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;TBODY&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;TR&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;TD width=1003 colSpan=7&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;OBJECT <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/><br/>codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#versi<br/><br/>on=7,0,19,0 <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height=614 width=1003 <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;PARAM NAME=&quot;movie&quot; VALUE=&quot;main.swf&quot;&gt;&lt;PARAM NAME=&quot;quality&quot; <br/><br/>VALUE=&quot;high&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;embed src=&quot;main.swf&quot; quality=&quot;high&quot; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;type=&quot;application/x-shockwave-flash&quot; width=&quot;1003&quot; <br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height=&quot;614&quot;&gt;&lt;/embed&gt; &nbsp; &nbsp; &nbsp; &nbsp;<br/>&lt;/OBJECT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;!-- <br/><br/>HJLiveChat-PageCodeStart --&gt;<br/>&lt;!-- HJLiveChat-PageCodeEnd --&gt;<br/><br/><br/>&lt;/BODY&gt;<br/>&lt;/HTML&gt;<br/><br/><br/>
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?105</link>
<title><![CDATA[如何在FLASH里调用JS无边框窗口了]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[FLASH学习]]></category>
<pubDate>Thu, 24 May 2007 02:14:44 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?105</guid> 
<description>
<![CDATA[ 
	在FLASH里一直无法调用JS的window.open()始终是我的心头之痛。终于，在一本教学书中我找到了调用的方法，不敢独享，放在这里与大家共同研究。 <br/><br/>想在FLASH里调用JS函数，必须把SWF放在一个HTM页面里，然后再在HTM里编写代码，再由FLASH调用。 <br/>粗略代码如下： <br/>&lt;html&gt; <br/>&lt;head&gt; <br/>&lt;title&gt;test&lt;/test&gt; <br/>&lt;script&gt; <br/>function nbw(filename,w,h){ <br/>nbw=window.open(filename,&#039;_blank&#039;,&#039;fullscreen=1&#039;); <br/>nbw.resizeTo(w,h); <br/>nbw.moveTo((screen.width-w)/2,(screen.height-h)/2); <br/>} <br/>&lt;/script&gt; <br/>&lt;/head&gt; <br/>&lt;body&gt; <br/>&lt;!--在这里写入调用FLASH的代码--&gt; <br/>&lt;a href=javascript:nbw(&#039;test.htm&#039;,300,200);&gt; <br/>&lt;!--上面的这一句非常关键，没有它，FLASH调用的函数就无法使用--&gt; <br/>&lt;/body&gt; <br/>&lt;/html&gt; <br/><br/>好了，HTM和JS代码编写完毕，再来建一个FLASH页面，做一个按钮，然后在按钮上加AS——getUrl()，url的地址就是上面的&lt;a href=javascript:nbw(&#039;test.htm&#039;,300,200);&gt;里的“javascript:nbw(&#039;test.htm&#039;,300,200);”，这里有个关键的地方，就是必须和HTM里的语句相对应，一个字都不能错。大家可以从HTM里复制过来。 <br/>好了，做法就介绍到这里，大家试试。
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?104</link>
<title><![CDATA[太阳给草打电话]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[随便游览]]></category>
<pubDate>Mon, 21 May 2007 20:07:32 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?104</guid> 
<description>
<![CDATA[ 
	觉得有意思呀,哈哈....<br/>太阳给草打电话<br/><br/>太阳：喂，草你吗，我日。<br/>草：我草，你谁啊？<br/>太阳：我日啊<br/>草：我草，你到底谁啊<br/>太阳：我日啊，你草吧<br/>草：TMD，你到底是谁啊，我草<br/>太阳：我日，我日啊 <br/>草:我草. &nbsp;<br/>太阳的妈妈抢过电话：草，我日它妈，草你妈好吗？？ 
]]>
</description>
</item><item>
<link>http://www.starwish.com.cn/read.php?103</link>
<title><![CDATA[网管的烦恼：客人让我帮着下载QQ币.]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[随便游览]]></category>
<pubDate>Mon, 21 May 2007 19:56:50 +0000</pubDate> 
<guid>http://www.starwish.com.cn/read.php?103</guid> 
<description>
<![CDATA[ 
	网管的烦恼：客人让我帮着下载QQ币.<br/><br/>现在的网吧客人98%都傻，开机不会，输入法切换不会，字母大小写转换不会，玩私服登陆器怎么用不会，QQ开语音不会，进了游戏不会退出，私服服务器关了说我机子问题，**，老子真想一把捏死他，再搓成麻花#￥#W……T <br/><br/>语音聊天不会开MIC,说网吧耳机是坏的. <br/><br/>看电影嫌不是普通话的! <br/><br/>问我:&quot;网管,有没有毛片看?&quot;我说没,他怪电影不全! <br/><br/>QQ登陆不上说机器不好!老子跑过去一看,密码不对,丫还问我密码多少!!!! <br/><br/>还有一个更厉害的小妞,.接了一个不认识的网友的视频,喊我过去,问我视频里的人是谁!!! <br/><br/>#￥#%￥—*老子还有这本事????!!!!!!! <br/><br/>打个CS别人放颗烟雾弹，他遭闪了，狂喊：网管死机了…… <br/><br/>前天一个傻MM聊QQ问我怎么打字的。我问她，你不会打字吗。<br/>她说会。我说，哪你打字就行了(同时帮她调好输入法)，<br/>一会又叫我。说：网管，我怎么打不出来字啊。我说你要打什么<br/>字打不出来，她告诉我说：你先打个&quot;你好吧&quot;，我帮她打了。然后你们知道她怎么说的吗。<br/>你别走了。就坐在我边上帮我打字吧。kao!今天有人问我，网管我这里怎么没有QQ币呢，<br/>你帮我下载点QQ币……@#@$#%&amp;^那玩意要是能下载～！我***就不用上班了～ 
]]>
</description>
</item>
</channel>
</rss>