Hi group,
I am a college student who is learning lingo for an advance multimedia
course. Most of my experience with director has been primarily score-based and
what basic lingo functions I'm familiar and comfortable with involve
rollovers.
I'm currently working on a practice problem for class, and I'm having
difficulty procuring the final script to make the file work. The file
consists
of a graphical keyboard interface that picks up what the users press down on
the actual keyboard. I know its going to be difficult to help without
actually
seeing the score, but I will try my best to be as descriptive as I can be. If
anyone can shed any light on what I'm doing or further explain what it is I'm
trying to accomplish, it will be much appreciated.
48 of the sprite channels are occupied. There is a sprite member on
each
of the 48 channels; the first one being the keyboard graphic. The subsequent
cast members are cutouts of the actual keys. Not all the keys are being used,
so there are only 47 sprites which follow that
From my understanding there are 4 scripts that make this work. One
"go
to frame", one movie script and two behaviors.
This I know is the movie script:
on keydown
put symbol(the key) into whichkey
put sprite(1).spritemap into Myspritemap
put Myspritemap.getprop(whichkey) into whichsprite
sendsprite(whichsprite,#setred)
end
on keyup
put symbol(the key) into whichkey
put sprite(1).spritemap into Myspritemap
put Myspritemap.getprop(whichkey) into whichsprite
sendALLsprites (#setgrey)
end
One of the behaviors is placed on the sprite on the first channel:
property spritemap
on beginsprite me
set spritemap = [:]
repeat with z = 2 to 48
thename = sprite(z).member.name
set thename = symbol (thename)
spritemap.addprop(thename, z)
end repeat
end
So the only one I'm missing is the one which sets the properties of #setred
and
#setgrey, which I know go on the sprites on sprite channel 2 to 48.
I have not had prior programming experience. Been looking through the
director
help files as well as reference books, but it's still been a struggling
process. What I've resolved to do is breaking down each component of the
script, so I could better understand what's being down overall.
I had someone break down the "property spritemap" script with me, so I'm
"somewhat" comfortable with how things are set up. But I get fuzzy on the
movie script, and I definately do not know where to begin with the final
behavior script. Any help or suggestions on how I can make this file work or
better yet advice on how I can better be acquainted with Lingo will be
appreciated.
Thanks!
Ivy
[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!]