当前位置: 首页>>代码示例>>PHP>>正文


PHP SWFMovie::output方法代码示例

本文整理汇总了PHP中SWFMovie::output方法的典型用法代码示例。如果您正苦于以下问题:PHP SWFMovie::output方法的具体用法?PHP SWFMovie::output怎么用?PHP SWFMovie::output使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SWFMovie的用法示例。


在下文中一共展示了SWFMovie::output方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _flash

 private function _flash()
 {
     $spacing = 5;
     $codewidth = ($this->width - $spacing * 5) / 4;
     $strforswdaction = '';
     for ($i = 0; $i <= 3; $i++) {
         $strforswdaction .= $this->swfcode($codewidth, $spacing, $this->_code[$i], $i + 1);
     }
     ming_setScale(20.0);
     ming_useswfversion(6);
     $movie = new SWFMovie();
     $movie->setDimension($this->width, $this->height);
     $movie->setBackground(255, 255, 255);
     $movie->setRate(31);
     $fontcolor = '0x' . sprintf('%02s', dechex(mt_rand(0, 255))) . sprintf('%02s', dechex(mt_rand(0, 128))) . sprintf('%02s', dechex(mt_rand(0, 255)));
     $strAction = "\n\t\t_root.createEmptyMovieClip ( 'triangle', 1 );\n\t\twith ( _root.triangle ) {\n\t\tlineStyle( 3, {$fontcolor}, 100 );\n\t\t{$strforswdaction}\n\t\t}\n\t\t";
     $movie->add(new SWFAction(str_replace("\r", "", $strAction)));
     header('Content-type: application/x-shockwave-flash');
     $movie->output();
 }
开发者ID:bjtenao,项目名称:tudu-web,代码行数:20,代码来源:Flash.php

示例2: text

$colorb[1] = 255 * 0.85;
$colorr[2] = 255 * 0.9;
$colorg[2] = 255 * 0.9;
$colorb[2] = 255 * 0.9;
$colorr[3] = 255 * 0.95;
$colorg[3] = 255 * 0.95;
$colorb[3] = 255 * 0.95;
$colorr[4] = 255;
$colorg[4] = 255;
$colorb[4] = 255;
$c = 1;
$anz = 4;
$step = 4 / $anz;
for ($i = 0; $i < $anz; $i += 1) {
    $x = 1040;
    $y = 50 + $i * 30;
    $size = $i / 5 + 0.2;
    $t[$i] = text($colorr[$c], $colorg[$c], $colorb[$c], 0xff, 0, $x, $y, $size, $_GET['text']);
    $c += $step;
}
$frames = 300;
for ($j = 0; $j < $frames; $j++) {
    for ($i = 0; $i < $anz; $i++) {
        $t[$i]->moveTo(260 + round(sin($j / $frames * 2 * pi() + $i) * (50 + 50 * ($i + 1))), 160 + round(sin($j / $frames * 4 * pi() + $i) * (20 + 20 * ($i + 1))));
        $t[$i]->rotateTo(round(sin($j / $frames * 2 * pi() + $i / 10) * 360));
    }
    $m->nextFrame();
}
header('Content-Type: application/x-shockwave-flash');
$m->output(0);
exit;
开发者ID:Gerst20051,项目名称:HnS-Desktop,代码行数:31,代码来源:swfname.php

