> I look up both getPref and setPref I do not have the files save as a
> shockwave.
> 
> I have a InfoCenter here at the casino that players can go to and get
> information about our casino. This program is broken down in the 12
> sections. On the main screen I have 12 buttons each button going to that
> section of information, what I would like to do is track each button.
> That was I can see which is being used and which section is not so I can
> update  the section that is not being used. And pass to my boss how many
> people our using the InfoCenter.

Well, you can track all of that info within the program, and output it at
whatever intervals you like, in whatever form you like. Somebody might
suggest a way to do it with globals, but I would make an object that tracks
each button click and stores it. So, in your button behaviors, where the
property pMyButton is the button in question (you can set that however you
prefer, through a gpl, or a custom method):

-------------------------
global gButtonTracker
property pMyButton

on mouseUp me
  gButtonTracker.mAddClick(pMyButton)
  --whatever else this button does
end
-------------------------


gButtonTracker object:
-------------------------
property pClickedList

on new me
  pClickedList = [:]
  return me
end

on mAddClick me, whichButton
  if voidP(pClickedList.getAProp(whichButton)) then
    pClickedList.addProp(whichButton, 1)
  else
    pClickedList[whichButton] = pClickedList[whichButton] + 1
  end if
end 

on mGetClicks me, whichButton
  return pClickedList[whichButton]
end
-------------------------

That will keep track of all clicks through the life of the program. As for
output, you could get it at will, or have it write a log, or even print,
since you have a closed network environment.

If you want a descriptive string of all clicks, add this to the above:

-------------------------
on mGetReport me
  tempstring = ""
  repeat with i = 1 to pClickedList.count()
    tempstring = tempstring & pClickedList.getPropAt(i)\
& ":" && pClickedList[i] & Return & Return
  end repeat

  return tempstring
end
-------------------------

Whatever your output is, you just call the mGetReport method from the master
object. However the data is "saved", the calculations are removed from the
"save" operation. howeverYouNameTheObject.mGetReport() will return a string
that you could print, save, or email.

HTH,
Kurt












[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