Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flashÌØЧԭÀí£ºÍ¼Æ¬»¬¶¯·Å´óЧ¹û

  Õ⼸Ì죬¶¼ÔÚÎÞËùÊÂÊ£¬Î¨Ò»¼ÄÍоÍÊÇÔÚÕâÀï¼Ç¼һÏÂ×Ô¼ºÑо¿³öÀ´µÄ¶«Î÷¡£³ÃÏÖÔÚÓеãʱ¼ä£¬¾Í°Ñ×î½ü¿´¹ýµÄÒ»ÖÖ³£ÓõÄflashÌØЧ¼Ç¼һÏ£¬flash ×öÌØЧ²»ÊÇΪ×öÌØЧ¶ø×ö£¬ÔÚmake thing move ÊéÀï½²ÁËÐí¶àµÄÊýѧºÍÎïÀíÔ­Àí£¬Í¨¹ýÕâЩԭÀí£¬ÎÒ·¢ÏÖ×öÌØЧ¾ÍÐèÒª¶®Ô­Àí¡£¶®ÁËÕâЩԭÀíºó£¬ÌØЧ¾Í»á±äµÃÇáËÉÈÝÒס£
 ÏÖÔÚ×¼±¸Ò»Ï£¬½²ÇóÒ»¸ö¹«Ê½£¬Õâ¸ö¹«Ê½¶Ô×öÕâ¸öÌØЧºÜÓаïÖú¡£¹«Ê½ÈçÏ£º
Ò»¡¢»ù±¾»ù±¾Ô­Àí¹«Ê½
 xÖ᣺
  ͼƬËõ·ÅÂÊ=×î´óËõ·ÅÂÊ-|Êó±êµÄx×ø±êÖµ-ÿһÕÅͼƬµÄxÖá´óС|*×Ô¶¨ÒåµÄ±ÈÀý£»
Êó±êµÄx×ø±êÖµ¼õȥÿһÕÅͼƬµÄxÖá´óСµÄ¾ø¶ÔÖµµÄ²î£¬³ËÒÔ×Ô¶¨ÒåµÄ±ÈÀý£¬È»ºó×î´óËõ·ÅÂʼõÈ¥Õâ¸öÖµ¾Í¿ÉÒÔÖªµÀ½áÂÛ£º
ÀëÊó±êÔ½½üµÄͼƬ£¬Ëõ·Å±ÈÀý¾Í»áÔ½´ó£¬Ïà·´ÀëÊó±êÔ½Ô¶Ïà¶ÔËõ·ÅÂÊԽС¡£
var scale:Number=max-Math.abs(mouseX-pic.x)*ratio; ÕâÑù¹«Ê½¾ÍÖªµÀÁË
 ¼ò»¯ scale=max-|mouseX-pic.x|*ratio;
