[Laszlo-user] help with LzSprite object in extensions/av/videoview
Henry Minsky
henry.minsky at gmail.com
Mon Jul 23 05:09:33 PDT 2007
There is a magic resource compiled into the Laszlo swf runtime which
is a video movieclip object, with the special name "__LZvideo" . In
the source code which generates the library there is this piece of
code
// 9.2 A definevideostream tag inside a movieClip so we
can attach video streams
movieClip = new Script(1); // add single frame movieClip
export("__LZvideo", movieClip);
video = new VideoStream(160,120);
movieClip.getFrameAt(0).addInstance(video, 8, offScreen,
null, "__lzvideo");
So the code you refer to below is attaching that specially named
resource to the sprite. The sprite is the "runtime-dependent"
graphical object in the laszlo runtime which is responsible for
displaying graphics and text, as well as audio and video.
On 7/23/07, Pierre Augier <pierre.augier at inrialpes.fr> wrote:
> Hi all
>
> i'm modifiing videoview, and i would like to know what does this code
> (in the init method) :
>
>
> var mc =
> immediateparent.sprite.attachResourceToChildView("__LZvideo", this.sprite);
> this.sprite.setMovieClip(mc);
> this.__LZmovieClipRef = this.sprite.__LZmovieClipRef;
>
>
> does anyone have docs / knows what is a sprite ? and what are the
> __Lzvideo and __LZmovieClipRef variables/object ??? (sry i'm very new to
> "flash" programming)
>
> i've found a donc on LzSprite in the doc, but there is not so much
> details about this. I guess this byte of code is attaching a "core"
> flash video object, but i would be happy to learn more about that.
>
> regards
>
> Pierre
>
>
>
>
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-user
mailing list