Actionscript 3 :: Way To Deal With Sound In Flash?

Jun 2, 2011

is it best to load sound files into the library, or to load them externally? What I want to do is make a sampler app. You'd have a selection of loops and drag and drop them onto a timeline. My main concern is performance and any delay of sound.

View 2 Replies


Similar Posts:


Flash :: Deal With Late OnMetaData In IE?

Apr 7, 2010

I am trying to dynamically resize an flv playing back in a flash player. To do this, I need to get the flv's width/height so I can maintain the original aspect ratio. I have noticed that in Firefox the onMetaData event will be hit right away, and the video will resize properly. In IE however, onMetaData is not hit until the buffer is full and video starts playing.

One solution I have thought of is to set the initial buffer to something close to 0 (e.g. 0.01). Then the buffer will instantly hit full, and the video will be resized. The issue I have with this is low bandwidth users will have a a short 'sputter' of video (0.5 seconds say) at the beginning before it goes to the next, larger, buffer. Is there any better way to deal with this behavior in IE? Can you manually "get" the metaData from an FLV file before it even plays?

View 1 Replies

ActionScript 3.0 :: Flash Memory And How To Deal With External Swf?

Jul 23, 2009

I'm currently building a website that contain different game. each game is an external swf. I'm auto-preloading it while displaying textual stuff in order to have a minimum of preloading time.

Everything work well but imagine I've got 5 external swfs. If I decide to close one game and remove the loader child, when I click back to view this game, I have to reload it again.

So, is there a problem (memory or performance) if I do not delete my 5 loader childs in order to lead them only 1 time?

View 0 Replies

ActionScript 2.0 :: Spoiler Tags Type Deal With Flash

Feb 7, 2007

any resources that could help me learn how to emulate a spoiler tag type effect for flash text?I've looked at tree menus etc but seems a bit fussier than needed. What I have is a very large piece of text with differing sections, rather than have a user swamped by everything at once I'd like to hide the majority of it with a brief intro for each section. A [+] / [-] button would expand and collapse the extra information when required (pushing the rest of the content down ala a tree menu type thing).

View 3 Replies

Flash :: Deal With Multiple Configure Files In A Actionscript 3.0 Project?

Feb 7, 2012

I'm now working on multiple config files(about 16 .txt form files) in a actionscript 3.0 project. I think it is not good to load so many files. maybe I should package them into a swf(But I do not know how to do this) or do sth else.

View 3 Replies

ActionScript 3.0 :: Flash To Simply Deal With As Multiple Mouse Down Events Rather Than Going Into Multi-touch Gestures

Mar 17, 2010

I have made a jigsaw puzzle game, that can be scaled up to have lots of pieces. Now I want to implement it so it can be played by more than one person at a time on a large multi-touch screen. I'm not sure how is best to proceed.

Ive had a look at some development kits and some tutorials and they seem to go into too many gestures etc. I literally only need the capability to move more than one piece at a time. So is it possible for flash to simply deal with this as multiple mouse down events rather than going into multi-touch gestures etc. Or do I need to do it another way?

View 2 Replies

Xml :: How T Deal With The Namespace

Jun 30, 2011

I'm developing a flex mobile project using the wikipedia api which returns an xml with namespace like this.

<SearchSuggestion version="2.0" xmlns="http://opensearch.org/searchsuggest2">
<Query xml:space="preserve">xml</Query>
<Section>

[code]....

View 1 Replies

Windows :: Can FDT Deal With FLA Files Or Not?

Jun 16, 2010

I'm trying to find an all-in-one IDE for flash, one that can deal with various flash related files. I just read this answer and it recommends fdt, but seems fdt can only deal with scripts but not .fla ones. Which IDE should I use so that I can use it to develop various files involved in flash developing?

View 2 Replies

ActionScript 3.0 :: How To Deal With Xml Files

Sep 29, 2009

i want to program a flash simulation using actionscript 3, infect I learned how to deal with xml files from this website:URL...But the problem that I want a sample of an xml file for simulation template and if it possible a simulation template so that I can learn how does it work.If "flash simulation" is not clear, i mean with to perform a dialog that two people are conducting one of them are you, and the other one is the pc, if you answered with deferent choice then the dialog will take another path. (Every answer will take you to a deferent path)

View 4 Replies

Professional :: Priority On Stage And How To Deal With It?

Oct 2, 2010

