recompile scripts from lingo?


[ Zettels Traum ] [ search / suche ]

von dp am 28.Januar 97 um 16:22:36:

zu: Perlen aus dem Strom der Nachrichten im direct_L von Daniel am 22.Dezember 96 um 02:00:59:

Daniel Plaenitz wrote of a project on Jan 24, and the question seemed to
be, "Why can't I bring scripts from shocked movie to shocked movie like I
can with other media?"

First off, I'm glad that that media storage scheme seems to be working well
in that project, Daniel.

This won't work for scripts, though. You can definitely set the
"scriptText" property in .DCRs and .DXRs, and it will be recompiled on the
fly and execute.

However, when the movie is compressed, the text versions of all scripts are
removed from the movie. This is where the failure occurs -- I believe if
you debug you'll see that the global variable carrying media across movies
is not carrying any scripts at all, because there was no "scriptText" in
the old movie to be gotten.

Rephrased, the problem is not with recompiling, but with retrieving.

Options to achieve the goal include duplicating your scripts as textfields
and getting these, or (probably much better) using object-oriented
scripting so that these behaviors are carried along from movie to movie
naturally, within a globally-referenced object. (You could even stuff media
in as properties within this object, should that be appropriate.)

Regards,
John Dowdell
Macromedia Tech Support



Dazu:























D. Plänitz