[FlashCodersNY] A question about using flvPlayback in as2

Monica Evanchik monica.evanchik at gmail.com
Thu Mar 12 15:48:28 PDT 2009


that was the ticket! many thanks!

- monica

On Thu, Mar 12, 2009 at 2:26 PM, Eric J Fino <whitegorilla at nyu.edu> wrote:
> you probably want to use the FLVPlayback.volumeUpdate event handler. i think it will still trigger even if your flv doesn't have audio.
>
> catch the event, check for volume, then apply it to your sound objects. here's the code from Flash help
>
> import mx.video.*;
> var listenerObject:Object = new Object();
> listenerObject.volumeUpdate = function(eventObject:Object):Void {
>    trace("Volume setting is: " + eventObject.volume);
>
> };
> my_FLVPlybk.addEventListener("volumeUpdate", listenerObject);
> my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/cuepoints.flv";
>
>
> <3ric
>
>
> ----- Original Message -----
> From: Monica Evanchik <monica.evanchik at gmail.com>
> Date: Thursday, March 12, 2009 2:12 pm
> Subject: [FlashCodersNY] A question about using flvPlayback in as2
> To: "This is the general mailing list for FlashCodersNY.org" <flashcodersny at flashcodersny.org>
>
>
>> I have to fix a problem with a legacy piece, and i'm not sure how to
>> do it.
>>
>> here's the issue:
>>
>> i have a video, i've turned it into an flv file and stripped out the
>> audio. i have 2 tracks that run simultaneously on the main timeline,
>> i'm controlling their volumes in actionscript.
>>
>> the video player (using flvplayback) has both a volume and mute
>> controller, and i'd like to use those to control the external audio
>> clips, but i'm not sure how to do it. totally lost, actually.
>>
>> any ideas? thanks in advance for any help, i have to get this done for
>> next week.
>>
>> i haven't been to a flashcodersNY event yet, but i'd like to get one
>> soon, as well as contribute.
>>
>> best, Monica
>>
>> _______________________________________________
>> FlashCodersNY mailing list
>> FlashCodersNY at flashcodersny.org
>> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>



-- 
Monica Evanchik
Multimedia Producer
Ph: (212) 556-2094
The New York Times



More information about the FlashCodersNY mailing list