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

AÐÇËã·¨£¬flash°æ

AÐÇËã·¨£¬flash ÑÝʾ°æ
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;

[SWF(width="550",height="550",backgroundColor="#999999")]
public class astart extends Sprite
{
// ³£Êý¶¨Òå
private static const size:int = 50;

private var points:Array = new Array();
private var bg:Sprite = new Sprite();
private var person:Sprite = null;
private var line:Sprite = new Sprite();
public function astart() {
var i:int = 0;
// Ìî³äÑÕÉ«
bg.x = bg.y = 25;
bg.graphics.beginFill(0xff0000,1);
bg.graphics.drawRect(0,0,500,500);
bg.graphics.endFill();

// »­¸ñ×ÓÏß
bg.graphics.lineStyle(1,0);
for ( i=0;i<=size;i++ ) {
bg.graphics.moveTo(0,500/size*i);
bg.graphics.lineTo(500,500/size*i);
bg.graphics.moveTo(500/size*i,0);
bg.graphics.lineTo(500/size*i,500);
}
// ³õʼ»¯¸ñ×Ó
for ( i = 0;i<size;i++ ) {
var _points:Array = new Array();
for ( var j:int=0;j<size;j++ ) {
if ( Math.floor(Math.random()*5) == 0 ) { // Îå·ÖÖ®Ò»µÄ¸ñʽÊÇÕÏ°­
_points.push(1);
bg.graphics.beginFill(0,1);
bg.graphics.drawRect(500/size*i,500/size*j,500/size,500/size);
bg.graphics.endFill();
}
else
_points.push(0);
}
points.push(_points);
}
//·ÅÖÃÆðµã
while ( true ) {
var ix:int = Math.floor(Math.random()*size);
var iy:int = Math.floor(Math.random()*size);
if ( points[ix][iy] == 0 ) {
person = new Sprite();
person.graphics.beginFill(0xff00,1);
person.graphics.drawRect(0,0,500/size,500/size);
person.graphics.endFill();
person.x = ix * 500/size + 25;
person.y = iy * 500/size + 25;
person.mouseEnabled = false;
person.mouseChildren = false;
break;
}
}
bg.addEventListener(MouseEvent.CLICK,onClick);
addChild(bg);
line.x = line.y = 25;
addChild(line);
addChild(person);
}
public function onClick(event:MouseE


Ïà¹ØÎĵµ£º

objectµÄflashÔÚfirefoxÉÏÏÔʾ²»³öÀ´µÄÎÊÌâ

DreamweaverÖÐ×Ô´øµÄflashÊÇ:
<object ..... >
  <param .../>
</object>ÕâÖÖ£¬¶øËüÔÚfirefoxÖÐÏÔʾ²»³öÀ´£¬
¶øÎÒÔÚÍøÉÏ¿´µ½ÓÐÈËÓãº
<object .....>
  <embed .../>
</object>À´×öÔÚ»ðºüÉÏÄÜÏÔʾ£¬µ«ÔÚieÉϾͲ»ÄÜÏÔʾÁË£¬²¢½ÓÈç¹ûÓÃfckeditor²»ÄÜÌá½»µ½Êý¾Ý¿â ......

dreamweaver cs3 ÖвåÈëFLASHÎÞ·¨ÏÔʾµÄÎÊÌâ

½ñÌì¸üÐÂÎÒÃǹ«Ë¾µÄÍøÕ¾Ê×Ò³Óöµ½Á˵ãÎÊÌ⣬ÐÂ×°µÄdreamweaver cs3 ×öºÃµÄÒ³ÃæÉÏ´«ºó·¢ÏÖǶÈëµÄ*.swfÎļþÎÞ·¨ÏÔʾ£¨¸Ð¾õ¾ÍÏñ²»´æÔÚÒ»Ñù£©¡£ÎÒÅųýÁËËùÓпÉÄܳöÏÖÎÊÌâµÄµØ·½£¨±ÈÈçÁ´½ÓµØÖ·¡¢Ïà¶ÔºÍ¾ø¶Ô·¾¶¡¢ÎļþÃûµÈ£©£¬×îºó¶à·½²éÕÒÖÕÓÚ·¢ÏÖ£¬Ô­À´ÊÇdreamweaver cs3 µÄ°æ±¾ÎÊÌâ¡£Õ⻹ÊÇÎÒµÄͬÊ´ӰٶÈÉÏËѵ½µÄ½â¾ö°ì·¨¡£
Ô ......

[ת]FLASHµÄÉùÒôͬ²½·½Ê½

£¨1£©Òԓʼþ”·½Ê½¿ªÊ¼ÉùÒô£º¶ÀÁ¢ÓÚʱ¼äÖá½øÐÐÍêÕûµÄ²¥·Å¡£¼´Ê¹SWFÎļþÒѾ­Í£Ö¹£¬ÉùÒô²¥·ÅÒ²»á¼ÌÐø¡£ÕâÖÖ·½Ê½Ö÷ÒªÓÃÓÚ½»»¥°´Å¥¡£
£¨2£©ÒÔ“¿ªÊ¼”·½Ê½¿ªÊ¼ÉùÒô£ºÓë“ʼþ·½Ê½”¹¦ÄÜÏà½ü£¬µ«±ØÐëÊÇÇ°Ò»¸öÉùÒô²¥·Å½áÊø£¬²Å¿ÉÒÔ¿ªÊ¼²¥·ÅÏÂÒ»¸öÉùÒô¡£ÕâÖÖ·½Ê½Ö÷ÒªÓÃÓÚ±³¾°ÒôЧ¡£
£¨3£©ÒÔ&ldq ......

ÔÚÍøÒ³ÖвåÈëFlashµÄ´úÂë

ÔÚÍøÒ³ÖвåÈëFlashµÄ´úÂëÓкܶ࣬ÏÂÃæÌṩһÖÖ½ö¹©²Î¿¼£º
<object data="FlashÎļþµÄURL" type="application/x-shockwave-flash" width="¿í¶È" height="¸ß¶È">
<param name="movie" value="FlashÎļþµÄURL">
</object> ......

ʵÓõÄͼƬÇл» js+flash ʵÏÖ

<script language="javascript">
        //-------¶¨ÒåͼƬ·¾¶µÈ²ÎÊý-------------//
        //¶¨Òå´óͼµÄ·¾¶
        var bigPic0 =" ";
        var big ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