Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: messaging parent movie |
| From: | David Baldeschwieler |
| Date: | Tue, 5 May 1998 00:15:33 +0100 |
Andrew,
If you want a frame or button in a loaded .swf movie to send a message
to the parent movie, simply apply a "Tell Target" action to that frame
or button. Within the tell target action, designate:
_level0
(that's "underscore level zero") as your target. level0 (level zero) is
the level of the player in which the main movie resides. All loaded
movies get loaded into a level# greater than zero. The author (you) can
designate any level # you like (between 1 & 16,000) for your loaded
movies - but the main movie always resides on "level0".
One minor complication that you (and any other flasher that tries
something along these lines) will encounter is this: You CAN NOT specify
a scene for goto actions within a Tell Target action statement (this is
not a bug). So if you want to designate a goto action to goto a certain
scene from within a tell target action, the work around is:
Apply a unique frame label to the actual frame you want to target with
your goto action, and then designate that label as the target.
So for what you are trying to achieve with your score keeping movie, it
sounds like what you need to do is apply the following action to the
last frame in your loaded movie:
Tell Target: _level0
Goto and Play: frame label name
End Tell Target
When the score counter hits that last frame, it will send a tell target
action to the main movie which will send the main playback head to
whatever frame label you have designated. Remember to type in your
target frame label name EXACTLY as it is spelled on the actual frame
label within your main movie, or the tell target action won't work
properly.
Hope that helps!
-DB
-Flash QA Team
Date: Sun, 03 May 1998 23:34:58 -0500
From: "Andrew H. Otwell" <aotwell
Subject: messaging parent movie
What's the correct syntax for sending a message to the top level
movie, or can you? I've got a child movie that keeps a score in a
game--it
increments through frames one at a time according to messages it's sent
by
the main movie: go to the next frame every time the palyer scores a
point.
How do I jump to the next scene of the _main_ movie when the score gets
to
the end? Can I send a frame action from my child "score" that's being
controlled by my top level main movie?
thanks
andrew
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

