Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Synching To Audio Stream



Question: is there a way to do this that I'm missing? Once I start the stream, there's no stopping it, is that correct? And there's no grabbing the playback head and moving it back and forth over the sound that I might want to use, is that also correct? All the documentation I have and have found is very rudimentary it seems. I'm not synching to a button so it's not an event. What I'm doing is, making a picture appear at 100% at a drumbeat...or *is* that an event and I'm misconstruing? Any and all information you guys might have would be appreciated in the extreme. DeerRaven



KirupaForum > Flash > Flash 8 (and earlier) > Flash 5
Posted on: 01-30-2006, 11:56 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Character Mouth Synching--stream Or Not To Stream?
Hi-
I was curious to see if streaming is preferred when synching mouths to voiceovers in an animation. I always chose "Event" by default, but find that it doesn't play well, particulalrly when the server is active.

I saw on Macromedia's site that to "stream or not to stream" depends on several factors and that it is a matter of trial and error.

Any advice?

Thanks!!

-Rob

Audio Synching Problems - Please Help
Hello

I'm making a fifteen minute animated film in Flash 7. It's divided up into 7 scenes of varying length, and each scene has an audio track that takes up the whole length of that scene.

The film is very heavy on lip-synch (in other words, the characters lips move as they speak), but when I export the file as a SWF, the audio begins to lag progressively more and more as the film plays on. I have tried both "Streaming" and "Event" sounds, and Event works better, but for some reason there is still a lag by the time the film is about 10 or 11 minutes in.

It's crucial that I can get the audio to synch EXACTLY to the animation right up until the end. My animation is very minimal, and so shouldn't be too tough for flash to draw each frame

Am I missing something?
Is there an unofficial limit on the length of audio tracks?
Or flash movies?

Please help, I'd be very grateful.
Thanks in advance
Joe

Synching Audio And Animation Help
I put my flash on my website and the audio/animation does not synch properly. I tried using the "stream" synch option but it didn't work. I think I may be using the stream option incorrectly. Can someone help me out w/ how to use it. I just added the stream option at the beginning of every sound bit but it still didnt work. Please inform me how to use it, thx!

Video And Audio Synching
I have a video intensive flash project that is giving me some trouble. The video's audio sometimes gets "off". Are there any setting in flash that can alleviate this problem? Or is there another way to take care of it?

Synching Clip And Audio
I've got some "puppets" that give various audio feedback to students during a game. They slide on, say the audio, and (hopefully) slide back out. Sometimes however, they don't slide out.

Here is how the puppet is set up.

blank keyframe with a stop();
A label "enter" on frame 2 with the slide into screen part
A label "loop" on frame 8 that starts the mouth moving.
A keyframe with code on frame 27 that sends the movie back to loop.
A label "exit" on frame 28 that stops the mouth and then slides the puppet off screen.
Where it loops around to frame 1 to be ready for the next time it is needed.

Then on my main timeline I have the code below which sends in the puppet, starts a specific sound, waits for the sound to finish and then sends the puppet out.

The problem is the sounds are of various lengths and due to various loads on the player even the same sound will take a different number of frames to complete.

If the puppet is on frame 27, the one where the code sends it back to loop, then the code on the puppet instance "overrides" the code in the function. In other words, function says, "gotoAndPlay("exit")" but the puppet's timeline says "gotoAndPlay("loop")" and the puppet's timeline "wins."

Any ideas?

My thought is to add an onEnterFrame to the function that will cancel after one frame and have it send the puppet to exit again. If it was already send it will just be there anyway and if it wasn't set it will go there. What do you think? Any other approaches?







Attach Code

