lingo-l Interesting Question...

2002-05-22 Thread Jayp

A short while ago I asked if it was possible to load shockwave movies
into a bas shockwave movie. The answer was yes.

Thinking further on these lines...

Does that mean globals from my MAIN movie will pass to the subordinate
shockwave movie?

Ie. A parent object created in the main movie will be able to be called
in a subsidory shockwave movie?

Thanx
Jayp


[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!]



Re: lingo-l Interesting Question...

2002-05-22 Thread Howdy-Tzi

At 17:05 +0100 05/22/2002, Jayp wrote:

Does that mean globals from my MAIN movie will pass to the subordinate
shockwave movie?

If the two files are running under the same shock session, yes. That 
is, if movie 1 did a play movie, go movie or gotonetmovie, yes, the 
globals pass, just as they do in a projector or author session.

-- 

  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://shop.osborne.com/cgi-bin/osborne/0072195622.html
[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!]



Re: lingo-l Interesting Question...

2002-05-22 Thread bhakti

but not if it's an ldm?

Howdy-Tzi wrote:
 
 At 17:05 +0100 05/22/2002, Jayp wrote:
 
 Does that mean globals from my MAIN movie will pass to the subordinate
 shockwave movie?
 
 If the two files are running under the same shock session, yes. That
 is, if movie 1 did a play movie, go movie or gotonetmovie, yes, the
 globals pass, just as they do in a projector or author session.
 
 --
 
   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://shop.osborne.com/cgi-bin/osborne/0072195622.html
 [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!]
[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!]



Re: lingo-l Interesting Question...

2002-05-22 Thread Colin Holgate

but not if it's an ldm?


Globals established by the LDM should be usable in the main movie, 
even in shockwave. It's easy to test (though not so easy that I'm 
going to do it for you!).


-- 
[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!]



Re: lingo-l Interesting Question...

2002-05-22 Thread Roy Crisman

And instantiated scripts will also pass.

So if a global holds the reference to an instance of a parent script, that 
code-object will continue to be available, even though the 'cast member' 
which holds the script for it isn't in the new movie.

roymeo

At 11:45 AM 5/22/2002 -0500, you wrote:
At 17:05 +0100 05/22/2002, Jayp wrote:

Does that mean globals from my MAIN movie will pass to the subordinate
shockwave movie?

If the two files are running under the same shock session, yes. That is, 
if movie 1 did a play movie, go movie or gotonetmovie, yes, the globals 
pass, just as they do in a projector or author session.

--

  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://shop.osborne.com/cgi-bin/osborne/0072195622.html
[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!]


-
Roy Crisman
Senior Macromedia Programmer
(585)724-4054
[EMAIL PROTECTED]

[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!]



Re: lingo-l Interesting Question...

2002-05-22 Thread Rob Romanek

Hey Bhakti,

Globals cross the LDM scope as well this can be good and bad, in that 
you can transfer information across the whole project but unlike flash 
you don't have a simple way to have movie level variable, that is a 
global that is contained within the LDM. However this can be done, you 
can create movie variables I wrote about this for DOUG.

The other thing to remember about globals is if they hold a reference to 
an object then that object will act on whatever level it is being called 
from. So if an object has a method to change the member of sprite 5's 
member then if called from the stage it will act upon sprite 5 in the 
stage if you make the call from within an LDM it will act on sprite 5 of 
the LDM. The global can originate from anywhere, LDM  or stage and be 
used by anyone.

later,

Rob

bhakti wrote:

but not if it's an ldm?

Howdy-Tzi wrote:

At 17:05 +0100 05/22/2002, Jayp wrote:

Does that mean globals from my MAIN movie will pass to the subordinate
shockwave movie?

If the two files are running under the same shock session, yes. That
is, if movie 1 did a play movie, go movie or gotonetmovie, yes, the
globals pass, just as they do in a projector or author session.

--



[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!]



Re: lingo-l Interesting Question...

2002-05-22 Thread bhakti

i would think they'd be called universals. calling them globals is planet-ist.

Howdy-Tzi wrote:
 
 At 10:39 -0700 05/22/2002, bhakti wrote:
 
 but not if it's an ldm?
 
 Since an LDM would still be running under the same shock session,
 yes, the globals are available. That's why they are called... globals.
 
 :D
 
 --

[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!]