diff --git a/reference/ming/functions/swfbitmap.xml b/reference/ming/functions/swfbitmap.xml index aaedd519fc..95b9c3e5a0 100644 --- a/reference/ming/functions/swfbitmap.xml +++ b/reference/ming/functions/swfbitmap.xml @@ -1,5 +1,5 @@ - + @@ -10,15 +10,17 @@ Description objectswfbitmap - stringfilename - intalphafilename + mixedfile + mixedalphafile &warn.experimental.func; swfbitmap creates a new SWFBitmap object from - the Jpeg or DBL file named filename. - alphafilename indicates a MSK file to + the Jpeg or DBL file in file. + alphafile is a MSK file to be used as an alpha mask for a Jpeg image. + Both parameters can be fopen resources or binary + strings. @@ -41,7 +43,7 @@ addFill(new SWFBitmap("png.dbl")); + $f = $s->addFill(new SWFBitmap(file_get_contents("png.dbl"))); $s->setRightFill($f); $s->drawLine(32, 0); @@ -71,7 +73,7 @@ $s = new SWFShape(); // .msk file generated with "gif2mask" utility - $f = $s->addFill(new SWFBitmap("alphafill.jpg", "alphafill.msk")); + $f = $s->addFill(new SWFBitmap(file_get_contents("alphafill.jpg"), file_get_contents("alphafill.msk"))); $s->setRightFill($f); $s->drawLine(640, 0); diff --git a/reference/ming/functions/swfdisplayitem.multcolor.xml b/reference/ming/functions/swfdisplayitem.multcolor.xml index 0ac32fbe48..e3e4f0d8a6 100644 --- a/reference/ming/functions/swfdisplayitem.multcolor.xml +++ b/reference/ming/functions/swfdisplayitem.multcolor.xml @@ -1,5 +1,5 @@ - + @@ -35,7 +35,7 @@ setRightFill($s->addFill($b)); diff --git a/reference/ming/functions/swfmovie.streammp3.xml b/reference/ming/functions/swfmovie.streammp3.xml index f979b82d6c..49b0029026 100644 --- a/reference/ming/functions/swfmovie.streammp3.xml +++ b/reference/ming/functions/swfmovie.streammp3.xml @@ -1,5 +1,5 @@ - + @@ -10,15 +10,17 @@ Description voidswfmovie->streammp3 - stringmp3FileName + mixedmp3File &warn.experimental.func; swfmovie->streammp3 streams the mp3 file - mp3FileName. Not very robust in dealing with + mp3File. Not very robust in dealing with oddities (can skip over an initial ID3 tag, but that's about it). Like swfshape->addjpegfill, this isn't a stable function- we'll probably need to make a separate SWFSound object to contain sound types. + Parameter mp3File can be a + fopen resource or a binary string. Note that the movie isn't smart enough to put enough frames in to contain @@ -35,7 +37,7 @@ setRate(12.0); - $m->streamMp3("distortobass.mp3"); + $m->streamMp3(file_get_contents("distortobass.mp3"))); // use your own MP3 // 11.85 seconds at 12.0 fps = 142 frames diff --git a/reference/ming/functions/swfshape.addfill.xml b/reference/ming/functions/swfshape.addfill.xml index 8ec42aba11..37a53b00c1 100644 --- a/reference/ming/functions/swfshape.addfill.xml +++ b/reference/ming/functions/swfshape.addfill.xml @@ -1,5 +1,5 @@ - + @@ -73,7 +73,7 @@ $p = new SWFMorph(); - $b = new SWFBitmap("alphafill.jpg"); + $b = new SWFBitmap(file_get_contents("alphafill.jpg")); // use your own bitmap $width = $b->getWidth(); $height = $b->getHeight();