示例3: SWFMovie

    $codewidth = ($seccodedata['width'] - $spacing * 5) / 4;
    $strforswdaction = '';
    for ($i = 0; $i <= 3; $i++) {
        $strforswdaction .= seccode_swfcode($codewidth, $spacing, $seccode[$i], $i + 1);
    }
    ming_setScale(20.0);
    ming_useswfversion(6);
    $movie = new SWFMovie();
    $movie->setDimension($seccodedata['width'], $seccodedata['height']);
    $movie->setBackground(255, 255, 255);
    $movie->setRate(31);
    $fontcolor = '0x' . sprintf('%02s', dechex(mt_rand(0, 255))) . sprintf('%02s', dechex(mt_rand(0, 128))) . sprintf('%02s', dechex(mt_rand(0, 255)));
    $strAction = "\r\n\t_root.createEmptyMovieClip ( 'triangle', 1 );\r\n\twith ( _root.triangle ) {\r\n\tlineStyle( 3, {$fontcolor}, 100 );\r\n\t{$strforswdaction}\r\n\t}\r\n\t";
    $movie->add(new SWFAction(str_replace("\r", "", $strAction)));
    header('Content-type: application/x-shockwave-flash');
    $movie->output();
} else {
    $numbers = array('B' => array('00', 'fc', '66', '66', '66', '7c', '66', '66', 'fc', '00'), 'C' => array('00', '38', '64', 'c0', 'c0', 'c0', 'c4', '64', '3c', '00'), 'E' => array('00', 'fe', '62', '62', '68', '78', '6a', '62', 'fe', '00'), 'F' => array('00', 'f8', '60', '60', '68', '78', '6a', '62', 'fe', '00'), 'G' => array('00', '78', 'cc', 'cc', 'de', 'c0', 'c4', 'c4', '7c', '00'), 'H' => array('00', 'e7', '66', '66', '66', '7e', '66', '66', 'e7', '00'), 'J' => array('00', 'f8', 'cc', 'cc', 'cc', '0c', '0c', '0c', '7f', '00'), 'K' => array('00', 'f3', '66', '66', '7c', '78', '6c', '66', 'f7', '00'), 'M' => array('00', 'f7', '63', '6b', '6b', '77', '77', '77', 'e3', '00'), 'P' => array('00', 'f8', '60', '60', '7c', '66', '66', '66', 'fc', '00'), 'Q' => array('00', '78', 'cc', 'cc', 'cc', 'cc', 'cc', 'cc', '78', '00'), 'R' => array('00', 'f3', '66', '6c', '7c', '66', '66', '66', 'fc', '00'), 'T' => array('00', '78', '30', '30', '30', '30', 'b4', 'b4', 'fc', '00'), 'V' => array('00', '1c', '1c', '36', '36', '36', '63', '63', 'f7', '00'), 'W' => array('00', '36', '36', '36', '77', '7f', '6b', '63', 'f7', '00'), 'X' => array('00', 'f7', '66', '3c', '18', '18', '3c', '66', 'ef', '00'), 'Y' => array('00', '7e', '18', '18', '18', '3c', '24', '66', 'ef', '00'), '2' => array('fc', 'c0', '60', '30', '18', '0c', 'cc', 'cc', '78', '00'), '3' => array('78', '8c', '0c', '0c', '38', '0c', '0c', '8c', '78', '00'), '4' => array('00', '3e', '0c', 'fe', '4c', '6c', '2c', '3c', '1c', '1c'), '6' => array('78', 'cc', 'cc', 'cc', 'ec', 'd8', 'c0', '60', '3c', '00'), '7' => array('30', '30', '38', '18', '18', '18', '1c', '8c', 'fc', '00'), '8' => array('78', 'cc', 'cc', 'cc', '78', 'cc', 'cc', 'cc', '78', '00'), '9' => array('f0', '18', '0c', '6c', 'dc', 'cc', 'cc', 'cc', '78', '00'));
    foreach ($numbers as $i => $number) {
        for ($j = 0; $j < 6; $j++) {
            $a1 = substr('012', mt_rand(0, 2), 1) . substr('012345', mt_rand(0, 5), 1);
            $a2 = substr('012345', mt_rand(0, 5), 1) . substr('0123', mt_rand(0, 3), 1);
            mt_rand(0, 1) == 1 ? array_push($numbers[$i], $a1) : array_unshift($numbers[$i], $a1);
            mt_rand(0, 1) == 0 ? array_push($numbers[$i], $a1) : array_unshift($numbers[$i], $a2);
        }
    }
    $bitmap = array();
    for ($i = 0; $i < 20; $i++) {
        for ($j = 0; $j < 4; $j++) {
            $n = substr($seccode, $j, 1);
            $bytes = $numbers[$n][$i];
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:seccode.php

示例4: SWFMovie

<?php

$m = new SWFMovie();
$m->setDimension(400, 100);
$m->setBackground(0xff, 0xff, 0xff);
$m->add(new SWFBitmap(fopen("img/xampp-logo.jpg", "rb")));
for ($i = 0; $i <= 100; $i++) {
    $m->add(new SWFAction("alpha = {$i};"));
    $m->nextFrame();
}
header('Content-type: application/x-shockwave-flash');
$m->output();
开发者ID:omyyalliu,项目名称:web,代码行数:12,代码来源:splash-logo.php

示例5:

/* use a 1 pixel width red pen */
$im->setLine(1, 255, 0, 0);
for ($i = 0; $i + 1 < $row_count; $i++) {
    $x1 = $i * $gxb / $row_count + $dx;
    $y1 = $gyb + $dy - $windd[$i] * $scale;
    $x2 = ($i + 1) * $gxb / $row_count + $dx;
    $y2 = $gyb + $dy - $windd[$i + 1] * $scale;
    $im->movePenTo($x1, $y1);
    $im->drawLineTo($x1, $y1);
    $im->drawLineTo($x2, $y2);
}
/* draw the wind speed graph */
$scale = $gyb / ($wnds_max - $wnds_min);
/* use a 1 pixel width blue pen */
$im->setLine(1, 0, 0, 255);
for ($i = 0; $i + 1 < $row_count; $i++) {
    $x1 = $i * $gxb / $row_count + $dx;
    $y1 = $gyb + $dy - ($winds[$i] - $wnds_min) * $scale;
    $x2 = ($i + 1) * $gxb / $row_count + $dx;
    $y2 = $gyb + $dy - ($winds[$i + 1] - $wnds_min) * $scale;
    $im->movePenTo($x1, $y1);
    $im->drawLineTo($x1, $y1);
    $im->drawLineTo($x2, $y2);
}
/* add our swf shape to the swf movie */
$i1 = $mve->add($im);
$i2 = $mve->add($txt);
/* output the flash content */
header('Content-type: application/x-shockwave-flash');
$mve->output(0);
开发者ID:BackupTheBerlios,项目名称:wth-svn,代码行数:30,代码来源:wind.swf.php

示例6: dl

<?php

echo "extension_dir={$extension_dir}<br>";
if (!extension_loaded('ming')) {
    $exLoad = "fal";
    $retDL = dl('php_ming.so');
    echo "retDL={$retDL}<br>";
} else {
    $exLoad = "tru";
}
echo "exLoad={$exLoad}<br>";
exit;
$mov = new SWFMovie();
$mov->setDimension();
header('Content-type: application/x-shockwave-flash');
$mov->output();
开发者ID:RaymondByczko,项目名称:portfoliobase,代码行数:16,代码来源:ming1.php

示例7: SWFShape

<?php

$s = new SWFShape();
$fp = fopen('../../intro/php-big.jpg', 'r');
$jpg = new SWFBitmap($fp);
$w = $jpg->getWidth();
$h = $jpg->getHeight();
$f = $s->addFill($jpg);
$f->moveTo(-$w / 2, -$h / 2);
$s->setRightFill($f);
$s->movePenTo(-$w / 2, -$h / 2);
$s->drawLine($w, 0);
$s->drawLine(0, $h);
$s->drawLine(-$w, 0);
$s->drawLine(0, -$h);
$p = new SWFSprite();
$i = $p->add($s);
for ($step = 0; $step < 360; $step += 2) {
    $p->nextFrame();
    $i->rotate(-2);
}
$m = new SWFMovie();
$i = $m->add($p);
$i->moveTo(230, 120);
$m->setRate(100);
$m->setDimension($w * 1.8, $h * 1.8);
header('Content-type: application/x-shockwave-flash');
$m->output(6);
开发者ID:SandyS1,项目名称:presentations,代码行数:28,代码来源:ming.php

示例8: SWFMovie

<?php

Ming_setScale(20.0);
ming_useswfversion(7);
$movie = new SWFMovie();
$movie->setRate(31);
$movie->setDimension(400, 300);
$movie->setBackground(0xcc, 0xcc, 0xcc);
$filesrc1 = "jpg.jpg";
$filesrc2 = "png.png";
$filesrc3 = "gif.gif";
$filecontents1 = file_get_contents($filesrc1);
$img = new SWFBitmap($filecontents1);
$f1 = $movie->add($img);
$f1->moveto(90, 50);
$filecontents2 = file_get_contents($filesrc2);
$img = new SWFBitmap($filecontents2);
$f1 = $movie->add($img);
$f1->moveto(10, 10);
$filecontents3 = file_get_contents($filesrc3);
$img = new SWFBitmap($filecontents3);
$f1 = $movie->add($img);
$f1->moveto(170, 80);
header('Content-Type: application/x-shockwave-flash');
$movie->output(0);
开发者ID:omyyalliu,项目名称:web,代码行数:25,代码来源:bitmaps.php

示例9: fopen

<?php

header('Content-type: application/x-shockwave-flash');
$mp3file = "sample.mp3";
$mp3Stream = fopen($mp3file, 'rb');
$mp3Content = fread($mp3Stream, filesize($mp3file));
fclose($mp3Stream);
$mp3length = 8.5;
$rate = 12.0;
$mp3 = new SWFMovie();
$mp3->setRate($rate);
$mp3->streamMp3($mp3Content);
$mp3->setFrames($mp3length * $rate);
$mp3->output();
开发者ID:Videofy,项目名称:php-codes,代码行数:14,代码来源:streamvideo.php

示例10: _outFlash

 private static function _outFlash()
 {
     if (!class_exists('SWFBitmap')) {
         return false;
     }
     self::_getCodeLenth();
     self::_creatImage();
     self::_setRandBackground();
     self::_creatBackground();
     //self::_setPicBackground();
     self::_setRandFont();
     self::_setRandGraph();
     self::_writeImage();
     self::_setRandDistortion();
     $_tmpPath = Wind::getRealDir('DATA:tmp.');
     $_tmp = $_tmpPath . WindUtility::generateRandStr(8) . '.png';
     imagepng(self::$_image, $_tmp);
     if (!WindFile::isFile($_tmp)) {
         return false;
     }
     imagedestroy(self::$_image);
     $bit = new SWFBitmap($_tmp);
     $shape = new SWFShape();
     $shape->setRightFill($shape->addFill($bit));
     $shape->drawLine($bit->getWidth(), 0);
     $shape->drawLine(0, $bit->getHeight());
     $shape->drawLine(-$bit->getWidth(), 0);
     $shape->drawLine(0, -$bit->getHeight());
     $movie = new SWFMovie();
     $movie->setDimension($bit->getWidth(), $bit->getHeight());
     $flash = $movie->add($shape);
     header("Pragma:no-cache");
     header("Cache-control:no-cache");
     header('Content-type: application/x-shockwave-flash');
     $movie->output();
     WindFolder::clear($_tmpPath);
 }
开发者ID:latticet,项目名称:EduSoho_jb51,代码行数:37,代码来源:PwGDCode.php


注:本文中的SWFMovie::output方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。