ͬÀí£º
yÖ᣺
ͼƬËõ·ÅÂÊ=×î´óËõ·ÅÂÊ-|Êó±êµÄy×ø±êÖµ-ÿһÕÅͼƬµÄyÖá´óС|*×Ô¶¨ÒåµÄ±ÈÀý£»
¶þ¡¢ÖÆ×÷¹ý³Ì
ÎÒÃÇÖÆ×÷McµÄʱºò£¬McÀïÃæÓÐÒ»¸öÃûΪtitleµÄ¶¯Ì¬Îı¾£¬ÔÚÆäÉÏÃæÆ̸ÇÒ»²ã͸Ã÷µÄÉ«µÄͼÏñ£¬Í¬Ê±£¬ÐèÒªÖ¸¶¨µ×²¿Îª×¢²áµã£¬±ÊÕß°´ÕâÖÖ·½Ê½´¦Àí¡£È»ºóÁ´½ÓΪTestMc Àà
¿âÁ´½Óͼ£º
Èý¡¢³ÌÐòʵÏÖ
½ÓÏÂÀ´£¬×¼±¸ÁË
ÏÖÔÚÎÒÃÇдһ¸ö»ù´¡ÀàEffect.as¡£Õâ¸öÌØЧ»ù´¡À࣬¿ÉÒÔÉèÖÃ×î´ó·Å´óÂÊ£¬Í¼Æ¬¼ä¾à£¬ºÍ±ÈÂÊ
package
{
import flash.display.MovieClip;
import flash.events.*;
public class Effect extends EventDispatcher
{
private var Ratio:Number;//Ëõ·Å±ÈÂÊ
private var Max:Number;//ÉèÖÃ×î´óËõ·Å±ÈÂÊ
private var Distans:Number;//ͼƬ¾àÀë
public function Effect()
{

}
//ÉèÖÃ×î´óµÄËõ·Å±ÈÂÊ
public function set max(value:Number):void
{
Max=value;
}
public function get max():Number
{
return Max;
}
//ÉèÖÃÊó±êÓëͼƬ֮¼ä¾àÀëµÄ²îµÄ¾ø¶ÔÖµµÄËõ·Å±ÈÂÊ
public function set ratio(value:Number):void
{
Ratio=value;
}
//ÉèÖÃÊó±êÓëͼƬ֮¼ä¾àÀëµÄ²îµÄ¾ø¶ÔÖµµÄËõ·Å±ÈÂÊ
public function get ratio():Number
{
return Ratio;
}

//ÉèÖÃͼƬ֮¼äµÄ¾àÀë
public function set distance(value:Number):void
{
Distans=value;
}
public function get distance():Number
{


Ïà¹ØÎĵµ£º

flashÌØЧԭÀí£ºÂÝÐýЧ¹û £¨2£©

  ¾­¹ýÉÏÃæµÄ²âÊÔ£¬ÏÖÔÚ¶ÔÔ­ÏȳÌÐò½øÐÐһЩ¸ÄÔì¿ÉÒÔ´´½¨³ö²»´íµÄЧ¹û£¬Äã»á·¢ÏÖÿ´Î¸Ä¶¯Ò»Ð©²ÎÊýºÜ¶àÓÐȤµÄЧ¹û¾Í»á³öÏÖÁË¡£ÏÖÔÚÎÒÃdz¢ÊÔ×öÒ»¸öµ÷½Ú¹¤¾ß¶ÔËûÃǵİ뾶£¬¸ß¶È£¬È¦Êý£¬ÊӽǽøÐд´Ôì¡£Õâ´Î»áÖ÷Òª½èÖúµ½flashÀïÃæ ×é¼þ°ü¡£Slider ×é¼þÀ´°ïÖúÎÒÃÇÍê³ÉÕâÒ»´ÎµÄ³¢ÊÔ¡£
ÖÆ×÷¹ý³ÌÖªµÀ£º°üÀ¨Slider ×é¼þµÄʹÓã¬R ......

FlashÉÏ´«Îļþ(½áºÏasp.net)

ת×Ô£ºhttp://www.cnblogs.com/yao/archive/2007/02/24/655190.html
FlashÉÏ´«Îļþ(½áºÏasp.net)
Ò»¡¢ÊµÏÖÔ­Àí¡£
ÔÚijЩ³¡ºÏ£¬ÎÒÃÇÐèҪʹÓÃFlash½øÐГÎļþÉÏ´«”£¬Ô­ÒòÊÇFlash ÄÜÖÆ×÷³ö±íÏÖÁ¦·á¸»µÄUI½çÃæ¡£
(×Ô¸ºÓֹª¹ÑÎŵÄÎÒÔÚÕâÀï×öÒ»¸ö²¹³ä£ºFlashʹÓÃflash.net°üÖеÄFileReferenceÊÇ¿ÉÒÔ·¢ËÍÎļþÊý¾ ......

½â¾öflashÓëjs½»»¥¡¢flash¿çÓò½»»¥¡¢flash¿çÓòÌá½»

ÎÒÃÇÒýÓñ¾µØflash£¬ÊµÏÖflashÓëjsË«Ïò½»»¥¡£
   function thisMovie(movieName) {
     if (window.document[movieName]){
      return window.document[movieName];
    }else if (navigator.appName.indexOf("Microsoft")==-1){
 &nb ......

flashÔÚ.netÖÐÏÔʾ£¬´ÓÊý¾Ý¿â¶ÁÈ¡Á´½Ó

-------------------ºǫ́´úÂë---------------------------
 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
         & ......

FLASHЧ¹û£¬Í¨¹ýxmlÎļþÁ´½ÓÊý¾Ý


ÎļþÈçÏÂ
<BODY>
<SCRIPT src="swfobject.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript>
var flashvars = {};
flashvars.myxmlpath = 'content.xml';
flashvars.type = 'content';
flashvars.decription = '0';
flashvars.textstyle = '';
flashvars.de ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