Anybody else have that dilemma where you have movieclips on stage that should animate, but because they somehow end up switching index/priority(top to bottom on a single layer) on stage in some keyframes, they end up resetting themselves. This causes you to go back through all your movie clips just to check for this. Is there a reletively simple way to deal with this?

Also, assume that distributing everything to layers is not an option.

View 3 Replies

Actionscript 3 :: Deal With Same Method Body In Different Handlers?

Aug 23, 2011

I have a method fired on mouse down:

private function setGender(e:MouseEvent):void
{
check.visible = true;[code]...

The same method body is shared by another method fired on a keyboard Event (so, it takes a keyboard Event for argument). Which is the best way to deal with situations like this one? I would like to have only one method.One way could be to create a new method called by the two event handlers (even if, if I need to use e.target, it can change according to the type of event and other variables, so I should eventually create a method that takes e.target as a parameter). This creates three methods...Would it be possible to change for example e:MouseEvent with a parent of MouseEvent and KeyboardEvent?

View 3 Replies

ActionScript 3.0 :: XML: Deal With Empty Child Nodes?

Jul 24, 2009

I have child node that has no information ... it would be a URL, so the error message I get is Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.. Code: _currURL = path.article.(@ID == _marker).storyURL; I thought I might check to see if _currURL == null, but that does nothing.

View 2 Replies

ActionScript 2.0 :: Setup A Scoreboard Type Deal

May 10, 2009

Im trying to setup a scoreboard type deal. I'm using SharedObjects.I can make it WRITE to the .sol without any problems but I cant seem to make it READ from the .sol to re-display the data once the user opens the swf again.

View 2 Replies

ActionScript 2.0 :: Drop Doown Menu Type Deal

Mar 24, 2009

I know there are lots of posts about drop down menus but I think my ? is a bit different. I want to have a menu like URL... where when you click on say, ad campaign the options come up on the side.

View 6 Replies

Professional :: The 'works Locally Fine, Not On Server' Deal?

Feb 5, 2010

There was always a flash movie on the homepage and it worked fine. A couple days ago I replaced the movie with a new one and added a .swf to the portfolio page as well. On the portfolio page, the movie is layered behind a series of transparent .pngs that link to their corresponding lightbox designations. The movie just plays, there isn't any interaction this way, atleast not in flash.

The problem: Everything works perfectly fine locally on all browsers and not at all on the server across all browsers. I have seen this problem before and read alot of posts about it.I know I have the proper scripts files. I've re-saved flash movies, changed their location within the site, published them with the appropriate settings, nothing seems to do the trick. Whats worse is that the lightbox doesn't even work online and it runs fine locally. Infact you cant even click on the .pngs and they aren't positioned the same with the css as they are viewed locally. I've overwritten the css with the up-to-date stylesheet many times as well

View 5 Replies

ActionScript 3.0 :: Making 300x250 Ad That Takes XML Feed For A Deal Of The Day?

May 25, 2010

My work has tasked me to create a 300x250 ad unit that will pull an XML feed from a vendor. The problem is I've been reading guides on XML and As2/As3 for the last few days and I've really not gotten anywhere. My boss is breathing down my neck and I need to get this done asap.This is an example of the feed the vendor is giving us.

Code:
<deal id="24">
<title>$20 for $40 worth of food & drinks at Simply Fondue</title>
<advertiser_name>Simply Fondue - Orange County</advertiser_name>

[code]....

View 3 Replies

ActionScript 2.0 :: Have A Button Load It's GetURL() Deal From An External File. XML?

Aug 2, 2005

I need to have a button load it's GetURL() deal from an external file. XML? Txt?

View 2 Replies

Flash :: Dynamically Create New Sound Objects Based On Raw WAV / DATA Or Other Sound Object?

Jan 31, 2012

Is there any AS3 library or code-snippet that can create altered versions of a Sound object on-the-fly (at runtime)? Either based on:

An existing Sound object; A ByteArray object;

For example, say you have a "dry" sound of a gun-shot. You could:

[Code]...

View 1 Replies

Actionscript 3 :: Flash: Generate/display Sound Waveform For Uploaded Sound?

Mar 14, 2011

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?

View 2 Replies

ActionScript 3.0 :: Sound Class Type - Cannot Convert C$ To Flash.media.Sound

Oct 25, 2009

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.

View 2 Replies

Flash :: Synchronizing Sound - Sound Gets Terrible As Time Passes?

Jan 31, 2010

It appears my sound is off sync and the longer I play the movieclip, the farther off sync it goes. Its nothing too complicated, just some basic shooting sounds that fire every time I hit the space bar. My code is below:

package com.objects{

import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundChannel;[code]....

The Attack() method gets called from another class that handles all keyboard controls.when it gets called the sound then plays.firesound and firesound2 are almost the same. firesound2 sounds a little off pitch to make it sound more realistic.At first the sound sounds pretty good, not great. but then it gets terrible as time passes.

I made a new .fla project. and I attached the following class to it by it self. so the following is the only code in the entire .fla project and the issue still occurs. I press the spacebar and the sound starts a day late.

package {
import flash.display.MovieClip;
import flash.events.*;[code]......

View 2 Replies

Flash :: Playing Sound From Data Acquired From Sound.extract()?

Aug 1, 2011

I'm trying to play a sound using a technique found here (play the sound by sampling raw sound data gathered from the original with extract()), with the difference that the mp3 sound is embedded in the swf, not loaded externally. This is my code:

var soundBytes:ByteArray = new ByteArray();
var mp3sound:Sound = Sound(new Sound1_design()); // this is the embedded sound
mp3sound.extract(soundBytes, int.MAX_VALUE);

[Code]....

This works, in a way, except that the resulting sound is distorted (it has a kind of a metallic ring).

View 1 Replies

Actionscript 3 :: Catch And/or Deal With "Error #2030: End Of File Was Encountered" On A NetConnection ?

Mar 30, 2011

I'm currently writing a client in ActionScript 3 that talks to a Red5 application/media server via a NetConnection object. The server sends the client multiple types of data over this connection including video, audio and remote procedure calls. After an indeterminate amount of time (sometimes 10 seconds, sometimes 10 minutes) I see the following error in a popup window from my Debug version of the Flash client:"Error: Error #2030: End of file was encountered."

I'm in the process of trying to figure out what's causing this error and the thing that's really driving me nuts is that I can't seem to catch it. I realize that the error probably indicates some low-level network read failing, but the fact that it generates a popup window in the debug flash player implies that I should be able to catch it.Since the error has no associated stack trace, I went so far as to add the an uncaught exception handler on my base Sprite object:

public class MyClient extends Sprite
{
public function FOWClient()[code].....

My uncaught exception handler will get called properly if I purposely throw in some errors, but it never gets called when this Error #2030 happens.How the heck can I catch this "End of file was encountered" error and deal with it in code? If I can't catch it, are there any thoughts on what's causing it and how I fix that? I've narrowed it down to having to do with RPC calls being made from my server to my client because when I disable those, but leave audio & video, I don't see the issue. Unfortunately, I don't yet have any good ideas beyond that.

View 1 Replies

Flash - Take Two Sound Objects And Combine Them Into One Sound Object

Nov 15, 2010

Is it possible to take two Sound objects and combine them into one Sound object so that one Sound plays, and then the second plays right after it? I can just play the first Sound and then the next right after it, but it would be much cleaner to combine them before playing the audio.

View 1 Replies

Actionscript 3 :: Sound Latency - Set It For Any Silence Before The Actual Sound By Calling The Sound

Apr 16, 2011

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?

View 1 Replies

ActionScript 2.0 :: Play Sound Like "stop All Sound" Option In Flash?

May 17, 2003

I want to use a sound loop in my flash movie. The movie has many scenes. And the problem is that when I go to next scene or different scene I hear the sound repeating twice. I mean sound does not stop from first scene and begins from the different scenes.Is there any way to play sound like "stop all sound" option in Flash.

View 6 Replies

Flash :: Sound Length In Actionscript - Get 0 Instead Of The Length In Milliseconds Of The Sound?

Aug 13, 2011

I am trying to use the class Sound of actionscript.My code is really basic :

var snd:Sound = new Sound();
snd.load(new URLRequest("mysound.mp3"));
trace( new String(snd.length));
snd.play();

The audio is playing very well but in my trace, I get 0 instead of the length in milliseconds of the Sound.

View 1 Replies

Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intack?

May 21, 2010

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.

View 2 Replies

ActionScript 1/2 :: Make Button On Rollover Starts Sound And Rolloff Stops Sound?

Jul 28, 2009

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.

View 6 Replies

IDE :: Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intact?

May 21, 2010

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.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved