Hi Ricardo,
I know what you mean but there is not a .video command defined for swfc.
Though there is a VideoStream command or object in Ming library which can do exactly that but somebody with programming experience have to look into that and transfer
the code to swfc if is not too difficultt.
Here is the code for Ming :
<?
// some typical movie variables
Ming_setScale(20.0000000);
ming_useswfversion(7);
$movie=new SWFMovie(7);
$movie->setDimension(550,400);
$movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF));
$movie->setRate(8);
$strAction = "
stop();
nc=new NetConnection();
nc.connect(null);
NewStream=new NetStream(nc);
video1.attachVideo(NewStream);
NewStream.setBufferTime(10);
NewStream.play('counter.flv');
";
$stream = new SWFVideoStream();
$item=$movie->add($stream);
$item->setname( "video1");
$item->moveto( 187,128);
$movie->add(new SWFAction($strAction));
$movie->nextFrame();
// save swf with same name as filename
$swfname = basename(__FILE__,".php");
$movie->save("$swfname.swf",9);
?>
I think there is no way to do that with swfc and AS2.
I am looking for some AS3 learning materials other than
(http://jeanmichel.gens.free.fr/swfc/)
which apply to swfc.
AS3 from swfc look more like in Flex than Adobe Flash
Thanks for your answer.
Best Regards,
Iosif
From: Ricardo Pedroso <address@hidden>
To: swftools-common <address@hidden>
Cc: iosif budulai <address@hidden>
Sent: Thu, August 5, 2010 3:53:54 PM
Subject: Re: [Swftools-common] swfc video
>
> There is anything else possible here?
> Any help will be much appreciated.
Try this:
.flash filename="video_as2.swf" fps=24 bbox=900x500 background="" version=8
.action:
video_nc = new NetConnection();
video_nc.connect(null);
video_ns = new NetStream(video_nc);
video_holder.attachVideo(video_ns);
video_ns.play('600.flv');
video_holder._x=50;
video_holder._y=50;
.end
.video video_holder 400 400
.put video_holder
.end