Hi there, I have a problem controlling the volume of a simple Flash piano I created and could do with some advice. I could get the play button to work for a sound, but this is no good as each key has it's own sound and I need to therefore make the volume cotroller a master volume controller. I also therefore don't need any buttons (or do I??)
I'm using CS4 and when I came to the AS part where I have to write the event functions. I used the slider_1.addEventListener('mouseDown',slider_1_OnPressFunc);
and not onPress, because CS4 gives me error. But when I got to Release part I couldn't find any event. MouseUp is working only when the mouse is over the button:
slider_1.onRelease = function(){....
I wrote it as you show, but in run process CS4 gave me this error:
Warning: 1090: Migration issue: The onRelease event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'click', callback_handler).
Why it gives me this error?
And what does it mean?
How to solve this?
>-
#5 deonandmands ~ Apr 17, 2008
(0)
>
-
#6 Iviglious ~ Dec 20, 2008
(0)
Hi there, I have a problem controlling the volume of a simple Flash piano I created and could do with some advice. I could get the play button to work for a sound, but this is no good as each key has it's own sound and I need to therefore make the volume cotroller a master volume controller. I also therefore don't need any buttons (or do I??)
> Reply to this comment
I'm using CS4 and when I came to the AS part where I have to write the event functions. I used the slider_1.addEventListener('mouseDown',slider_1_OnPressFunc);
and not onPress, because CS4 gives me error. But when I got to Release part I couldn't find any event. MouseUp is working only when the mouse is over the button:
slider_1.onRelease = function(){....
I wrote it as you show, but in run process CS4 gave me this error:
Warning: 1090: Migration issue: The onRelease event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'click', callback_handler).
Why it gives me this error?
And what does it mean?
How to solve this?
> Reply to this comment