So I’ve been wracking my brain for half the day today and I’m sure I’m just doing something dumb or missing something minor…
I’m trying to control the volume of an flv in a video player I’m making. I want it’s volume control to be independent of any other content on the page. The Video object is in a Component if that makes any difference.
I am able to adjust the volume of the root (aka MovieClip(this.parent).soundTransform ) but I cannot do it to the component itself.
I have tried applying the SoundTransform to the component itself (which is not a MovieClip I know), I have tried placing the Video object in a MovieClip inside the component and attempted to adjust the volume that way with no success…
(obviously there’s a lot more code than this)
_videoDisplay = new Video();
_videoVolume = new SoundTransform(0); // just using 0 so I can tell when it works
this.soundTransform = _videoVolume; // *this refering to the component
I’ve also tried adding the _videoDisplay to a MovieClip and applying the SoundTransform to it with no luck…
_videoContainer = new MovieClip();
_videoDisplay = new Video();
_videoContainer.addChild(_videoDisplay);
_videoVolume = new SoundTransform(0);
_videoContainer.soundTransform = _videoVolume;