5绉峱HP鏁欑▼颸垚swf鏂囦huan浠g
/*
涮宮娆篯hp颸垚flash鏂揂鏂揂鏂囦フアン鍒ドレスアップ铓鎴?フラッシュ锷锷ㄧ敾鏂囦フアンジャン夛纴姣忎燹炰緥單マスタード槸缁忓倀镄勩€?br />*/
$f = 新しい swffont( '_sans' );
$t = 新しい swftextfield();
$t->setfont( $f );
$t->setcolor( 0, 0 , 0 );
$t->addstring( 'hello world' );
$m = new swfmovie();
$m->add( $t );
?>
************* * ************************************************* *******************
渚嬩簩锛氲鏂囨湰锷ㄨポンド鏉ext.php
$pt->addstring( '1000' );
$tt = 新しい swftextfield();
$tt->setfont( $f );
$tt->setcolor( 192, 192, 192 , 90 );
$tt->addstring( 'points' );
$m->setdimension( 2500, 800 ) ;
$pts->moveto( 0, 0 );
$tts- > moveto( 1300, 200 );
for( $i = 0; $i $m->nextframe(); $pts->scaleto( 1.0 + ( $ i / 10.0 ), 1.0 + ( $i / 10.0 ) );
}
?>
*********** ** *********************************************** *****************
渚嬩笁锛氱粯鍒Duo竴浜涘浘褰?nbsp;缁华嗗绠€鍗 Kuang殑鐐 howling line.php
$m = new swfmovie();
$m->setdimension( 300, 300 );
$s = new swfshape();
$s->setline( 10, 0, 0, 0 );
$s->movepento( 10, 10 );
$m->add( $s );
$m->save( 'line.swf ' );
?>
************************************* **** *************************************
渚嫔洓攛氭棆枞洿绾?br / >$m = new swfmovie();
$m->setdimension( 300, 300 );
$s = new swfshape();
$s->setline( 5 , 0, 0 , 0 );
$s->movepento( -100, -100 );
$ts = $m->add( $s ) ;
$ ts->moveto( 150, 150 );
for( $i = 0; $i < 100; $i++ ) {
$ts->rotate( 10 );
}
$m->save( 'rotate.swf' );
?>
渚嬩簲锛?br />環十字椤锲ドラマ勖
鏂囨湰鍜岃濡悜洿绾パンツ€丸春銆佸時銆佹洸绾拋鐭╁船涔嬬は锄卭mu獗kuang Flashㄧ敾涓殑锲ドラマ墖銆効果€揚げ缑搴旗琴鄄勬槸锛宫ing搴浦角鎮ㄥ彲浠ヨ交鏉ドラマ殑殑椤锲ドラマ喖锛屽でした涓嬫卍绀?/p>
$img = new swfbitmap( file_get_contents( 'megan.jpg' ) );
$s = new swfshape();
$imgf = $s->addfill( $img );
$s->setrightfill( $imgf );
$s->movepento( 0, 0 );
$s->drawlineto( $img->getwidth(), 0 );
$s->drawlineto( $img- >getwidth(), $img->getheight() );$s->drawlineto( 0, $img->getheight() );
$s- >drawlineto( 0, 0 );
$m = new swfmovie();
$m->setdimension( $img->getwidth() * 2, $img->getheight() * 2 );
$is->moveto( $img->getwidth() / 2, $img->getheight() / 2 );
for( $i = 0; $i {
$is->skewx( 0.02 );
$m->nextframe();