At 22:45 -0700 05/04/2002, Mushtaq Farooqui wrote:

>I would be very grateful to anyone who can help me with this problem: I have
>a start movie which calls a MIAW when a user clicks a button. I would like
>to give the user the option of changing the background music and background
>image (changing the cast members. How would I do this to a dcr?

OK, first off, I'm not sure what you mean by dcr. If you are 
referring to a Shockwave file, you will have to completely re-tool 
your approach, because MIAW is not supported in Shockwave.

Otherwise you can perform any operations you want by using tell window:

   tell window whatever
     -- whatever you want it to do
   end tell

You can also just add scripts to the MIAW and call them, but I prefer 
the tell option. Often now when I use MIAWs they are deliberately 
created as satellites to my main movie. I put a messaging behavior 
into the script channel; it handles all the communication between my 
main movie and the MIAW. This lets me keep things object oriented.

In that case I do calls to sprite 0:

   tell window whatever
     sendSprite ( 0, #DoSomeThing )
   end tell

This takes a little practice -- it's not the kind of approach where 
you can just go balls-out and begin slapping code into everything -- 
but man is it stable.

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
          http://www.osborne.com/indexes/beginners_guides.shtml
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to