| Subject: | Re: Tracking audio clips |
|---|---|
| From: | Mike Blaustein <mblaustein@xxxxxxxxx> |
| Date: | Tue, 22 Jul 2008 09:12:07 -0400 |
| Newsgroups: | macromedia.director.lingo |
The 2nd if..then in there is completely ignored since it is inside the 1st if..then. The 1st one checks to see if the elapsedTime is less than 2000. Therefore, the 2nd one can NEVER be true. Since it will only be looked at if the elapsedTime is <2000, it will never be 2000 (which is not less than 2000). The reason that the playhead progresses to the next frame is not due to the code telling it to... it is doing that since there is no longer anything telling it NOT to.
Therefore you can condense the code like this and it will do the same thing:
on exitFrame me
if sound(1).elapsedTime < (2000) then
go (the frame)
end if
end
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Tracking audio clips, rafa@mediatech |
|---|---|
| Next by Date: | Re: Tracking audio clips, Mike Blaustein |
| Previous by Thread: | Re: Tracking audio clips, rafa@mediatech |
| Next by Thread: | Re: Tracking audio clips, rafa@mediatech |
| Indexes: | [Date] [Thread] [Top] [All Lists] |