Flash Sound Coordination Help. . .
I have sound in my Flash MX Professional file, and am trying to match the sound up with my masking of something. The problem is that when I play it in the .fla file, it matches up fine, but when I play it in the .swf it is off a bit!
Anybody know how to fix this?
Thanks a bunch in advance to any help,
Andre
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Nov 25, 2004, 15:34
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Sound Coordination.
Hi, in my flash movie I have a sound and a picture that need to be coordinated. I'm pretty sure i can do the whole thing in 1 frame with a onsoundstop type command to start the movie again, but im not sure what the actual context for the onsoundstop command is.
what is is? onsoundstop? onsoundfinish? or something else?
Sound Coordination Of Sort
hey,
just wondering, when i've got a sound file and a movie file playing in flash they're lined up if i press play or if i press test movie, but if i export the movie and try playing it in swf player or anything like that the sound will be off. im wondering if i've got a setting wrong or what have you.
much thanks in advance.
joel
External Map Coordination (x,y)
Hi there..
i've some kinda of a map.. its just with some simple streets etc..
now i want to add a street name by entering a name for it and the values for the x and y.. so flash loads these vars and puts the streetname in the x and y coordinate.
I know this is possible with XML, but i'm pretty good at MySQL databases.
Please tell me a way how it's done in the XML way.. and how the vars are getting to be loaded in the flash file.. a tutorial or a sample file would be really appreciated!
Thanks
Coordination Rotation
I have a line that I want to rotate.
I have the formula for rotating it.
When I enter a angle value in my draw_foo_bar method it doesn't rotate by the right about. eg. .9 = 90 degrees but it doesn't do that.
ActionScript Code:
package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.MouseEvent
public class RotateLine extends MovieClip
{
public var body;
public function RotateLine()
{
init();
}
public function init()
{
this.body = new Sprite();
draw_foo_bar(80,1.6);
this.body.x = stage.stageWidth / 2
this.body.y = stage.stageHeight / 2
addChild(this.body);
}//init
public function draw_foo_bar(radius,angle)
{
with(this.body.graphics)
{
clear();
lineStyle(2,0x000);
x = 50
x1 = Math.cos(angle) * x - Math.sin(angle) * 0;
y1 = Math.cos(angle) * 0 + Math.sin(angle) * x;
lineTo(x1,y1);
}
}//foo_bar
}//class
}//package
Would someone run my code or tell me what I've done wrong.
I'm stumped on this one.
Cursor Coordination Effects
I am trying to find any tips or any coding that can get me started with having a distance-activated effect on a rollover. (The closer the cursor is to the button, the more the effect will show. Like a fade in/out effect)
Any information, or any help would be GREATLY appreciated.
Thanks.
Mouse To Frame Coordination
Hi, I want to make an animation that goes from frame 1-100, but I was thinking if it's possible for the mouse to be the controller. So if my mouse starts off from the left of the screen, as he/she moves it over to the left side the animations moves at the speed the mouse moves, and if it's moved backwards, then the animations is reversed. I think I have a basic idea on how to do this, but not exactly sure. Any help would be greatly appreciated. Thanks!
[flash8] MovieClip And Microcontroller Coordination (and Some Xtra Stuff)
Hi everyone!
I'm working on a project that involves working with flash animations and microcontrollers, in my case BasicStamp.
My project consists in making musical notes appear on a projector after someone moves an external sensor in my BasicStamp. I know data transfer from flash to PBasic or vice versa can be done with MIDI or TCP/IP protocol; what I don't know is how to design a movieClip that varies depending on how much pressure the user gives to this sensor (the notes will go further away if the user presses the sensor harder).The second problem, and the most important for me is that I need to know how to make my musical notes appear (as if someone is making bubbles with a straw or something like that) then stay floating randomly into space and after a few seconds dissappear.
Thank you sooo much for your help!!
Gabstar
P.S. If my explaination wasn't all that great is because English isn't my first language and I haven't been practicing for a while
How Do I Call Sound Files For A Sound Player Created In Flash
I want to create a sound player for a website in Flash 5. However, i do not know how to play the files without importing them into the flash movie. If i imported all of the sound files i am using, my flash file would end up being about 25meg in size. This would obviously be stupid, as it would take forever to load up. Could someone please tell me what action i eed to use to play a sound file which is stored in the same directory as the swf file.
Im only just learning flash so im not 100% sure that this is the way to do it. Is there a way of telling flash flash to only load a certain part of the movie as it is neded.
I want to create something similar to the player found at this address
http://www.newfoundglory.com/player.html
Any help you can give me would be much apreciated
Thank you
David
Sound.position And Sound.duration On Flash Lite 2.1
I'm using the code below to trace the position and duration of a loaded mp3 file. This works fine when I export as normal flash 9 version swf, though when I export as flash lite 2.0 or 2.1, the trace returns 0 for both position as well as duration. Here is suggested that the two members should be available for all flash lite 2.x versions. Is there a way to find the duration and position of an mp3 file in flash lite 2.x? Am I doing something wrong?
Thank you in advance,
Harry
Attach Code
var mySound:Sound = new Sound();
mySound.onLoad = function(success){
if(success == true) {
mySound.start(0, 0);
}
}
mySound.loadSound("sound.mp3");
function onEnterFrame() {
trace(mySound.duration + " " + mySound.position);
}
Edited: 02/05/2008 at 08:42:28 PM by Harry Vermeulen
Turning Flash Movie Sound Off If Other Sound Begins?
Hello -
I'm not an expert Flash guy so I appreciate your help.
Currently there is a flash file with a sound file that plays continuously while a visitor is on the site. There have been new additions that add the ability to add sound files to different items.
How can I get the main flash sound turned off whenever one of the items with a new sound file begin to play?
Flash Intro - On Button Sound Play, Off Button Sound Off
Hello,
I am working on this flash project. I want to make it so that when you put your mouse on the button, it plays this song, but when you take your mouse off, it stops the song..sounds really easy, but I need some help. Thanks!
David
Attach Sound, Play Sound & Stop Sound.
Hey there,
I was wondering if any of you could help me please.
I want to play a song which I have named "rundmc" The file extension is ".mp3"
I want a button to play this mp3 which I read you need to attach that sound, then play it and I want to a button to stop that sound, or preferably the play button to change into a stop button.
I've read the help files, but none of it works and I've changed the linkage for the mp3 to export for action script, but nothing works!!!
Please help,
NK.
When Is A Sound Not A Sound? When You're Using Flash
does anyone know of a way to set up a sound object (mx 2004) that works in a loaded movie clip? i have an mp3 sound object that works in its own movie with the following code:
anthem = new Sound();
anthem.attachSound("GB");
anthem.start();
anthem.onSoundComplete = function() {
trace("sound completed");
}
but when it's called into the controlling movie, it doesn't play or trace or even stick two fingers up...nothing! the controlling movie uses the following line of code to load the sound swf via xml:
loadMovie(currentAnthem.attributes.clip, placeholder);
i know this works as i have text in the sound clip that shows up, and i've brought in seperate movie clips with mp3s dumped onto the stage that play. this'd be ok if i didn't need to manipulate the sound, and i know i could bung the sound into the controlling movie and link it, but that's all its dynamicism gone fishing!!
so, why is Flash being a pain/why am i such an idiot?*
(* delete where applicable)
ralph
Help Anyway To Play A Flash Movie But With Sound Muted Initially But Not From Flash?
Hello, I am currently working with a bunch of SWFs generated by Sothink's Flash Movie Encoder software (I am not the one that encodes them, another company does). I currently have a PHP page that cycles through a series of these SWF movies on 30 second intervals. These SWFs do not have any playback controls. I have a small HTML button that essentially refreshes the page and toggles a SESSION variable declared for sound on or sound off (so that it doesn't annoy the surfer). However, I do not know how to actually make the Flash SWF mute initially based on this variable. Is there a flash param that allows me to control the SWF volume? I know how to do this if I were to do it in flash, but because the files I'm working with are already pre-encoded by the software, I cannot tamper with these files and must find this alternative to muting the movies. Is there any way? Thanks.
[Flash][Tutorial Needed] How To Record Sound In Flash?
Hey guys/girls!
I want to make a new project! At the moment I play a lot on my gituar, someone said that I should make a website where I can "show" my songs etc.
But here is the problem : How do I do that!
I've been searching on google and found that it is possible to make a Flash App that can record/play sound, but I cant find any tutorial about it (or some explanation).
I also need some explanation about "Flash Communication Server", is that something like a "Apache" server but then for sound?
Sound In Flash
Okay all you wizards out there! I am new to Flash and I have a problem. I have inserted sound on a layer and I have it repeating twice, the second time with a fade out, but there is a noticeable break in the music when you view it in Netscape (not too bad in IE). Can you tell me what I need to do (probably an actionscript) to eliminate this break? Thanks all!
Flash With Sound
Ok, i know how to put sound in flash and all, its really easy, but i need to know how to make a start and stop button for the music. So if any1 can help, please do lol
Flash On MAC - No Sound
I need someone who knows a good deal about flash to help me on this one:
I have an introduction (flash) for a website:
http://www.aptira.com
The issue is, is that the sound is not working. I created a function that plays the sound and lateron, fades the sound out. Works great on a PC. Below is my code:
Scene 1 (after teh preloader scene)
coolintro = new Sound(this);
coolintro.attachSound("soundloop");
coolintro.start(0, 999);
function FadeOut () {
while (coolintro.getVolume()>0) {
starttime = getTimer();
while (getTimer()<starttime+20) {
}
coolintro.setVolume(coolintro.getVolume()-2);
}
}
Scene 11
// you call the function
FadeOut ();
Is it an issue of the frames advancing before teh sound can start??? If so, what can I do to fix this? Any help is greatly appreciated!
-slimkyd
Sound Flash MX
Hi
I have a .swi file with "play sound" action and "stop sound" action on the scene line. This works well within Swish but when I export it to a .swf the sound begins to play immediately and I can't stop it. It plays through the entire music before the thing is under control. What am I doing wrong or what is the secret to this function ?
Bern
Sound In Flash Mx
can anyone tell me how to change sound in flash MX from event to streaming sound. i'm on a mac if that makes any difference. I can't find the window/panel that allows you to do that. i'm really stuck and can't find anything here....oy.
[Edited by c3pRO on 08-08-2002 at 03:47 PM]
Sound In Flash
I am looking for anyway possible to do the following:
Have a link, that when clicked, plays a short, sound clip.
I would prefer not to have a popup window,
and I do not want a download.
Is there any effecient way of doing this? Without it clogging the server?
An example can be seen on FlashKit:
http://www.flashkit.com/loops/Easy_Listening/Classical/
It can be Html, Javascript, Flash, anything...
Thank you very much,
Help With Sound In Flash -- Again
I’m back again. I need help with this:
I’m placing narrations straight to the timeline (oh well… time is short to get this done and I could not figure it correct how to control multiple narrations with movie clips---my next step.)
Here is the bug: I have four scenes. There is one narration in the main scene. From there I can go to any other scene (through buttons).
Each scene will have three narrations along the timeline. Each one attached to a label. The first two are working perfectly. I can go next and back and the narration stops. When I go to the third narration (in sequence, after Narr 1 and Narr. 2), the narration doesn’t start. I checked everything possible, and the actions for this Narr 3 are exactly the same as the other two, and it doesn’t work.
Any idea about what’s happening? Suggestion on how to fix it?
The actionscript I add in the actions layer is, first frame of each narration:
stoppAllsounds ();
play ();
Note: I will need to repeat the same thing—three other narrations for each scene. Is there a limitation in Flash on how many frames it can load--per scene? Because of the narrations, the length of the scenes frames are very very long…
I thank and appreciate your huge help.
Patmo
Flash Sound
I have tryed to add sound to my anim but i cant get it too stop, it plays the whole track , how do i stop the MUSIC
Help With Flash Sound
i need to make something in flash where the sound files are 100% secure from being downloaded, but i need it to be streaming.
something like what is here:
http://www.polyvinylrecords.com/teamboo
is there any way to make it so i dont have to dynamically load mp3s and still have it stream? I'm just looking for something pretty secure.
Thanks
Sound In Flash MX
I have a site with a flash .swf file in the header. This movie has a little animation of the logo and a sound file attached to the main timeline. Nothing fancy.
My question is this.....I need this sound file to play continously throughout the entire site...a total of 5 pages. The sound file will loop but i can't have it restart with each page click..it must be a continous playing of the file regardless of what page the user goes to.
I can place the same flash movie in the header of each page but when i do that the sound file starts over again with each click to another page....
The site uses tables and not frames so i cant simply set up one flash move througout the entire site...
Is there a way of scripting the Sound object so that it will loop continously from its original start on the home page without starting over again as i navigate to a new page in the same site??
If not what do you guys recomend i do???
Thanks
Flash Sound
How come whenever I load an mp3 into a flash movie [which the sound is amazing quality] and then I play it, it sounds like i pooped on a cd and played it. [grainy]
Flash MX Sound On/off
I am on Flash MX and i found several stings with the info on creating an on/off button. My problem is that when I try to copy and past the code Flash generates an error that says the file must be exported as Flash 5. Can any one help? Here is the code I am trying to use.
// on the button
on (press) {
// this assumes the music is playing by default (so the first click on the button stops it, the second restarts it etc)
++count;
if (count%2) {
music.stop();
} else {
music.start(0, 9999);
// restart
}
}
// on the first frame
music = new Sound(this);
music.attachSound("Dream_tr-alteRego-2152.wav");
// and also optionally a music.start if you want the sound to play before any user interaction
music.start(0, 9999);
// loop 9999 times
Flash Sound
Hi all
I have two Sound loops in my flash movie and I would like to have "loop_1" play once and then immediately after "loop_2" starts and then loops forever. can this be done without a gap between the loops.
Cheers
Chris
Flash And Wav Sound
I need to insert a sound in a movie. The wav file is over 4 minutes long and when I insert it into the movie the sound is being cutoff at around 2 minutes. I have played the same file outside Flash and it is a full file without any problems but as soon as the file is imported into the library it will o nly play a portion of it.
Is there a way to force Flash to import/play the entire file??
Thanks,
FayeC
Flash And Sound
hello.
I got a animation made in flash. it is a head that talk. First I had the voice (soudn file) in the timeline, and it was streaming. It was also perfectly in sync with the lips and mouth movment on my head.
So I was abel to mute the sound, I had to make the sound an obejct. Well....now it the sound is no longer in sync. How come??? and how do I fix that?
thanks,
Sound In Flash
Is it possible in Flash to synch the beats of sound files if they are activated via user interaction?
My project will involve sounds being triggered temporarily when the cursor rolls over various symbols. If one of the symbols is dragged and dropped into the target area, the sound will continue to play after the cursor is removed. If the sound loops I use contain beats, is it possible to make sure these beats play in time regardless of when the user activiates them?
Flash Sound
atm, I am using wave sound and in a projector, when i pause it, the sound will keep going while the images pause.
is there any way i can merge the sound into the movie so that it pauses as well?
Sound In Flash
HOW DO YOU MAKE VOICES FOR CHARACTERS IN FLASH???
i cant figure it out man...i dont know what software (if needed)
to use, and also, im kinda new to flash since i only got it just last christmas, justin at cartoonsmart.com refered me here, and told me to post this question. please tell me EXACTLY what to do, and how to do it. thanks. (and name any software needed to do it.
im listening,
Austin
Sound In Flash
as u probly know, flash mx professional hasnt made it easy as pie to put sound into a movie. im makin a short movie where a guy blows away a zombie and ra ra ra. ive got a couple of the sounds i need, and i have added them to the library. i want them to play when the guy shoots his gun (for the gunshot sound) and this is around the 15th frame in the first layer, where all my 'drawings' are. a friend of mine told me to make a second layer devoted entirely to sound, so i did. if this is wrong i can delete it, piece of cake. the sound is for a single shot gun, but i have him shooting more than once, in each keyframe, and the keyframes follow each other, no gaps. so i need the sound to play every keyframe for about 5 or 6 keyframes.
please help me. im usually very good with this sort of stuff having studied computers and crap for about 5 years at school, but this has just got me stumped.
thx in advance
Sound In Flash
All I want is to have a sound play when I press a particular button, what actionscript do I use for that and do I have to have the sound anywhere in particular in the library or timeline?
I even tried using a behaviour *sigh*
This is urgent, assignment due tuesday :Z
Thanks.
Flash Sound Help Pls
I got a big problem. After reading through tons of material we spent one whole day creating a flash project to publish on the web one index page god that was so hard.
Anyway we manage to create a nice page with links etc. But the we added sound to our project, we tested it it worked like a treat until we clicked on a link well the sound kept playing and got worse and sometimes it gets the url but goes into a new page but it still keeps playing the sound.
Any Ideas
help pls
thanks
Flash Sound
Hey Peoples,
I was hoping to put an end to this. I was wondering if someone could tell me what is the best way to the best quality of looping audio that you can?
Would it be formats: .wav, .mp3, or .aiff? Would I embed in the movie, or would I have it load up externally?
Also, I was hoping that someone could tell me how I could make sure the audio is silent when I enter the movie, but I still want it playing in the background, because it will fade to full volume later on in my movie.
thanx in advance for taking a look at my query.
- Lowell
Flash Sound
Hey Peoples,
I was hoping to put an end to this. I was wondering if someone could tell me what is the best way to have the best quality of looping audio that you can in flash?
Would it be formats: .wav, .mp3, or .aiff? Would I embed it in the movie, or would I have it load up externally?
Also, I was hoping that someone could tell me how I could make sure the audio is silent when I enter the movie, but I still want it to be playing in the background, because it will fade to full volume later on in my movie.
thanx in advance for taking a look at my query.
- Lowell
Flash ASP CMS ..does This Sound Possible?
Hi,
Just want to know if this sounds possible
Ive got a two step form..
The first step has a flash form which a user (admin) will use to add a content for a new article. This form will be in flash. When he clicks the NEXT button the variables will be sent via the LoadVars object to an ASP page. This ASP fpage will then store the variables passed to it in sessions. It will then send a 'success' variable back to flash.
When flash recieves confirmation of success it will then call getURL(step2.asp) which should then open in the same browser window
This step 2 ASP file will NOT be using flash movie but instead will have an uploading functionality and will be a pure asp file.
After clicking the upload button on this page ... the database will then be updated (using the session variables defined previously).
Does this flow chart sound possible or am i talking crap? Cheers for your help/advice...
Flash ASP CMS ..does This Sound Possible?
Hi,
Just want to know if this sounds possible
Ive got a two step form..
The first step has a flash form which a user (admin) will use to add a content for a new article. This form will be in flash. When he clicks the NEXT button the variables will be sent via the LoadVars object to an ASP page. This ASP page will then store the variables passed to it in session variables. It will then send a 'success' variable back to flash.
When flash recieves confirmation of success it will then call getURL(step2.asp) which should then open in the same browser window
This step 2 ASP file will NOT be using flash movie but instead will have an uploading functionality and will be a pure asp file.
After clicking the upload button on this page ... the database will then be updated (using the session variables defined previously).
Does this flow chart sound possible or am i talking crap? Cheers for your help/advice...
Flash Sound Help
I have created a flash banner for a client which it includes sound. There needs to be a button to turn on and off the sound. i have it in a MC, but the sound turns back on once the movie loops. How keep the sound off (or on if the user wants)?
Example: Someone visits the page, and wants to turn off the sound, he hits the button and even though the movie loops, the sound remains off.
The whole loop is only going to be about 20-30 seconds (if that)
I need the music to be on at first, and then if the user wants to turn it off (and stay off)
Help With Sound In Flash.
HI,
I'm new to this so i'll just start with the question. I'm currently teaching myself Flash and have stumbled on a little problem. I have created a interactive site for my uni project and at the main menu stage i have placed music on the root time line in a layer of it's own. However when i press one of my buttons that starts another animation instance on the root timeline i can still hear the sound from the main menu. I have tried adding a behaviour to the button "on release - stop all sound" but it doesn't work. I've tried looking on other sites and only have access to old Flash 4 or 5 edition books.
Can someone please help me!!!!!!!!
Many thanks
Kenny
Sound In A Flash
Hi,
I am doing a flash with a sound file, I am adding some lyrics of the song but the problem is that sometimes I see them in different parts of the song. Is there any way to fix it?
Thanks in advanced!
Jorge
Sound In Flash 8
Hi everybody. Could somebody help me with a sound question? I have a 2 minute mp3 which is a sample of a track from a cd. So far, I've been able to create a button that says "click here for sample" and the mp3 plays when you click it. The problem is that if you click it while the first one is playing a second sample will start at the beginning, but the first one will keep playing. So now it would be possible to click the button 100 times and have 100 samples all playing and layered on top of each other. What's the best way to fix this?
[F8] Sound In Flash
How do u link sound with what you have in flash?
How do u put sound in the timeline in an attempt to link sound with a presentation?
[F8] .wma Sound In Flash
Is it that flash doesnt accept sounds with .wma extension? The reason i am asking this is because i tried to import a .wma sound into the library but i got the error
"Unexpected file format" .....i dont know, maybe i am doing something wrong? if i am not.... is there any software out there that would change ma .wma into a sound extension that i can use in flash?
Thanks in advance....
Flash Sound On/off
Hi...
I have 2 pages in that there is a swf file that has music on/off buttons. The swf file is same on 2 pages. The swf file has 2 links....link1.htm & links2.htm.
When a user click music off button on link1 page the sound stop & when he clicks on the link2 it goes to link2.htm.
The sound should stop in link2.htm as the user clicked the off button on link1.htm page.
I don't want to use frames & iframe, Can anyone help on this part.
Regards,
Ajay
Flash Sound
Hi ,
When i add sound to my flash movie i have a problem . When i play the movie , in flash itself it plays fine , but when i export the movie , it goes hay wire . The sound plays way before the picture . If i export each scene seperately , then the difference is very slight , but when i export the whole movie , all the sound finishes playing in a few seconds , while the video continues for minutes .
Can anyone tell me why this is happening ?
Thanx . . .Nicole
|