flash¼òµ¥»»actionscript3.0
as3.0
../drawingapplication.fla
document classÉèÖÃΪch6.drawingApplication
../ch6/drawingApplication.as
package ch6 {
import flash.display.Sprite;
import flash.events.MouseEvent;
public class DrawingApplication extends Sprite {
private var _canvas:Sprite;
public function DrawingApplication() {
_canvas = new Sprite();
_canvas.graphics.beginFill(0xf0f0f0);
_canvas.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
_canvas.graphics.endFill();
_canvas.graphics.lineStyle(2, 0x000000);
addChild(_canvas);
_canvas.addEventListener(MouseEvent.MOUSE_DOWN, onCanvasMouseDown);
_canvas.addEventListener(MouseEvent.MOUSE_UP, onCanvasMouseUP);
}
private function onCanvasMouseDown(event:MouseEvent): void {
_canvas.graphics.moveTo(event.localX, event.localY);
_canvas.addEventLis
Ïà¹ØÎĵµ£º
ÎÒÃÇÒýÓñ¾µØflash£¬ÊµÏÖflashÓëjsË«Ïò½»»¥¡£
function thisMovie(movieName) {
if (window.document[movieName]){
return window.document[movieName];
}else if (navigator.appName.indexOf("Microsoft")==-1){
&nb ......
ÏÖÔÚÊÇÍíÉϵÄ7µã£¬¶Ô×ŵçÄÔ£¬ÒÀ¾ÉµÄ´úÂ룬¿´ÁËһЩ±à³Ì£¬ÓкܶàºÜÓÐȤµÄÊÂÇé¡£°Ñ½ñÌì¼Ç¼µÄÊÂÇé¼Ç¼һÏ£¬¿´ÁËһЩ»æÍ¼APIµÄ×ö·¨£¬ÕæµÄÓеã±äµÃ·è¿ñÁË¡£½ñÌì¶ÔflashÊý×éµÄɾ³ý·¢ÏÖÓеãÒâ˼£¬Ô±¾ÒÔΪ²ÉÓÃsplice ɾ³ýÊý×éÒ»¸öÊý×Ö¿ÉÒÔŪ³ö¸ö°ì·¨À´£¬½á¹û·¢ÏÖɾ³ý¶à¸öÖ¸¶¨Î»ÖÃÊý¾ÍÓöµ½Ò»Ð©ÎÊÌ⣬¿ÉÄÜ»¹Ã»Óз¢ÏÖ¸ ......
ÎļþÈçÏÂ
<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 ......
Main.cpp (Win/*nix)
#include "FlexSecurityBox.h"
int main(int argc, char ** argv) {
char * address;
short port;
if (argc == 2)
{
address = "0.0.0.0";
port = atoi(argv[1]);
} else if (argc == 3)
{
address = argv[1];
port = atoi(argv[2]);
} else
{
printf("Y ......
HTML clipboardThese days a
16GB USB thumb drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures,
videos, and music with friends, nothing beats the convenience of a USB storage
drive. Well, why not make sure t ......