Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-25-2008, 07:29 PM   #1
swnova22
Registered User
 
Join Date: Sep 2007
Posts: 12
Question FLV redirect causing an echo in my audio.

I have my flv redirecting to an html page with the following as that i found in another thread:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vidPlayer.attachVideo(ns);
ns.play("MasonJourney.flv");

ns.onStatus = function (infoObject:Object) {
if (infoObject.code == "NetStream.Play.Stop") {
getURL('http://www.ilmason.org/faq.html');
}
};
stop();
This is all working, but the audio is echoing. I took the actual object off the page, and the audio still plays, but it doesn't show the video. I know that it has something to do with this portion of the code:
ns.play("MasonJourney.flv");
But when I take that out and leave the video on, then the page doesn't redirect. Any ideas on how I can fix the echo? Here is a link to the page:
http://www.askamason.us/flash/transitionvid.html
swnova22 is offline   Reply With Quote
Old 04-25-2008, 08:24 PM   #2
swnova22
Registered User
 
Join Date: Sep 2007
Posts: 12
Default

help. please. my brain hurts.
swnova22 is offline   Reply With Quote
Old 04-25-2008, 08:34 PM   #3
ten90jwhite
Flash Semi-Guru
 
Join Date: Mar 2008
Location: San Jose, CA
Posts: 33
Send a message via AIM to ten90jwhite Send a message via MSN to ten90jwhite Send a message via Yahoo to ten90jwhite
Default

Can you upload a copy of your FLA so I can see it? It doesn't look like there is anything wrong with the code you've pasted here.
ten90jwhite is offline   Reply With Quote
Old 04-25-2008, 08:35 PM   #4
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

ActionScript Code:
ns.onStatus = function (infoObject:Object) {     if (infoObject.code == "NetStream.Play.Stop") {         ns.pause();         stopAllSounds();         getURL('http://www.ilmason.org/faq.html');     } };
atomic is offline   Reply With Quote
Old 04-25-2008, 08:44 PM   #5
swnova22
Registered User
 
Join Date: Sep 2007
Posts: 12
Default

thanks Atomic for the reply. I replaced my code with yours and its not redirecting to the ilmason.org site....i've posted it here: http://www.askamason.us/flash/transitionvid.html

suggestions?

Last edited by swnova22; 04-25-2008 at 08:49 PM.
swnova22 is offline   Reply With Quote
Old 04-25-2008, 09:01 PM   #6
swnova22
Registered User
 
Join Date: Sep 2007
Posts: 12
Default

Now I see what you did. Its friday and i've been at this all afternoon. so please forgive my squishy brain. The stopallsounds isnt working. *sigh* I have attached my FLA if you or anyone can give me any more help.
Attached Files
File Type: zip transitionvid.zip (109.6 KB, 80 views)
swnova22 is offline   Reply With Quote
Old 04-25-2008, 09:16 PM   #7
ten90jwhite
Flash Semi-Guru
 
Join Date: Mar 2008
Location: San Jose, CA
Posts: 33
Send a message via AIM to ten90jwhite Send a message via MSN to ten90jwhite Send a message via Yahoo to ten90jwhite
Default

OK, here is what is happening:

You are attaching a video to a FLVPlayback component that already has that video as a contentPath parameter. This means that you are loading that video into the FLVPlayback component twice, which is where the echo is coming from. You'll want to instead create an event listener for the component rather than a NetStream class.

Helpful links:
http://livedocs.adobe.com/flash/8/main/00003515.html
http://livedocs.adobe.com/flash/8/main/00003620.html
http://livedocs.adobe.com/flash/8/main/00003615.html
ten90jwhite is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to control audio of embedded FLV? Nikhil Pasricha ActionScript 2.0 15 09-06-2012 10:18 AM
Dectect if FLV has audio track? wu-tang ActionScript 2.0 0 01-02-2008 07:37 PM
streaming flv audio becomes garbled after seek mperla ActionScript 2.0 1 09-21-2007 01:14 PM
I load a flv in flash: I hear audio but dont see video, why? loca Other Flash General Questions 1 03-24-2007 05:44 AM
Getting information from PHP file StormINK ActionScript 2.0 2 12-10-2005 10:20 PM


All times are GMT. The time now is 02:36 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.