feedbackClip = home.createEmptyMovieClip("feedbackClip", 107589);
function playFeedback(puppet:MovieClip, soundID:String):Number {
if (!isPlaying) {
trace(newline+"starting "+puppet+" on frame"+puppet._currentframe);
isPlaying = true;
curScene.onRollOver = empty;
curScene.useHandCursor = false;
var audio:Sound = new Sound(feedbackClip);
audio.attachSound(soundID);
puppet.gotoAndPlay("enter");
setTimeout(playAudio,200);
}
function playAudio() {
audio.start();
}
audio.onSoundComplete = function() {
trace("Ending "+puppet+" on frame "+puppet._currentframe);
delete curScene.onRollOver;
curScene.useHandCursor = true;
isPlaying = false;
puppet.gotoAndPlay("exit");
};
return audio.duration+50;
}

Dynamic Audio And Lip Synching
Title says it all.

Other than 3rd party software such as Site Pal, does anyone know of any tutorials or code they have done that they would be willing to share on this topic?

Looking to load in external audio files with the use of xml to identify time specific actions in milliseconds as to when to display mouth position for lip synching.
Would like to know if anything has been done well out there to date.

Please post any tutorials and or links, articles and such thanks.

ooba.

New Tutorial On Lip-Synching To Streaming External Audio
Many of you have told me that you like my audio tutorials (http://www.kennybellew.com/tutorial), so I'm just letting you know I have posted a new one. It's fresh out of the oven, so any feedback is appreciated.

Here's the tutorial: Kenny Bellew's Method for Lip Synching Streaming Audio

(It's the last one in the list - scroll down)
http://kennybellew.com/tutorial/

This animation is part of a tutorial. Maybe you'll find the animation amusing.

Here's the animation:
http://kennybellew.com/tutorial/lipSynch/



Here's the tutorial:

(It's the last one in the list - scroll down)
http://kennybellew.com/tutorial/


.

Can I Insert An Extra Audio Stream Into The Live Stream?
I have a project where I need to set up a broadcast (from pre-recorded files) so people can 'tune in' at a certain time to watch a show. Some of these shows should have a soundtrack, can I use SSAS to overlay an extra audio stream? So I would send one video and two audio streams out to the client as one stream.

Alternatively, can I use SSAS to replace the audio, so effectively demux the original audio off and send out a different audio stream in its place.

Thank you in advance for any advice.

Audio Stream
i'm trying to stream an mp3 from an external .swf.
everything works, but the song will only play if i
go through the entire timeline within _root and back
to frame 1.
from the initial first time you see the page, there's
no music.
here's the code on frame 1 for the music:

mySound = new Sound();
mySound.loadSound("../sound/sitemp3.mp3", isStreaming);
mySound.attachSound("../sound/sitemp3.mp3");
mySound.start(0, 999);

please help.
there must be some code that says exactly where to start
the loop and stop it from looping incorrectly.

Audio Stream
i'm trying to stream an mp3 from an external .swf.
everything works, but the song will only play if i
go through the entire timeline within _root and back
to frame 1.
from the initial first time you see the page, there's
no music.
here's the code on frame 1 for the music:

mySound = new Sound();
mySound.loadSound("../sound/sitemp3.mp3", isStreaming);
mySound.attachSound("../sound/sitemp3.mp3");
mySound.start(0, 999);

please help.
there must be some code that says exactly where to start
the loop and stop it from looping incorrectly.

Stream Audio
Can anyone tell me how to do simple streaming of audio. I have a page with a text list of different songs. I'm not quite interested in loading the songs into flash. i just need the texts to be linked to external mp3 files on my server so that when a user clicks on the text, the external mp3 file is streamed and activates the users own media player.

Thanks

Can I Stream Audio In MX?
Is it possible to stream audio in MX? My audio files are killing my friends' dialups.

cheers,
jen

How Do I Stream Audio/MP3?
I've searched the forum and googled it but I still can't figure it out?
Please help me.
Thank you for your time.

[F8] Net Stream Audio
Hey flash kit

im trying to stream one audio file from another server how do i go about doing that, i cant seem to get it to work yet iv done it before in the past, know its only like 8 lines of code, ended with the onclick function that plays the stream

[CS3] Stream Audio Bug
Hi guys,
I've been doing workarounds for this problem for a while but it's getting ridiculous....

I have several streamed audios separated by frames that hold a stop action and a button with a play(); action on it. often, when the player reaches a stop action, though, it'll play part of the next audio stream before stopping partway through it.
has anyone else encountered this? is there a workaround?
I don't know if it matters, but I'm using AS2

AS3 Audio Stream
I'm trying to find a way to capture an audio stream from the microphone instead of having to send it to FMS. Anyone have any idea how this can be done? I don't care what format the audio gets stored in as long as I can play it back. I might store it in memory and I might save it to the hard drive using AIR. Some folks have figured out how to do this for video with the AS3 PNG encoder so I'm sure there's a way to do it.

Could this be done by hacking the NetStream class somehow?

To any Adobe folks listening in, Flash could really use video and audio encoding classes! I argh every day that it doesn't.

Thanks.
Mark





























Edited: 11/09/2007 at 10:35:42 AM by nekcih

Audio Stream
I have a client who needs to stream audio messages.

The commercially-available solutions I've seen either have poor visual design, lack features or carry heavy bandwidth charges for overages - this is for a high traffic site.

I need something which looks good, works well and has start/pause/stop, volume slider and time/remaining features.

Suggestions appreciated- please and thanks.

Stream Audio
I have a on/off button. When i press on i would like an mp3 from an external link such as www.yourmusic/myfile.mp3 to load. How would i do this? Where do i put the actions.

How Do I Stream Real Audio Into A Swf?
Does anybody know how to stream real audio on to my bands website into the swf file? any responses would be appreciated Jordan

Stream Audio Using Componant?
Hi,

I need to stream some audio (70MB WAV file)

In the export settings, I've reduced the output to mp3 to reduce the file size.

I now need to get it to work with the media controller companant but have no idea how. I've dropped the componant on stage, but what next?

Any help appreciated.

Cheers,

O.

Real Audio Stream
is it possible to import a real audio stream into flash? the url is pnm://206.135.153.22/chignd.ra
Cheers
Tim

How Do U Stream Audio From Flash?
i want to stream an audio mp3 file , how can i do that ?

thanx

Is There Any Way To Set .swf To 'stream' Without Using Audio File?
Hi,

whenever i want to speed along a .swf, i drop a silent audio clip into the movie and set it to Streaming... that way the movie runs along at the frame rate you want, and it doesnt get bogged down by slow connections...

is there a way to set the .swf to behave this way, without increasing the file size by having to add a sound file? without the sound file, the .swf slows down... silly question???

thanks,
j

Stream Audio To FMS2 With AS3?
Hello,

I've been struggling through AS3 now, and have almost gotten the hang of it. I can get audio streaming in AS2 to a FMS2 and recieve it on any listening client. My problem starts right at the Microphone.getMicrophone() instead of Microphone.get(). It appears they are the exact same function, so I assume that that isn't the problem. Is there a working example for me to use? If I use .setLoopBack(true), I can see microphone activity, but it still doesn't stream it. I'm assuming my problem is that a connection isn't being made.

Can Cam With Intergrated Mic Stream Audio?
i was just wondering is it possible to stream audio without extra Microphone? My cam has intergrated Mic and when i use it over NetMeting it will send both video and audio but wenn i use it in FlashCom Application it streams only video.

normaly u say:
ActionScript Code:
my_netStream.attachVideo(Camera.get());
my_netStream.attachAudio(Microphone.get());
this is fine if u have both Cam and Mic.

couse my Cam have Mic built-in, i tryed only this:
ActionScript Code:
my_netStream.attachVideo(Camera.get());
but audio is not sent

then i tryed this:
ActionScript Code:
my_netStream.attachVideo(Camera.get());
my_netStream.attachAudio(Camera.get());
but again audio is not sent

i think it is very annoying to people to have both Cam and Mic, having Cam with built-in Mic it is much more simple, u have(need) only one device.

So my QWuestion is :is it possible, and if , how?

Thanks forany ideas

Pop-ups + Audio Stream In Swf = IE Freezes?
What can that be

I have created several swf files, in different pop-up windows, as audio players in order to preview an Album.

You can check it at: http://www.venue-athens.com/eng/music/index.php

The situation is that if you start previewing the album and closing the pop-up windows (before the audio ends) after the 4th - 5th try internet explorer freezes.

Any ideas on that?????

Flash 8 Audio Stream
I have designed a small media player reading a continuous audio/video stream (broadcast).
Using "test movie" on flash 8, it works very well.
Uploading the swf file to the server and having included the <embedded> code, the player does not play, although the buttons, display, texts and so on work. What have I forgotten?
The site is www.tinmandownloads.com, and the stream is http://212.72.165.26:9386.
Any idea?

FLV Stream - Audio But No Video?
After exhaustive testing on numerous machines, platforms, bandwidths we got our videos working flawlessly across them all. Then today, in a Sales Presentation, this particular Dell machine performed everything EXCEPT the video. Very strange.

Ideas?

Thank you.

Audio Stream Modules
I'm working on an art project for school where im gathering real time audio data. all i want is a page with a simple talk button that people can use to submit sound. the structure of the site is simply a page anyone can access without registration and just submit sound. there will be another page that will simply play the sound that is submitted. so basically its a one way audio intercom.

i understand that i need the Flash Media Server for this but i dont really know how to program something like this. i found readymade flash chatroom modules but they are pricey and have stuff that i dont need because i simply just need the audio function. do you know of any free code that i can use to make this happen? any tutorials?

thank you

Stream Live Audio
Hi,
I would like to develop a chat with voice.
I found several examples of stream live audio-video, but just want audio.
What search?

Audio Stream In Mono
Any one can help me?
I am current streaming a radio station in FM stereo signal, using Flex AC3 for the flash broadcaster, the sound card we use as the audio is 7.1 channels (CreativeSound Blaster),
we plug in the FM stereo feed to Line-in on card, and the stream only provide MP3 mono, what I done wrong here? any help is appreicated here.
regrads, MC

Can Cam With Intergrated Mic Stream Audio?
i was just wondering is it possible to stream audio without extra Microphone? My cam has intergrated Mic and when i use it over NetMeting it will send both video and audio but wenn i use it in FlashCom Application it streams only video.

normaly u say:
ActionScript Code:
my_netStream.attachVideo(Camera.get());my_netStream.attachAudio(Microphone.get());

this is fine if u have both Cam and Mic.

couse my Cam have Mic built-in, i tryed only this:
ActionScript Code:
my_netStream.attachVideo(Camera.get());

but audio is not sent

then i tryed this:
ActionScript Code:
my_netStream.attachVideo(Camera.get());my_netStream.attachAudio(Camera.get());

but again audio is not sent

i think it is very annoying to people to have both Cam and Mic, having Cam with built-in Mic it is much more simple, u have(need) only one device.

So my QWuestion is :is it possible, and if , how?

Thanks forany ideas

Sinhronize Audio Stream?
I got a problem! Maybe it is not a problem! I got a streaming audio file as sound object! Is it possible to get buffering size ( how is loaded ) I want to sinhronize audio with mc text! example I aready got streamed 10 sec and I know it is my text " Welcome to my site" and mc play"welcome to my site" Did I made clearly understood? Another process I need to implement! I am very beginner in flashy world! Thank U

Preloading Stream Audio Or Not?
Hello, I was just wondering about something so i thought you could tell me what you think about it in general.
Creating a mp3 player, I'm loading an external swf (around 800kb) containing only a track set on stream, on release of a button. Is it worth preloading it?
I made it try by a few friend and noone complained about the sound without preloader but what would the effect be for someone with a slow connection?
Also, would it be possible to preload the tracks in the background while the main movie is running. If yes, how would I go about it without affecting the main preloader and the main movie size.

I'm tired I'm off to sleep. Nighty nighty.

Audio Stream + SetVolume
Hi,

In my flash project I'm using a background-music that streams with a frame event.

Is it possible to control the volume of these streams??

Or do I have to use a soundobject? But if I use sound objects it has to be exported on the first frame, (right?), and if I do that, it will take forever to load properly,... What is the best solution?

I have to set the volume to about 20 or so, because otherwise the voice over isnt clear...


Thanks

Can Cam With Intergrated Mic Stream Audio?
i was just wondering is it possible to stream audio without extra Microphone? My cam has intergrated Mic and when i use it over NetMeting it will send both video and audio but wenn i use it in FlashCom Application it streams only video.

normaly u say:
ActionScript Code:
my_netStream.attachVideo(Camera.get());my_netStream.attachAudio(Microphone.get());

this is fine if u have both Cam and Mic.

couse my Cam have Mic built-in, i tryed only this:
ActionScript Code:
my_netStream.attachVideo(Camera.get());

but audio is not sent

then i tryed this:
ActionScript Code:
my_netStream.attachVideo(Camera.get());my_netStream.attachAudio(Camera.get());

but again audio is not sent

i think it is very annoying to people to have both Cam and Mic, having Cam with built-in Mic it is much more simple, u have(need) only one device.

So my QWuestion is :is it possible, and if , how?

Thanks forany ideas

Sinhronize Audio Stream?
I got a problem! Maybe it is not a problem! I got a streaming audio file as sound object! Is it possible to get buffering size ( how is loaded ) I want to sinhronize audio with mc text! example I aready got streamed 10 sec and I know it is my text " Welcome to my site" and mc play"welcome to my site" Did I made clearly understood? Another process I need to implement! I am very beginner in flashy world! Thank U

Preloading Stream Audio Or Not?
Hello, I was just wondering about something so i thought you could tell me what you think about it in general.
Creating a mp3 player, I'm loading an external swf (around 800kb) containing only a track set on stream, on release of a button. Is it worth preloading it?
I made it try by a few friend and noone complained about the sound without preloader but what would the effect be for someone with a slow connection?
Also, would it be possible to preload the tracks in the background while the main movie is running. If yes, how would I go about it without affecting the main preloader and the main movie size.

I'm tired I'm off to sleep. Nighty nighty.

Can I Stream Or Buffer Audio?
I would like to make a jukebox, in which I would stream a MP3 file over the internet. The jukebox would contain many songfiles, thus, I do not want to include them in the library, due to the size. Is this possible. I know it is in Director, because you can insert a URL as the address for audio and set the buffer size. Can anyone shed some light on Flash's buffer capibilities???

Audio Stream Analysis
Hey guys,

So I have spent the last 2-3 hours or so trying to find any way I can accomplish this in real-time using flash, and before I resort to using something like flash amp, I am interested to know if anyone knows if there is a way to view or retrieve variables in the flash plug-in itself, through actionscript. I know that when methods are called, the variables you define in AS are passed to the methods in the plugin, and those methods have their own variables etc.. If it is at all possible to view get at those variable, and read them through AS, then theoretically it would be possible to do what flash amp does in real-time.

If anyone has any information on how I could proceed in this manner, it would be much appreciated.

Jonathan

Stream Audio With The SoundObject?
what up everyone,

I have a couple of songs that i need to place in an Audioplayer. I am familiar with certain functions of the soundObject(basically everything from the sound tutorial on this site). Problem is the songs take too long to load. I know i can easily make the songs stream if i placed them on the timeline. Id prefer to do it with Actionscript. Any Ideas?

thanks

Audio Stream And Flash
Hi,

I'm trying to do a JukeBox in flash, but i have one 'little' problem:

The Juke is working fine but the url to the MP3 must be like URL My mp3 file is hosted on a streaming server.

I need the url to be mms://www.etc.etc/etc.mp3, but flash seems not to accept this protocol.

How can i use mms protocol instead http?? When i use the url mms://www.etc.etc/etc.mp3 on WindowMedia Player or Internet Explorer it works fine, only doesn't on flash.

Someone?... please...

How Do I Stream An Audio File MP3 From A Button?
How do I stream an audio file MP3 from a button?????

How Do I Stream An Audio File MP3 From A Button?
How do I stream an audio file MP3 from a button?????

I want to have 5 tracks listed
1. track 1
2. track 2
etc to 5
so when I on_release over one of the titles it will
play that particular audio file(mp3)
I dont whant to have more than one playing at time.
And can i use the StopAllSounds for my stop button???
Any Help Greatly Appreciated

Jamie_x

Audio Stream Over Multiple Scenes
Is it possible to stream audio over multiple scenes? If so what is the best way to do it?

Thx

AUDIO STREAM... And How To Make It Work?
Hi,
I'm trying to make audio work in the MobiClip format, their manual says:
"Use 1 audio stream only and no audio events" and
"In the menu File/Publish Settings, set the Audio Stream format to Raw, Mono, 44 KHz"

As I understand, audio event is when it is scripted, like _root.MySound.start or something... and audio stream is when the audio is added to some keyframe in the timeline, right?

So I added sound to the keyframe, but when I disable "audio event" in the publish setting, the *.swf file is made without any sound. While if I have event enabled and stream disabled, the sould works in the *.swf file, but, naturaly, doesn't appear in the *.mo file.



Question: how do I make streaming sound?


Thanx!

Setting Stream Synced Audio On/off
I have been given a file that requires the sound to be switched on/off on a file, however the file was created with the audio on the timeline, set to streaming (ie it's an voiceover, so is imperative that it syncs)

Is there any trick to getting this "manual" audio to switch off or on?

thanks in advance...

Audio Scrubber Without Net Stream Object
I'm looking for a way to add seeking capability to audio playback. I can do it pretty easily for video, but I'm currently using a sound object which has no seek capabilities whatsoever.

Is there a different object or method I can use to direct audio playback to a particular point in the audio duration?

what I was trying (modification of a video playback tutorial):


PHP Code:



// initialize sound object
var as:Sound = new Sound();
as.loadSound("test.mp3", true);

var audioInterval = setInterval(audioStatus,100);
var audioLoaded:Number;
var audioDuration:Number = -1;

// update loader bar and scrub location
function audioStatus() {
    audioLoaded = as.getBytesLoaded() / as.getBytesTotal();
    loader.loadbar._width = as.duration * 170;
    if( audioDuration == as.duration && as.duration > 0 ) {
        loader.scrub._x = as.position / as.duration * 170 - 85;
    } else {
        audioDuration = as.duration;
    }
}

var audioScrubInterval;

// start dscrub drag
loader.scrub.onPress = function() {
    clearInterval(audioInterval);
    scrubInterval = setInterval(scrubAudio,10);
    this.startDrag(false,-85,this.y,85,this.y);
}

// end scrub drag
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
    clearInterval(scrubInterval);
    audioInterval = setInterval(audioStatus,100);
    this.stopDrag();
}

// seek and continue on release (this is the part that obviously isn't working as sound objects don't have a seek method.
function scrubAudio() {
    as.seek(Math.floor((loader.scrub._x/170)*audioDuration));
}




any help would be appreciated. I'm trying to avoid converting the test mp3 into an flv and hiding the video playback and i also am looking to avoid using netstrem.

Stop Audio Stream? Play Once?
After much messing on, im trying to get a button to be on and off itself, with a stream and have other buttons do the same which in turn turn off those other buttons. I have finally got it to work, its a messy code and the comments are out of line on some of them.

Anyway the problem:

Streams load on top of each other when you press a button, so you could press the button a hundred times and a hundred streams are playing!

Is there no way to have it like this?


Code:
stop();// stop the movie

// Variable set //

_root.radioSoundPlaying = 0
_root.radioSoundPlaying2 = 0

// Set variable to 0. This is so it can be referred to later to see if its been pressed or not
_root.radioMute = 0
_root.radioSoundFinished = 0

// BUTTONS FOR SPEECHES //

radio_btn01.onPress = function(){
unloadMovie (speech02_mc)
stopAllSounds();
_root.speech02.stop();
// On button press, create function and do the following
_root.radioSoundPlaying2 = 0
if (_root.radioSoundPlaying == 0 ){// if, the variable is exactly 0, do this

needle_mc.gotoAndPlay("needleSpeech01")// Go into the mc, play the label specified.
radio_btn01.gotoAndPlay("buttonDwn")// on the main btn, play label specified, this plays the button down and up when user clicks
_root.radioSoundPlaying = 1;// change the variable to 1, so when the user next presses it, it will not follow this section and do the other part.
speech01Info_mc.tween(["_x", "_y"], [352, 480], 4, "easeOutQuint");

stopAllSounds();
_root.speech01 = new Sound(speech_mc);// Create new sound on the root for clarity.
_root.speech01.loadSound("radioSpeeches/churchhill_rafSpeech01.mp3", true);// uses load sound which will stream the audio specified in green

} // end of if statement
else {// or do this if the above is not the case
if (_root.radioSoundPlaying == 1){// if the variable is exactly 1
removeMovieClip(_root.speech_mc);
_root.radioSoundPlaying = 0;// Set the variable back to 0 so the button is back to normal effectively.
needle_mc.gotoAndPlay("needleStop")// Go into needle mc, play the label specified. This returns the needle
_root.speech01.stop();// Stop all sounds, as others might be playing now
speech01Info_mc.tween(["_x", "_y"], [352, 672], 4, "easeOutQuint");
}// end if statement
}// end else statement
}// end overall function


radio_btn02.onPress = function(){
stopAllSounds();
_root.speech01.stop();
deleteMovie (_root.speech_mc);
// On button press, create function and do the following
_root.radioSoundPlaying = 0
if (_root.radioSoundPlaying2 == 0 ){// if, the variable is exactly 0, do this
speech01Info_mc.tween(["_x", "_y"], [352, 672], 4, "easeOutQuint");
speech02Info_mc.tween(["_x", "_y"], [352, 480], 4, "easeOutQuint");
needle_mc.gotoAndPlay("needleSpeech02")// Go into the mc, play the label specified.
radio_btn02.gotoAndPlay("buttonDwn")// on the main btn, play label specified, this plays the button down and up when user clicks
_root.radioSoundPlaying2 = 1;// change the variable to 1, so when the user next presses it, it will not follow this section and do the other part.

//_root.speech01.loadSound("radioSpeeches/churchhill_rafSpeech01.mp3", false);




//speech_mc.stop();
_root.speech02 = new Sound(speech02_mc);// Create new sound on the root for clarity.
_root.speech02.loadSound("radioSpeeches/hitler_warSpeech02.mp3", true);// uses load sound which will stream the audio specified in green

} // end of if statement
else {// or do this if the above is not the case
if (_root.radioSoundPlaying2 == 1){// if the variable is exactly 1
_root.speech02.stop();
_root.radioSoundPlaying2 = 0;// Set the variable back to 0 so the button is back to normal effectively.
needle_mc.gotoAndPlay("needleStop")// Go into needle mc, play the label specified. This returns the needle
// Stop all sounds, as others might be playing now
}// end if statement
}// end else statement
}// end function
Ive tried many things inc delete movie. Not working

Copyright © 2005-08 www.BigResource.com, All rights reserved