EnhancedQT - Out of Balance
Posted: Tue May 25, 2010 9:37 pm
I'm wondering if someone might be able to assist in a little problem. In short, I'm trying to use the EnhancedQT external to play around with some audio ideas. My test has proven buggy at best and frequently results in crashes where Rev has to close, jumpy movement, and out of sync sound. What I was trying to do was to time a graphic's movement with left/right audio balance of a player. I'd like to play a looping sound that balances with a graphic's position on the card. If the sprite/graphic travels back and forth I'd like the sound to fade back and forth. For Example:
Like I said, it's just jumpy and not the desired effect. Any ideas would be appreciated. Thanks.
B.J.
Code: Select all
on mouseUp
put the width of this card into tWidth
put the height of this card into tHeight
put tWidth / 2 into tHorizontalMiddle
put tHeight / 2 into tVerticalMiddle
put 0 & "," & tVerticalMiddle into Point1
put tHorizontalMiddle /2 & "," & tVerticalMiddle into Point2
put tHorizontalMiddle & "," & tVerticalMiddle into Point3
put tHorizontalMiddle *2 & "," & tVerticalMiddle into Point4
put tWidth & "," & tVerticalMiddle into Point5
put the movieControllerID of player player1 into moco1
qtSetTrackBalance moco1, "", -128
start player player1
Repeat for 2 times
move graphic UFO from point1 to point2 in .5 seconds
qtSetTrackBalance moco1, "", -65
move graphic UFO from point2 to point3 in .5 seconds
qtSetTrackBalance moco1, "", 0
move graphic UFO from point3 to point4 in .5 seconds
qtSetTrackBalance moco1, "", 65
move graphic UFO from point4 to point5 in .5 seconds
qtSetTrackBalance moco1, "", 127
-- Reverse Direction
move graphic UFO from point5 to point4 in .5 seconds
qtSetTrackBalance moco1, "", 65
move graphic UFO from point4 to point3 in .5 seconds
qtSetTrackBalance moco1, "", 0
move graphic UFO from point3 to point2 in .5 seconds
qtSetTrackBalance moco1, "", -65
move graphic UFO from point2 to point1 in .5 seconds
qtSetTrackBalance moco1, "", -128
end repeat
stop player player1
end mouseUp
B.J.