At 21:49 +0800 05/06/2002, noelle cheng wrote:
>To set a cue point, I need to set the cue points in an external
>program like Cool Edit first, then re-import the sound file right?
No, you can go into the tempo channel and tell Director to hold on
that frame until the sound is finished playing or, in the case of
QuickTime, the 'digital video' in a given channel is finished
(Director will treat QT audio as digital video).
>>>What is the purpose of using a timer in Director?
>>
>>Um, timing things. ;)
>
>I gather that you seldom use timers, if at all.
I use them whenever I need to time things. Timers are neither exotic
nor esoteric. There's no mystery to either their porpose or
construction, and the reasons for using them are quite
straightforward. If you want to time things, you use timers.
>Thanks, I understand this. But what did Irv mean, when he wrote this:
>
>�If you are doing timing somewhere else in your program, then there
>might be an interaction�? Does he mean a conflict?
Probably, yes.
>endSprite occurs once only at the end of the frame span. exitFrame
>happens whenever the playhead leaves a frame. So if there are six
>frames, there will be six exitFrames and only one endSprite.
Yes, that's correct.
>The playhead stops at the next frame. So HALT doesn�t affect endSprite.
That's right.
>But I am not sure why- is it because of the loop?
No, it's because when you stop a Director file from playing, whatever
behaviors might be present on that frame get endSprite messages. If
those behaviors happen to have endSprite handlers, they execute the
code found within them.
>The playhead stopped immediately on the next frame and stopped
>executing the rest of the commands.
>
>It is different when compared to 1b above. Is it because the HALT
>stopped the execution of further commands?
Yes, except for the endSprite call.
>I think I can answer the question myself now. This is how the
>script should look like (for a single frame span).
>
>property pEndTicks
>
>on enterFrame me
> pEndTicks = the ticks + (4*60) -
>end
>
>on exitFrame me
> if the ticks < pEndTicks then
> go to the frame
> end if
>end
>
>
>This is because I wanted the playhead to go to the next frame. If
>the ticks have not reached the required number (4*60), there is a
>loop on the frame.
>
>And once the ticks has reached the required seconds (4*60) it will
>exit the frame and move forward to the next frame. Is this correct?
Yes, that's correct. And now of course you have a much stronger feel
for how this happens and why.
>>>OnGetPropertyDescriptionList is a system handler. What does this
>>>mean? So there are different types of handlers?
>>
>>There are indeed. At minimum there are handlers *you* define, such
>>as the custom ones I made in the volume behavior; and ones that
>>Director is designed to recognize, such as frame, sprite and mouse
>>events. Of the latter I believe Macromedia has created several
>>distinctions, but I'm not sure how well defined those distinctions
>>are.
>
>Sorry, but what do you mean by these distinctions are not well defined?
System handlers versus other types. I'm not sure that the
distinctions are clear.
>there is a difference between a handler and an event?
Yes, there is. An event is something that happens in the machine
someplace -- perhaps a file has been saved to disk, or a key has been
pressed, or the mouse clicked. A handler (more properly, an event
handler) is code you have created that processes or handles that
event. In general events are ignored unless you create handlers that
'catch' them and then do something with them.
--
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://www.osborne.com/indexes/beginners_guides.shtml
[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!]