> the following doesn't work:-
>
>
> in the first movie :
>
> on prepareMovie
> global mName
> set mName to "firstmovie.dcr"
> end prepareMovie
>
>
>
> then in the second movie:
> on prepareMovie
> global mName
> end prepareMovie
>
> on mouseUp
> gotoNetMovie mName
> end mouseUp
That's because you declared your global on prepare movie, but where you
actually need it is on mouseUp.
To save yourself hassle, always declare globals on top of the script, as
opposed to inside an individual handler. This way the global is declared for
ALL the handlers in the current script.
In this example both the prepareMovie handler and the mouseUp handler will
recognise the handler:
---------------
globlal mName
on prepareMovie
put mName
end
on mouseUp
gotoNetMovie mName
end mouseUp
----------------
PS: that's if your mouseUp really is in a movie script. For a sprite
mouseUp:
globlal mName
on mouseUp me
gotoNetMovie mName
end mouseUp
Karina Steffens,
Multimedia Designer/Programmer
Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin
Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]