Hi i actually had time to walk throu the videoconference
Actionscript-sourcecode and
have a maybe stupid questions about it, just to understand something
about the synthax,
it would be nice if someone could answhere.
About the Connection , why do u set the local public var connected in
the Connector.as
here to true?:
[code]
public function makeConnection(evtObj:Object):Void
{
if(uri.length > 0)
{
var goodURI = connection.connect(uri.value, getTimer());
if(!goodURI)
{
alert.show("Please check connection URI String and try
again.");
} else {
connected =
true;//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< this i mean
// update LSO
LSOUserPreferences.setPreference("uriList",
uri.dataProvider, true);
addNewURI(uri.text);
}
}
}
[/code]
may i understand the "super synthax" wrong but the changing of the
locale public
variable "connected" shouldent affect the connection
"connect.connected" as long as u doesent apply
the locale conected to the super method AFTER it is set like its
done for the close method eg.
Connector.as
[code]
public function closeConnection(evtObj:Object):Void
{
if(connection.connected)
{
connected = false;
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< setting
connection.close();
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< calling
}
}
[/code]
--- and ---
Connection.as
[code]
public function close():Void
{
// closes the connection to red5
dispatchEvent({type:"connectionChange", connected:connected});
super.close();//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
applying and closing
}
[/code]
for the connect method it shouldent make sense if the locale public
variable conected in connector
is true or false because u applyed the arguments that u send to
connections.connect and thats only the URI
and apply them BEVORE the locale variable connected is invoked even set,
or am i wrong?
eg.:
Connection.as
[code]
public function connect():Boolean
{
// if the URI is valid, it will return true. This does NOT mean
it's connected however.
var goodURI:Boolean = super.connect.apply(super,
arguments);//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< applying arguments only and
bevore setting local conect!
return goodURI;
}
[/code]
it would be nice if someone could explain, thanks.
greetz Sascha
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org