Henry Minsky ha scritto: > This is a lot easier in DHTML runtimes than for swf runtimes, because > there is a javascript > interpreter built into DHTML runtime.
Yes I can see that. > > You can just use "eval" to evaluate expressions. An equivalent of > constraints can be built at runtime, by registering > explicitly for events, but if you want to run the Laszlo constraint > analyzer to extract the dependencies out > of a javascript expression, it has to be done through the compiler. > > The swf runtime has no Javascript interperter available to it, and > 'eval' does not really do anything useful, so > it is much more difficult to do what you describe. Our debugger in swf > actually sends javascript expressions back > to the LPS server, where they are compiled by our compiler. You could > do that too, using the same mechanism, I suppose. If you look at how > the debugger works, it sends a request to the server with the query > arg "lzt=eval" and "script=your-javascript-expression...", and it > returns a swf movie, that when loaded by loadMovie, will execute that > expression. > I thought about something like that but I didn't know about loadMovie. Sounds interesting I'll try to see if can put it to work in my context. Thank you. M.
