gorbatchow
04-23-2010, 02:00 PM
Hi, I'm working with Flash from time to time, more as a designer than a programmer, so the AS skills are a bit limited :-)
Anyway, what I would like some help with is to create an animated volume control. Not to be confused with an ordinary slide volume control. Here's the scope, I divided it into 3 parts:
Part 1 - The interactive animation:
The movie contains of a movie clip with a can with an open lid (can_mc). can_mc contains of 39 frames where the lid goes from open to closed.
I would like the user to be able to drag the lid from open to closed and from closed to open with the mouse, and that the lid stays at the position where the user releases the mouse button, whether is fully closed, half closed, one third closed etc.
Part 2 - The volume control:
In the very same movie, at the main timeline I have another movieclip (looped) playing some sounds (sounds_mc), and I want the volume of these sounds to be controlled by the lid of the can so when the lid is closed the volume is 0, fully open the volume is full, and everything between.
Part 3 - The cookie:
Now, if the user have chosen to close the lid to turn off the sound, the sound shall be off and the lid closed even the next time the user visit the site. So some sort of cookie must be used I suppose.
Any help on any of the 3 parts is highly appreciated =)
Anyway, what I would like some help with is to create an animated volume control. Not to be confused with an ordinary slide volume control. Here's the scope, I divided it into 3 parts:
Part 1 - The interactive animation:
The movie contains of a movie clip with a can with an open lid (can_mc). can_mc contains of 39 frames where the lid goes from open to closed.
I would like the user to be able to drag the lid from open to closed and from closed to open with the mouse, and that the lid stays at the position where the user releases the mouse button, whether is fully closed, half closed, one third closed etc.
Part 2 - The volume control:
In the very same movie, at the main timeline I have another movieclip (looped) playing some sounds (sounds_mc), and I want the volume of these sounds to be controlled by the lid of the can so when the lid is closed the volume is 0, fully open the volume is full, and everything between.
Part 3 - The cookie:
Now, if the user have chosen to close the lid to turn off the sound, the sound shall be off and the lid closed even the next time the user visit the site. So some sort of cookie must be used I suppose.
Any help on any of the 3 parts is highly appreciated =)