Hi all,
I am new to this forum regarding to posting, although I have not before posted anything. Until now that is. I am experiencing quite a strange phenomenon: after I make a succesfull connection to my Red5 flash streaming server, the movieclip I am running the code in changes in size. Before netconnection.connect the size is 722x406 afterwards the size changes to some weird format: 724.85x408.85 You can’t see anything visually happening, there is NO code whatsoever that is responsible for changing the size of a movieclip. It seems to happen in the connect function because when I, right before the connect, trace out width and height of the object the size is correct. When the connect is succesfull a function is launched and the first thing that happens in that function is a trace of the width and height again. That is where the size seems off.
some snippets from my code:
This piece of code resides in a function but is way too long to post in full:
var oNetConnection:NetConnection = this.m_oMediaObject.m_oNetConnection = new NetConnection();
oNetConnection.addEventListener(NetStatusEvent.NET_STATUS, this.handleMediaStatus);
oNetConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.handleSecurityError);
oNetConnection.addEventListener(IOErrorEvent.IO_ERROR, this.handleIOError);
trace('before connect');
trace(this.width);
trace(this.height);
oNetConnection.connect( sConnectURI );
The piece of code that is called on a succesfull connect:
private function handleMediaStatus( p_oEvent:NetStatusEvent ):void
{
trace('handle media status');
trace(this.width);
trace(this.height);
switch( p_oEvent.info.code.toLowerCase() )
{
case "netconnection.connect.success":
this.connectNetStream();
break;
[...]
}
}
private function connectNetStream():void
{
trace('connect netstream');
trace(this.width);
trace(this.height);
[...]
Only the "before connect trace lines show 722x406 and the rest "show this odd size. Anyone have any vague idea what is going on? I checked all objects in question for Transform modifications but they all are 100% and no clip or symbol has an outline.
If someone has an idea I would be very gratefull.