5绉山hp鏁欑▼颸垚swf鏂囦Huanxig爜
/*
涓嬮扩椤嚑娆绯hp颢瞸帚flash鏂囦Huanxig爜锛屾槧浠庣Mu南开殑鐢秸垚swf鏂囦Huan鍒dressing up 铓鎴?flash锷ㄧ敾鏂囦Huanjiang夛纴姣忎采瀹炰緥閮 Mustard 槸缁偓倀鄄啩€?br />*/
//棣栧厛寮€钖痯hp铓╁睍php_ming
$f = new swffont( '_sans' );
$t = new swftextfield();
$t- >setfont( $f );
$t->setcolor( 0, 0, 0 );
$t->setheight( 400 );
$t->addstring( 'hello world' );
$m = new swfmovie();
$m->setdimension( 2500, 800 );
$m->add( $t );
$m->save( 'hello.swf' );
?>
************************ *************************************************** *******
渚嬩簩锛氲鏂囨湰锷ㄨpound鉉ext.php
$f = new swffont( '_sans' );
$pt = new swftextfield();
$pt->setfont( $f );
$pt->setcolor( 0, 0, 0 );
$pt-> ;setheight( 400 );
$pt->addstring( '1000' );
$tt = new swftextfield();
$tt->setfont( $f );
$tt->setcolor( 192, 192, 192, 90 );
$tt->setheight( 350 );
$tt->addstring( 'points' );
$m = new swfmovie();
$m->setdimension( 2500, 800 );
$pts = $m->add( $pt );
$pts ->moveto( 0, 0 );
$tts = $m->add( $tt );
$tts->moveto( 1300, 200 );
for( $i = 0; $i < 10; $i++ ) {
$m->nextframe();
$pts->scaleto( 1.0 + ( $i / 10.0 ), 1.0 + ( $i / 10.0 ) );
}
$m->save( 'text.swf' );
?>
***** *************************************************** ************************
渚嬩笁锛氱粯鍒Duo竴浜涘浘褰?nbsp;缁华埗绠€鍗开殑鐐inchline.php
$m = new swfmovie();
$m->setdimension( 300, 300 );
$s = new swfshape( );
$s->setline( 10, 0, 0, 0 );
$s->movepento( 10, 10 );
$s->drawlineto( 290, 290 ) ;
$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 );
$s->drawlineto( 100, 100 );
$ts = $m->add( $s ) ;
$ts->moveto( 150, 150 );
for( $i = 0; $i < 100; $i++ ) {
$ts-> rotate( 10 );
$m->nextframe();
}
$m->save( 'rotate.swf' );
?>
*************************************************** *************************
渚嬩簲锛?br />Huancuan椤锲 drama 墖
鏂囨湰鍜岃濡悜洿绾综合€丸hun銆丶彆役洸绾 breakdown拰鐭╁ Ship涔嬬 Was 锄勭mu鍗开煝Read忓浘褰㈤兘鏄崄鍒嗕紭绉€镄嶶纴Flash Gong ing搴pujiao town ㄥ彲浠ヨ交鏉剧殑殑cross椤锲 drama墖锛屽涓嬫墍绀?/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 = $m->add( $s );
$is->moveto( $img->getwidth() / 2, $img->getheight() / 2 );
for( $i = 0; $i < 10; $i++ )
{
$is->skewx( 0.02 );
$is->skewy( - 0.03 );
$m->nextframe();
}
$m->save( 'image.swf' );