You keep resetting your list everytime, which is
why it isn't adding correctly.

Perhaps a property list is best here so you only
need one list to keep track of every marker.
First, initialize countList in your movie script

on startMovie
  global countList
  countList = [:]
end


Then, put this in the frame with the marker.

global countList

on beginSprite me
  countList[the frameLabel] = countList[the frameLabel] + 1
  put countList[the frameLabel] into field "fieldSec1"
end

on exitFrame me
  go the frame
end


HTH,
StevenSacks


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Yo Gomi
> Sent: Tuesday, November 21, 2000 3:47 PM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> RE: Lingo-L Digest V1 #1717
> 
> 
> Hello, Lingo-Ls
> 
> Thank you for helping me out (especially Colin and Steven, thank 
> you) every
> time I'm thrown into confusion. I'm in trouble again. Hopefully 
> someone can
> sort me out here.
> I'm trying to create a field to show a history - how many times you have
> visited the markers. I scripted the following.
> 
> on exitFrame
>   global countList,i,x
>   set countList = []
>   addAt countList,1,x
>   set i = countList.count
>   put i into field "fieldSec1"
> end
> 
> Why does not the value get sent to "i"?
> What did I do wrong?
> Any help greatly appreciated.
> Cheers.
> 
> Yo
> 
> 
> 
> 
> [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!]
> 
> 

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

Reply via email to