Hi all,

I 'm using an script that has some globals
But the movie where i use the script has some markers where it jumps to
after the page is done, by using an button.
But because the globals are for the total movie it should be clreared when
it reaches the next marker.

can i put an clearglobals in an movie script

here is the script i'm using

global editList, correctList

property csn, mem

on beginSprite me

if correctList.listP=0 then correctList=["Half conserven", "Ham",
"Hangop","Haricots verts","Hareng","H�telet","Haute Cuisine","Herbes"]

csn=the currentSpriteNum

mem=sprite(csn).member

if editList.listP=0 then editList=[]

editList.add(csn)

end

on keyDown me

if the key=return then

myPos=editList.findPos(csn)

if mem.text=correctList[myPos] then

if myPos<editList.count then myPos=myPos+1

else myPos=1

the keyboardFocusSprite=editList[myPos]

end if

else

pass

end if

end

-- but on the other page the content of the list should be different.

-- what do i need to do to change the globals to be cleared, so the

-- next page with the modified list will work.



tia.



Herman Duijndam







[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