|
Prev: Progress bar
Next: Message Window in Projector
From: Darrel Hoffman on 14 Jan 2008 16:41 Something about this doesn't seem to be working as advertised. I'm trying to change some properties on a few stage sprites via scripts from an MIAW. According to the documentation, I should be able to do this via: window("stage").movie.sprite(X).someProperty = value Although the example shows it done with members and not sprites, and it doesn't say that sprites will work (it claims "handlers, variables, members, and so on", but never specifies what "and so on" means.) Alternatively, it says you can run a handler in the stage's scripts, which I've also tried by having a Movie script saying on setSomeProperty value sprite(X).someProperty = value end and then in the MIAW I call: window("stage").movie.setSomeProperty(value) In either of these cases, I get the same problem, in that it comes up with an error and asks me to find the movie in question, and even if I do point to the right one, it never works properly. I've tried replacing "window("stage").movie" with several other formations, none of which work. ("_movie" or "(the stage)", "_stage", a couple others.) I assume I'm missing some magic bit of code that will make this work properly, but the documentation for this feature is woefully sparse. I seem to recall the "tell" command was used for this before, but now it says that "tell" is obsolete. (Is it just me, or have the help files become far less useful than they used to be? Director used to have the best help files, but it seems as of MX or MX 2004 they really dropped the ball on this. Nothing seems to be explained as well as it should be, and it all seems to assume you already know how to do everything. I think they need to hire whoever wrote the help files for the pre-MX versions to make them useful again.)
From: Mark A. Boyd on 14 Jan 2008 23:31 "Darrel Hoffman" <no.address(a)all.com> posted in macromedia.director.lingo: > Something about this doesn't seem to be working as advertised. I'm trying > to change some properties on a few stage sprites via scripts from an MIAW. > According to the documentation, I should be able to do this via: > > window("stage").movie.sprite(X).someProperty = value Hi Darrel, Are you working in MX2004 with files created in MX or older? If so, check the docs for scriptExecutionStyle. Or if it's not in the docs, search groups.google.com. I'm sure I remember reading something about that when MX2004 came out. I seem to recall there were changes in the syntax for MIAWs and timeout objects. -- Mark A. Boyd Keep-On-Learnin' :)
From: Darrel Hoffman on 15 Jan 2008 00:02 > Are you working in MX2004 with files created in MX or older? MX2004, though it was originally created in MX, so there may be some older residual settings? > If so, check the docs for scriptExecutionStyle. Or if it's not in the > docs, > search groups.google.com. I'm sure I remember reading something about that > when MX2004 came out. Not in the docs, I'll try Google Groups, but I'd have figured it'd be here if anywhere...
From: Sean Wilson on 15 Jan 2008 02:08 From your message window: put the scriptExecutionStyle -- 9 the scriptExecutionStyle = 10 put the scriptExecutionStyle -- 10 <save movie file for changes to stick>
|
Pages: 1 Prev: Progress bar Next: Message Window in Projector |