Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Sid #1
Having instructions happen in on prepareMovie that are passed on from current movie
If I had in "Movie1"
on mouseUp
go to movie "Movie2"
do stuff
end
Then I would be taken to Movie2 and the 'do stuff' would happens when the
move starts.
What if I wanted the 'do stuff' to happen in 'on prepareMovie' instead?
I hope that makes sense.
Thank you
Sid
Sid Guest
-
Reverse button for current movie
I have a reverse button that is working now, but when I hold it down too long it aborts the movie. I have this function in frame 1 of the movie: ... -
#25879 [Bgs]: SORT_ASC when passed into a function can NOT be passed as a string
ID: 25879 Updated by: alan_k@php.net Reported By: it at oh-barcelona dot com Status: Bogus Bug Type: ... -
#25879 [Opn->Bgs]: SORT_ASC when passed into a function can NOT be passed as a string
ID: 25879 Updated by: mgf@php.net Reported By: it at oh-barcelona dot com -Status: Open +Status: ... -
#25879 [Bgs->Opn]: SORT_ASC when passed into a function can NOT be passed as a string
ID: 25879 User updated by: it at oh-barcelona dot com Reported By: it at oh-barcelona dot com -Status: Bogus... -
#25879 [NEW]: SORT_ASC when passed into a function can NOT be passed as a string
From: it at oh-barcelona dot com Operating system: Windows PHP version: 4.3.2 PHP Bug Type: Variables related Bug... -
Mark A. Boyd #2
Re: Having instructions happen in on prepareMovie that are passed on from current movie
On 02 Dec 2003, "Sid" <lent_epiphany@hotmailKILLCAPITALS.com> wrote:
It actually makes more sense to me. Just put that stuff in the prepareMovie> What if I wanted the 'do stuff' to happen in 'on prepareMovie' instead?
>
> I hope that makes sense.
event in a movie script in "Movie2"
But judging by your subject line, it seems you may want to specify which
stuff gets done, or do stuff only under certain conditions. In that case,
you might want to set a global variable. The following example sets a
global variable flag that Movie2 can act on if it is set to true:
-- Movie1
global gDoStuff
on mouseUp me
gDoStuff = 1
go to movie "Movie2"
end
-- Movie2
global gDoStuff
on prepareMovie
if gDoStuff then
stuff()
gDoStuff = 0
end if
end
--
Mark A. Boyd
Keep-On-Learnin' :)
Mark A. Boyd Guest
-
Sid #3
Re: Having instructions happen in on prepareMovie that are passed on from current movie
"Mark A. Boyd" <mblist@sanDotrr.com> wroteThank you Mark. I was hoping to avoid doing it with global variables, but> -- Movie1
> global gDoStuff
> on mouseUp me
> gDoStuff = 1
> go to movie "Movie2"
> end
>
> -- Movie2
> global gDoStuff
> on prepareMovie
> if gDoStuff then
> stuff()
> gDoStuff = 0
> end if
> end
that's only me being lazy. :)
Thanks again!
Sid
Sid Guest



Reply With Quote

