Hi,
At 11:01 AM 4/30/2002 -0500, you wrote:
>>>What do you mean 'refused to work'?
>>
>>On the script window, top left hand corner, below the arrows and the plus
>>sign, there is a drop down menu which is a go to handler window. I
>>notice that Director sometimes takes the first words of the script e.g.
>>like startMovie. Global appears though I tried to reset it to exit frame
>>but it didn't do so.
>
>It only refers to 'global' when the insertion point is in an area
>traditionally used to declare global variables. That's just a navigation
>assistant -- you can use it to jump quickly to a given handler, but you
>can't set it to anything, and it's not meant to describe the type of
>script at all.
Thank you. For once I was afraid that I was doing something wrong.
>>There are also scripts attached to cast members (which is not recommended
>>by Macromedia as you wrote on pages 96 -97)
>
>Mmm, well, I believe they'd be happier if people would stop using Cast
>member scripts, yes. ;)
May I know how a cast member script is written?
From the Director help,
'Unlike behaviors, movie scripts, and parent scripts, cast member scripts
don't appear in the Cast window. However, if Show Cast Member Script Icons
is selected in the Cast Window Preferences dialog box, cast members that
have a script attached display a small script icon in the lower left corner
of their thumbnails in the Cast window.'
Do they look like behaviors?
>>I have not come across any parent scripts. Sorry, but I haven't read
>>module 12.
>>I am far behind.
>
>No you're not; I'd say you're doing quite well. ;)
I have hardly read your book beyond the first five modules, and I am
making so many ( or rather too many) mistakes...
How could it be so?
>>>>But I have a sound file which contains some speech at frame 143. That's
>>>>why I inserted Irv's script at frame 140.
>>>
>>>Do you have a go the frame script in frame 143?
>>
>>No. Should I have one?
>
>Good question. Do you want Director to remain on that frame until a sound
>is finished playing? If so you need to do something to tell it so, either
>by setting a cuepoint or using a framescript.
But I did not do it originally. Actually the sound file was 10 frames long
- which you actually recommended that I do not do. After that, I used a
transition. But now the transition does not work either. How do I solve this?
You mention using a framescript, I believe you mean this:
property pEndTicks
on beginSprite me
pEndTicks = the ticks + (4*60) -
end
on endSprite me
if the ticks < pEndTicks then
go to the frame
end if
end
Why is it that a timer not suitable for this?
At frame 139, I have this script to soften the introductory music and fade
it away.
on exitFrame me
if sprite(27).volume > 0 then
sprite(27).volume = sprite(27).volume - 1
go the frame
else
go to marker ("firstmarker")
end if
end
Does writing this code conflict with the volume control behavior you wrote?
And 'firstmarker' contains the code in frame 140 (the ticks) But the
playhead still stops at 'firstmarker'. Why?
>>Actually, as the movie becomes more and more complex, I find it more and
>>more difficult to debug.
>
>Yes -- this is the "fun part". It doesn't hurt to try to break things down
>into logical pieces, perhaps writing different movies that each do
>different things, but in complete isolation from each other -- and then
>copying and pasting the Score contents into one mega-movie.
"Fun" ? More like frustration...
Also ( sorry,this is more of a re-assurance) the behavior you wrote is
generic.
So it should not conflict with the rest of the code I wrote?
But there is still something I do not understand. In the original movie,
the code worked with lingo pause, transitions ,everything. I did many
score based things with no problems.
However, when I added the volume control behavior the movie refused to run.
Yet even button behaviors do not work now. Is it because there
was something wrong with what I had originally done?
Thank you.
Noelle
[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!]