⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swfaction-new.phpt

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻 PHPT
字号:
--TEST--Ming: Simple SWFAction() test--SKIPIF--<?phpif (!extension_loaded("ming")) die("skip"); if (!MING_NEW && !MING_ZLIB) die("skip old ming");?>--FILE--<?php /* $Id: swfaction-new.phpt,v 1.1 2005/07/18 00:14:53 helly Exp $ */  $s = new SWFShape();  $f = $s->addFill(0xff, 0, 0);  $s->setRightFill($f);  $s->movePenTo(-500,-500);  $s->drawLineTo(500,-500);  $s->drawLineTo(500,500);  $s->drawLineTo(-500,500);  $s->drawLineTo(-500,-500);  $p = new SWFSprite();  $i = $p->add($s);  $i->setDepth(1);  $p->nextFrame();  for($n=0; $n<5; ++$n)  {    $i->rotate(-15);    $p->nextFrame();  }  $m = new SWFMovie();  $m->setBackground(0xff, 0xff, 0xff);  $m->setDimension(6000,4000);  $i = $m->add($p);  $i->setDepth(1);  $i->moveTo(1000,2000);  $i->setName("box");  $m->add(new SWFAction("_root.box._x += 3;"));  $m->nextFrame();  $m->add(new SWFAction("gotoFrame(0); play();"));  $m->nextFrame();  $m->save(dirname(__FILE__).'/test.swf');  echo md5_file(dirname(__FILE__).'/test.swf'), "\n";  unlink(dirname(__FILE__).'/test.swf');?>--EXPECT--d0f09a7b6a14d3fe6d570367deb38633

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -