[haXe] Video and AS3

Guntur N. Sarwohadi gsarwohadi at gmail.com
Fri Jul 6 15:16:51 CEST 2007


yup

On 7/6/07, Gilles Maire <Gilles.Maire at ungi.net> wrote:
>
> Thanks
>
> Is it on flash9 ?
>
>
> > For the flvplayer i did recently for ballofdirt.com, the url of the flv
> is
> > passed using flashvars on the html side. something like:
> >
> > <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
> > <param name="movie" value="flvplayer.swf?file=
> > http://some.flv.file.retrieved.from.db"/>
> > <embed src="flvplayer.swf?file=http://some.flv.file.retrieved.from.db"
> > type="application/x-shockwave-flash" pluginspage="
> > http://www.macromedia.com/go/getflashplayer"/>
> > </object>
> >
> > and fetch the url of file using flash.Lib.current.loaderInfo.parameters,
> > like:
> >
> > _file = Reflect.field(flash.Lib.current.loaderInfo.parameters, "file");
> >
> > should be able to play from netstream
> >
> > VideoStream.play(_file);
> >
> > Hope that helps ;)
> >
> > Guntur
> >
> > On 7/6/07, Gilles Maire <Gilles.Maire at ungi.net> wrote:
> > > Hi
> > >
> > > I use this peace of code to run Video on local disk :
> > >
> > > Video = new
> > > flash.media.Video(Value.get("VideoLength"),Value.get("VideoHeight"));
> > > var connection = new flash.net.NetConnection();
> > > connection.connect(null);
> > > VideoStream = new flash.net.NetStream(connection);
> > > VideoStream.play(url);
> > > Video.attachNetStream(VideoStream);
> > > sprite.addChild(Video);
> > >
> > > All is ok if I load flv video on disk
> > >
> > > Now I want to load video in database and load URL ...
> > > I don't understand AS3 doc. Can you help me to load video on URL ?
> > >
> > > Thanks
> > >
> > >
> > > --
> > > Gilles Maire
> > > UNGI
> > > http://www.ungi.net
> > >
> > > --
> > > haXe - an open source web programming language
> > > http://haxe.org
>
>
>
> --
> Gilles Maire
> UNGI
> http://www.ungi.net
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070706/998208ca/attachment.htm


More information about the Haxe mailing list