Thanks for the explanation.  That makes sense.  I've checked in a 
modified rtmpconnection with the __resolve function definition commented 
out, until we sort all this out.

I'm still confused as to why the test file worked for me.  What version 
of the Flash Player are you running?  (I've got FP8)  I'm going to spend 
a bit of time with the Flash docs.  Sigh.

Sarah

Sebastian Wagner wrote:
> hi,
>
> some words about the "__resove" thing...
>
> If tested the "__resolve" thing in some cases and at 90% the hole app 
> "freezes" :-(. I think basically because of two things:
>
> If you follow the examples for "__resolve" from the livedocs
> http://livedocs.macromedia.com/flashlite/2/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000734.html
>  
> <http://livedocs.macromedia.com/flashlite/2/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000734.html>
> "__resolve" should catch all unhandled calls _and_ properties of a 
> Object, what would be quite usefull to handle calls in NetConnection.
>
> but if you write
> this._nc = new NetConnection();
> this._nc.__resolve = function(name) {
>             if (this.debug) {
>             }
> }
> this.debug, will freeze the app cause Object NetConnection has no 
> property "debug" (our LZX-class has one but "this" is a reference to 
> NetConnection-Object). __resolve catches that "unhandled-porperty"--> 
> calls this.debug--> unhandled --> __resolve --> this.debug --> ... et 
> cetera --> infinite loop
>
> also writing
> this._nc.__resolve = function(name) {
>   Debug.write("name"+name);
> }
> does freeze the app for me cause
> Debug.write is the same like this.Debug.write and "this" ... --> 
> infinite loop
>
> only:
> this._nc.__resolve = function(name) {
>   _root.Debug.write("name"+name);
> }
>
> is handled the right way (or did handle it like i expected it).
>
> The other thing is: "__resolve" should only get called if a 
> method(property) is _unhandled_. But from my point of view it just 
> catches every event/property. Even onStatus-Events.
>
>
> ... that was quite a lot of description ... anyway basically the thing is:
> How to catch calls broadcasted by server?
> In "Persistant-Connection" like "XMLSocket" you have XMLSocket.onData 
> ... in NetConnection there isn't something like that "out of the box".
>
> So any ideas how to solve that?
>
>
> 2006/5/20, P T Withington < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>:
>
>     Use Debug.showInternalProperties=true to see everything.
>
>     Also, if you want to trace a method without inserting Debug.write's
>     and recompiling:
>
>        Debug.trace(object, 'methodName')
>
>     will print out each time object.methodName is called.  E.g.,
>
>     lzx> bar = { f: function f (a) { return a + 1 }}
>     «Object#10| {}»
>     lzx> Debug.trace(bar, 'f')
>     lzx> bar.f(5)
>     TRACE: [209585.19] f.apply({}, [5])
>     TRACE: [209597.94] f -> 6
>     6
>     lzx>
>
>     Tracing displays the call (with arguments) and the return (with
>     result).
>
>     You can monitor properties by using:
>
>        Debug.monitor(object, 'propName')
>
>     Debug.untrace and Debug.unmonitor to turn them off.  E.g.,
>
>     lzx> foo = {a: 42}
>     «Object#59| {a: 42}»
>     lzx> Debug.monitor (foo, 'a')
>     true
>     lzx> foo.a = 7
>     MONITOR: [733626.06] unknown file#1/2: {a: 42}.a: 42 -> 7
>     7
>     lzx>
>
>     Monitoring shows the object and the old and new values.
>
>     I hope the doc-meister will find this examples useful fodder.
>
>     On 2006-05-19, at 17:27 EDT, Adam Wolff wrote:
>
>     > the debugger supresses identifiers that begin with __ by default.
>     > this bit
>     > me earlier in the week :)
>     > A
>     >
>     > On May 19, Sarah Allen wrote:
>     >
>     >>
>     >> odd.  It works for me with red5 without removing those lines
>     >> (connecting
>     >> to both "test" and "oflaDemo").  I added debug statements and I
>     don't
>     >> see __resolve ever getting called.
>     >>
>     >> Sebastian Wagner wrote:
>     >>
>     >>> hi,
>     >>>
>     >>> From the repo-dir you have comment out / remove the following
>     code
>     >>> lines from extension/rtmpconnection.lzx (from Line 54):
>     >>>
>     >>>        this._nc.__resolve = function(name) {
>     >>>             if (this.debug) {
>     >>>                 Debug.write("__resolve " , name, typeof(this
>     >>> [name]));
>     >>>                 Debug.write("  arguments.callee.name
>     <http://arguments.callee.name>
>     >>> < http://arguments.callee.name> " , arguments.callee.name
>     <http://arguments.callee.name>
>     >>> <http://arguments.callee.name>);
>     >>>             }
>     >>>             if (typeof(this[name]) == "function") {
>     >>>                 this[name].apply( arguments );
>     >>>             }
>     >>>         };
>     >>>
>     >>> Then the files from the video-repo should work fine.
>     >>> I did quickly a example of the Red5-oflaDemo just for testing (see
>     >>> attached).
>     >>> and this works with my red5 installation:
>     >>> http://appserver.webbase-design.de/lps-latest/streaming/branch/
>     >>> test-red5oflaDemo.lzx
>     >>>
>     >>> regards
>     >>> sebastian
>     >>>
>     >>> 2006/5/19, J Crowley < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >>> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>:
>     >>>
>     >>>     Hrm, if I'm interpreting this correctly, you're giving a
>     >>> "localhost"
>     >>>     for a value that you're putting on a server.  The server
>     >>> isn't going
>     >>>     to connect to your personal "localhost", it'll treat
>     >>> "localhost" as
>     >>>     the server itself, since it's relative to the location of the
>     >>>     reference.  That is, if you make a file that links to, say,
>     >>>     " http://localhost/test.html";, and you upload it to server
>     >>>     www.foo.com <http://www.foo.com> <http://www.foo.com >,
>     >>>     it'll be linking to www.foo.com/test.html
>     <http://www.foo.com/test.html>
>     >>>     <http://www.foo.com/test.html> and not to your computer.
>     >>>     In order to link it back to your own localhost--your own
>     >>> computer--you
>     >>>     have to specify the IP address of your machine.
>     >>>
>     >>>     If I'm misinterpreting, I apologize.
>     >>>
>     >>>     -Josh
>     >>>
>     >>>
>     >>>     On 5/19/06, ??? <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >>>     <mailto: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>> wrote:
>     >>>> Hi,all:
>     >>>>          I check all the .lzx file from the svn path
>     >>>> http://svn.openlaszlo.org/openlaszlo/branches/video/test/video/
>     >>>     and then I
>     >>>> change the test-rtmpconnection.lzx file
>     "rtmp://localhost/test" to
>     >>>> "rtmp://localhost/oflaDemo" and then publish it to openlaszlo
>     >>>     server, but it
>     >>>> does not connect the red5 server in my localhost,why? The status
>     >>>     is always
>     >>>> connecting,and other test-*.lzx is the same problem,pls reply me
>     >>>     ,thks!
>     >>>> Best regards!!
>     >>>>
>     >>>>
>     >>>> _______________________________________________
>     >>>> Laszlo-dev mailing list
>     >>>> [email protected] <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>     >>>>
>     >>>
>     >>>     _______________________________________________
>     >>>     Laszlo-dev mailing list
>     >>>     [email protected]
>     <mailto:[email protected]>
>     <mailto:[email protected] <mailto:[email protected]>>
>     >>>     http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>     >>>
>     >>>
>     >>>
>     >>>
>     >>> --
>     >>> Sebastian Wagner
>     >>> http://www.webbase-design.de
>     >>> http://www.laszlo-forum.de
>     >>> Bleichstraße 92
>     >>> 75173 Pforzheim
>     >>> Tel.: 0177-7341829
>     >>> Home: 07231-417456
>     >>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     >>>
>     >>>
>     --------------------------------------------------------------------
>     >>> ----
>     >>>
>     >>> _______________________________________________
>     >>> Laszlo-dev mailing list
>     >>> [email protected] <mailto:[email protected]>
>     >>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>     >>>
>     >>>
>     >>
>     >> _______________________________________________
>     >> Laszlo-dev mailing list
>     >> [email protected] <mailto:[email protected]>
>     >> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>     <http://www.openlaszlo.org/mailman/listinfo/laszlo-dev>
>     > _______________________________________________
>     > Laszlo-dev mailing list
>     > [email protected] <mailto:[email protected]>
>     > http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>     _______________________________________________
>     Laszlo-dev mailing list
>     [email protected] <mailto:[email protected]>
>     http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>
> -- 
> Sebastian Wagner
> http://www.webbase-design.de
> http://www.laszlo-forum.de
> Bleichstraße 92
> 75173 Pforzheim
> Tel.: 0177-7341829
> Home: 07231-417456
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>   

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to