I know, I could get a better one for free, but this is easy and I'm no good at flash, etc. Anyway, everything's fine, except I can't seem to get the sound to work. There's a component parameter called "flip sound" (I think) - I put my sound in there (it's all in the same folder, so no path), and - no sound.
How to import sound with AS? Cuz i have tried it and my sound just wount play. Can you explain me where my sound should be and what is the as code for importing cuz i use
mysound = new Sound(); mysound.attachSound("SoundOn"); mysound.start();
and this SoundON from where i get it, i try to add linkage to the sound file but in CS4 i cant find the option;. I do it from the library, adding text into the linkage field but still my sound doesn't want to play?
The code seems OK but I can't hear the sound. I have it in the fla/swf and exported etc... I suppose something in this code is wrong. Haven't coded for ages - bit rusty I'm afraid.
Im using Flash CS3 with Action Script 2. I create a Flash file with few scenes in it. im using movie clip button in every scenes plus i embed .mov file in some of the scenes. I also have sound in every single scenes.
i create btnHDPage1 with instance name hd1 to be linked to scene1 and i create btn2 with instance name hd2 to be linked to scene2. (all these buttons are movie clip buttons). i have a sound and both scenes and a .mov file in scene1
The problem is, when i click on hd1 or hd2, yes it goes to appropriate scene. but the sound is overlapping and when im in scene2 and click on hd1 to go to scene1, my sound does not play and my .mov does not working.
I'm totally stuck on getting a sound to work in my movie. Here's my code: s = new Sound(); s.attachSound("hibee"); _root.menu_flyin.admin_mc.onRollOver = function(){ s.start(); }
I created a test movie to see if there is someting wrong with the way I am scripting. But the test worked and my real movie doesn't! The sound is being targetted to a movie clip within a movie clip (_root.menu_flyin.admin_mc) and all instances are there on the stage. I linked the "hibee" sound file to export to 1st frame for Actionscripting and all.
I have this problem when I try to fade in sound with the function below. It just doesn't work and I can't figure out where the problem is. I would like to fade in a looping sound but nothing happens.
I'm creating a flash of a piano in which you hit a button and it plays that key. I have a single file of the entire scale, and I tried to put a stop(); command after each note- however it's not stopping. Shouldn't the stop command respond to the actionscript since the sound file is in the timeline?
Here's a link to the FLA file- I've barely started working on it, so it's hardly coded except for the stop actionscript. music_scale.fla
When I try to fade in sound with the function below. It just doesn't work and I can't figure out where the problem is. I would like to fade in a looping sound but nothing happens. This is used to play a sound via events Code: dispatchEvent(new CustomEventSound(CustomEventSound.PLAY_SOUND, Main.SOUND_AMBIENT, false, true, false, 999999, 0, 0, setSoundVolume));
This is the function to play a sound. the stop-function is almost identical to this one. Code: public function playSound(soundName:String, isSoundTrack:Boolean = false, fadeIn:Boolean = false, fadeOut:Boolean = false, loops:int = 1, offset:Number = 0, volume:Number = 1):void { if (fadeIn) { tempSoundTransform.volume = 0; [Code] .....
I tried to build a metronome in Flash AS2 with a rather lousy result because it won't keep the pace which would have been a suitable feature for a metronome. I tried a few different methods to do the sync with actionscript. I even tried to put the sound in the timeline but it didnt work any better of course. Here is the code: AS2 with constant tempo 200 ms, based on the onEnterFrame handler, framerate set to 5 fps:
I would like to fade in a looping sound but nothing happens. this is used to play a sound via events.Code:dispatchEvent(new CustomEventSound(CustomEventSound.PLAY_SOUND, Main.SOUND_AMBIENT, false, true, false, 999999, 0, 0, setSoundVolume));this is the function to play a sound. the stop-function is almost identical to this one.[code]
(Flash 5) Ok guys, I am trying to get a button to work by pressing keys. Problem 1) I want the keys that are pressed to be ,1,2,3,etc... and those keys aren't in Flash's actions, can they still work? Or do I have to use keys like SPACE, RETURN, etc...??? Problem 2) Here is the code I'm using. I also want a sound to be played while the button is going down. The sound is in the "down" of the button, but I linked it. THe linkage name is "sound1" here is the code;
I'm trying to develop something for Flash 5 Player and nothing seems to work. Currently I'm having trouble with the following bit of AS which works fine if I export for Flash 6. But in Flash 5...no sound. Is there a specific way an mp3 needs to be encoded for Flash 5 or does it not even accept mp3s?
I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:
[Code]...
All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?
I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.
I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. (not sure if I'm able to give a link to it or not on here. If I able to and someone would like to see it let me know)
I want to know if my flash header can support the following additional functionality/changes:
1) Currently, it loads everytime a page is selected. I only want it to load the one time of entering the site because the audio gets annoying. Set a cookie maybe?
2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.
3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.
4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?
I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features. Not sure I can afford help now because of being laid off and two different scammers taking advantage of me. So I'm going to try to do myself and see if there is any suggestions/support on here that can help. I have Flash CS4.
I have several buttons in a movie and I want to be able to rollover an individual button and play the sound for that button and when I rolloff I want the sound for that button to stop.
I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. I want to know if my flash header can support the following additional functionality/changes:
1) Currently, it loads everytime a page is selected. I only want it to load the one time of entering the site because the audio gets annoying. Set a cookie maybe?
2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.
3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.
4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?
I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features. Not sure I can afford help now because of being laid off and two different scammers taking advantage of me. So I'm going to try to do myself and see if there is any suggestions/support on here that can help. I have Flash CS4.
I am using a flash app. I can send and receive streaming data to FMS by using this app, like the chart I attached. [URL] This app uses RTMP to access to FMS. I want to upgrade this app to display sound level of each client. Is it possible by using Actionscript and FMS? If so, which class should I use?
I have a project that requires me to display the waveform for a uploaded sound. The sound is always an MP3, most of the time 22.05 kHz mono, with speech only. The project are written with Flex/ActionScript 3. It's meant to run in the browser, but might also consider converting to AIR if that can help.
All examples I've found and looked at for generating a wave, are either doing some visualization in real time as the sound is playing, or, the most promising, as3soundeditorlib, keeps the wave already generated, but does it very slowly, seemingly using as long time as playing through the audio would've taken.Is there any way to generate the wave faster than real time?
I am using the following to extract the byte info from a sound object - however if I go back to the same sound object and run this again, The byteArray has no bytes available.
var data:ByteArray = new ByteArray; sound.extract(data,sound.length*44.1); data.position = 0; return data;
Is this the correct behavior? Is there not a way to do this multiple times on the same sound object?
I have some sounds in my library. They are all exported and have been given class names like C, D, E etc. I have another class that represents a button. This class stores a reference to one of the Sound in my library. I set the type for this variable to Sound. When I try to set it I get the error: cannot convert C$ to flash.media.Sound I try as Sound, for example key.note = note_array[p] as Sound; The value ends up as null.
I want to attach a sound to the main timeline (rollover sound) that i can call from on(rollover) button events. I will be attaching the same sound to several buttons.
1) I have a button and when I put cursor over it, it must start looping a sound. When I drag away, the sound must stop. I would be even cooler if it was possible to make the sound fade away when the mouse is rolled away. I have no problem creating another sound file that fades my current sound away.
2) I have a button which represents a knife, that should stab something (a panel) once pressed. So fist the knife must be clean. but after one or more presses, the blood should remain as a movie clip (as I want to animate the dripping blood)
3) once rolled over a button, the sound must start looping (as I wrote in 1.) AND the knife should slowly go backwards (MC). BUT when I roll mouse away, the sound fades away (as in 1. again) PLUS the knife should slowly move back to its place in stead of just jump from one place to another.
I'm having some trouble getting the following code to work - trying to use the new Sound.extract() function to get two seconds of a Sound into a ByteArray, and then create a new bytearray with a WAV header, and then output the file. The resulting 'test.wav' file sounds very wrong although slightly recognisable? I think I may have some of the WAV header settings may be wrong but I'm not quite sure what's the matter and after a long time scratching
I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. (not sure if I'm able to give a link to it or not on here. If I able to and someone would like to see it let me know)I want to know if my flash header can support the following addionalunctionality/changes:1) Currently, it loads everytime a page is selected. I only want it to load the one time of entering the site because the audio gets annoying. Set a cookie maybe?2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.
3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features.
I have a long mp3 file hosted on a standard apache server (30 minutes long so far, but I would like it to work with longer sounds too).I'd like to start playback of this audio within at a specified point. When attempting to use Flash Actionscript 3, my basic tests show that ALL the audio from the start to the position I choose is buffered before playback (Sound.bytesLoaded was my friend here). If I start one second in, it takes about 3 seconds to start playback, 30 seconds in, takes about 25 secondsObviously with a really long mp3, like skipping playback to the middle of a 3-hour audiobook, this isn't going to be practical.Here's the ActionScript 3.0 code I'm using:
button.addEventListener(MouseEvent.MOUSE_DOWN, function():void { var s:Sound = new Sound(); var req:URLRequest = new URLRequest("http://example.com/audio.mp3");