To send you the ends of a line which is a tag, I use HTML Symbol Entities from w3schools
An example, taken from a project would be as follows:
< asset path="library\video.swf" />
The line above shows that there is a directory called library which contains the file video.swf
Besides, there is the file video.xml in the directory library. That file contains the lines
<xml version="1.0" encoding="utf-8" >
<movie version="7">
<frame>
<library>
<clip id="VideoDisplay">
<frame>
<video id="VideoSurface" width="160" height="120" />
<place id="VideoSurface" name="video" />
</frame>
</clip>
</library>
</frame>
</movie>
Long ago my son Alex downloaded the code of VideoDisplay class and the directory library from Internet
I have iproved the code of the class VideoDisplay.
by writting 2 members
public function pos():Number
{
return ns.time;
}
public function close():Void
{
return ns.close();
}
The program I have created
is
more than an explorer and presenter of .flv
files
It also
is an explorer and presenter of the chosen fragments of each .flv
file
Now the code of VideoDisplay class is:
class util.VideoDisplay
{
function VideoDisplay(targetURI:String, parent:MovieClip, name:String, depth:Number, initObj)
{
display = parent.attachMovie("VideoDisplay", name, depth, initObj);
nc = new NetConnection();
nc.connect(targetURI);
ns = new NetStream(nc);
display.video.attachVideo(ns);
}
function setSize(width:Number, heigth:Number):Void
{
display.video._width = width;
display.video._height = heigth;
}
function setLocation(x:Number, y:Number):Void
{
display._x = x;
display._y = y;
}
public function play(url:String, bufferTime:Number):Void
{
if (bufferTime != undefined) ns.setBufferTime(bufferTime);
ns.play(url);
}
public function pause():Void
{
ns.pause();
}
public function seek(offset:Number):Void
{
ns.seek(offset);
}
public function pos():Number
{
return ns.time;
}
public function close():Void
{
return ns.close();
}
private var display:MovieClip;
private var nc:NetConnection;
private var ns:NetStream;
}