This is a discussion on "Missing audio in video when adding transition" within the Flash & Multimedia Forum section. This forum, and the thread "Missing audio in video when adding transition are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Missing audio in video when adding transition
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Missing audio in video when adding transition
Hi!
I'm new to flash 8, and trying to learn video playback in Flash, and I have one question: I've added a transition effect between 3 videos, and when I play the swf file, the audio is missing in the 3 video's. Is it so that audio automaticly dissapear when I add transitions? Thanks for any answer... |
|
|
|
|||
|
Re: Missing audio in video when adding transition
Hi! Thanks for your reply, attached is the fla file for mx in a zip, My action script is below:
**************************************** import mx.transitions.*; var videoLoadedCount:Number = 0; var videoPlayerIndex:Number = 0; var videoList:Array = new Array("flashmovie1.flv","flashmovie2.flv","flashmo vie3.flv"); for (var loaderLoop:Number = 1; loaderLoop <= videoList.length; loaderLoop++){ vidcomp.activeVideoPlayerIndex = loaderLoop; vidcomp.load(videoList[loaderLoop - 1]); } function eready(e:Object):Void { ++videoLoadedCount; if ( videoLoadedCount == videoList.length ) { for (var playerLoop:Number = 1; playerLoop <= videoList.length; playerLoop++ ){ e.target.activeVideoPlayerIndex = playerLoop; e.target.play(); } } } vidcomp.addEventListener("ready", eready); function ecomplete(e:Object):Void { for (var playerLoop:Number = 1; playerLoop <= videoList.length; playerLoop++) { e.target.activeVideoPlayerIndex = playerLoop; e.target.play(); } } vidcomp.addEventListener("complete", ecomplete); function transDone(e) { vidcomp.visibleVideoPlayerIndex = e.target.content._name; trace(e.target.content._name); } function buttonTransition(m:MovieClip, d:Number) { if (d != m.visibleVideoPlayer) { var other:MovieClip = m.getVideoPlayer(d); m.bringVideoPlayerToFront(d); var vp:MovieClip = other; TransitionManager.start(vp,{type:mx.transitions.Bl inds, direction:0, duration:1, easing:mx.transitions.easing.None.easeNone, param1:empty, param2:empty}); vp._transitionManager.addEventListener("allTransis tionsInDone",transDone); } } video1Button.onPress = function(){ buttonTransition(_level0.vidcomp, 1); }; video2Button.onPress = function(){ buttonTransition(_level0.vidcomp, 2); }; video3Button.onPress = function(){ buttonTransition(_level0.vidcomp, 3); }; |
|
||||
|
Re: Missing audio in video when adding transition
I have no ideal. It has been a long time since I messed with video in flash. Maybe one of the other members could help you.
|
|
|||
|
Re: Missing audio in video when adding transition
Hi i Have not had much experience with useing vidio in flash hang on thats a lie any experience so im not even going to try and help you like that lol all i wanted to say was if you go to http://www.cartoonsmart.com/advanced_smart_topics.html then there is a 3 hour lesson on what you need to do thanks
rusty |
|
|||
|
Re: Missing audio in video when adding transition
Thanks, I'll check it out!
|
![]() |
| Tags |
| missing, audio, video, adding, transition |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Audio Clips from Library to Site | jschu2 | Website Planning | 0 | Jan 2nd, 2008 19:21 |
| Question with adding audio | smith11 | Flash & Multimedia Forum | 1 | Feb 14th, 2007 17:39 |
| adding audio to web pages | toekneem | Starting Out | 7 | Jan 21st, 2007 20:10 |
| audio/video from site | LorEye | Flash & Multimedia Forum | 1 | Nov 21st, 2006 22:15 |
| Adjusting/Synching Audio for Audio and Video Clips | junestag | Flash & Multimedia Forum | 3 | Sep 19th, 2006 02:43 |