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
{
Ïà¹ØÎĵµ£º
¾¹ýÉÏÃæµÄ²âÊÔ£¬ÏÖÔÚ¶ÔÔÏȳÌÐò½øÐÐһЩ¸ÄÔì¿ÉÒÔ´´½¨³ö²»´íµÄЧ¹û£¬Äã»á·¢ÏÖÿ´Î¸Ä¶¯Ò»Ð©²ÎÊýºÜ¶àÓÐȤµÄЧ¹û¾Í»á³öÏÖÁË¡£ÏÖÔÚÎÒÃdz¢ÊÔ×öÒ»¸öµ÷½Ú¹¤¾ß¶ÔËûÃǵİ뾶£¬¸ß¶È£¬È¦Êý£¬ÊӽǽøÐд´Ôì¡£Õâ´Î»áÖ÷Òª½èÖúµ½flashÀïÃæ ×é¼þ°ü¡£Slider ×é¼þÀ´°ïÖúÎÒÃÇÍê³ÉÕâÒ»´ÎµÄ³¢ÊÔ¡£
ÖÆ×÷¹ý³ÌÖªµÀ£º°üÀ¨Slider ×é¼þµÄʹÓã¬R ......
ת×Ô£ºhttp://www.cnblogs.com/yao/archive/2007/02/24/655190.html
FlashÉÏ´«Îļþ(½áºÏasp.net)
Ò»¡¢ÊµÏÖÔÀí¡£
ÔÚijЩ³¡ºÏ£¬ÎÒÃÇÐèҪʹÓÃFlash½øÐГÎļþÉÏ´«”£¬ÔÒòÊÇFlash ÄÜÖÆ×÷³ö±íÏÖÁ¦·á¸»µÄUI½çÃæ¡£
(×Ô¸ºÓֹª¹ÑÎŵÄÎÒÔÚÕâÀï×öÒ»¸ö²¹³ä£ºFlashʹÓÃflash.net°üÖеÄFileReferenceÊÇ¿ÉÒÔ·¢ËÍÎļþÊý¾ ......
ÎÒÃÇÒýÓñ¾µØflash£¬ÊµÏÖflashÓëjsË«Ïò½»»¥¡£
function thisMovie(movieName) {
if (window.document[movieName]){
return window.document[movieName];
}else if (navigator.appName.indexOf("Microsoft")==-1){
&nb ......
-------------------ºǫ́´úÂë---------------------------
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
& ......
ÎļþÈçÏÂ
<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 ......