ActionScript 1/2 :: Simultaneous On / Off Sound Buttons?
Apr 1, 2009
I'm an intermediate flash user and I've made a file for my kids in class that has some sound on-off buttons. they are set to play once or loop depending on length by simple mouse click. they will play simultaneously if more than one is clicked individually on the page. I'm trying to make the page so the kids can just select the sound button icon, drag as many of them as they want (usually 2 -4 sounds at a time) into a box at the bottom of the page where they will then just play and loop. if they are dragged out of the box, that sound will stop. if another is dragged into the box it's sound will then join the ones that are already looping.
View 3 Replies
Similar Posts:
Nov 7, 2003
I have a .swf playing some background tunes, I have the soundsOff button working, but can't find some basic action to get the sound started again?..
View 2 Replies
Dec 17, 2009
I am running Window 7 64 bit with 6 gb of RAM, two E5520 Xeons, two 10k raptors, one 320gb HD, and a ATI FirePro V5700. Brand New machine and a Fresh install of windows.
Everytime Photoshop CS4 is open it will cause Flash Cs4 to Crash. I can work in Flash without any issues until Photoshop is opened. Flash will usually crash in under 5 min with Photoshop open. I have tested this over and over and it is Photoshop causing Flash to crash. Does not matter whether I am running the 32 or 64 bit version of Photoshop. I am starting to believe it is a memory issue but I am not sure or how to fix if it is.I have tested the memory and it passed all tests. This is really killing my production time.
[Code]...
View 2 Replies
Jan 26, 2011
I am familiar with taking in keyboard input in AS3. I was wondering if there was a way to capture and process simultaneous key presses.I don't mean when a user holds down, say, the up and left arrows at the same time and an object moves diagonally. I mean when they actually press down on the keys simultaneously, like in a video game where 2 simultaneous button presses performs a new action.Currently, I have a class that reads whenever a user presses a key and assigns it to an instance variable. Then, each frame, the class pushes the key into a storage array if the current key pressed doesn't match the last key pressed. Each key is stored for 60 frames before being dumped if it isn't processed.
View 3 Replies
Feb 16, 2010
How is it possible to determine in advance the max number of simultaneous connection for my FMS?
View 2 Replies
Apr 12, 2010
I am using mcl ( moviecliploader ) class to download images for a photo book;
when a user mouseover's a thumbnail, the corresponding fullsize img is downloaded;
PROBLEM: 1 - a user can move their mouse quickly over many thumbs;
2 - mcl class doesn't seem to have a way to stop downloading
3 - therefore it is realistic that the mcl could be forced to download 10-15 images simultaneously
4 - possibly the thumb that the user actually wants is last in the que;
View 1 Replies
Jun 26, 2010
I'm learning on how to make que loader system. I'm loading in 30 images at once when the swf loads onto stage that contains moderate tween animations. I was wondering would I get better performance if I only allowed to load 5 images at once then next set 5 ect ect. rather than to load 30 images at once? I can't tell because my computer is very good so I can't hardly tell. Is this common practice?
View 2 Replies
Dec 28, 2006
Basing on the following script
[URL]
I would like to have a photogallery which instead of one picture at a time will display three pictures. take a look at the attached image to get a better idea about what I need.
View 1 Replies
May 13, 2009
I´ve made a couple of simple buttons and I have placed a sound on the over frame, when I export the swf the sound sometimes get very distorted and in a browser too, so I made a movieclip "button" instead and attached the sound and the same thing happens!The sound is a mp3, a short "classic" click.
View 2 Replies
Apr 29, 2010
I have two flash ads that need to look as though they are interacting. is there a way to make sure they load at the same time so they can sync every time? they do not need to communicate with each other just load simultaneously so the animation lines up. can local connection object work for this?I suppose I could stager load em and plan the animation accordingly if simultaneous load gives issues. is there a proper way to load one ad and then the second say 10 frames in, ya know?
View 1 Replies
Aug 3, 2011
I have changed the variable <MaxConnectionRate>2</MaxConnectionRate> base on the URL - "Limit connection requests",but more than 2 client can connect to the server.
Is that other settings to config to restrict the number of simultaneous users?
[URL]
View 4 Replies
Sep 24, 2009
I'm trying to upload to amazon s3 using FileStream and UrlRequest.
But it seems I can only upload 2 files simultaneously.
Is there a reason for this? How can I work around this?
Also would this affect web service calls to a SOAP web service on the same domain?
View 2 Replies
Mar 9, 2011
Im in the final steps of my Flash game, now I have to take care of the music/sound.And, I figure out that I'd need to reproduce several sounds simultaneously, sounds like gun shots, explosions, screams, etc, however, these sounds are short, < 1 seconds.So, how many sounds can I reproduce at the same time?, and what would be the best approach (what class to use, how, tips, etc) to achieve this?, considering my situation.
View 2 Replies
Apr 13, 2011
I am trying to do a little multimedia player where I have at least 9 small videoclips that I would like to place and play - all controlled by AS 3.0.
It might even be more than 9 clips, but they will show randomly in 9 places. A movie can switch viewport too.
I will preload them all into buffers and I would like to play them randomly at the same time.
This means that there could be 9 equally sized areas showing small movieclips including sound and random times.
Like this:
[1][2][3]
[4][5][6]
[7][8][9]
So its 1 Flash canvas/player showing them all at the same time.
Is this possible or will it crash Flash to play 9 movies including their sound? The movies might be of different length and will have to be reset and played many times, but I cant prerender the result as its randomly generated from user input.
like in... an example code of where to start? I've been thinking that I could put all the parts into one "sprite movie" and the play from frame XYZ for each "window" - but not sure how or if it will work..
View 2 Replies
Mar 30, 2011
I have been been testing for keyboard events one key at a time. Now I want to test two keys being pressed or released at the same time. I am unclear on how to do this. Do I need to indicate this intention in the functions parameter
Code:
if(event.keyCode==keyboard.LEFT&&keyboard.keyCode.RIGHT);
isn't cutting it.
View 6 Replies
Feb 17, 2004
I am trying to do simultaneous cross fade of images in a slideshow. The script here seems to have a very elegant method for cross-fading movieclips: [URL] However, I cannot get this script to work for images Anyone have a clue as to how to make this work with images? Let's say I have done: this.createEmptyMovieClip("photo", 200) and done a loadmovie of an iamge into the the MC. Here is the actionscript that I want to alter so that it will cross fade the iamges...
[Code]....
View 6 Replies
Jun 25, 2008
I got this code
[Code]....
and it works but now I need to use two simultaneous keys for example Ctrl + S, is there a way to do that using actionscript 3?
View 14 Replies
Nov 12, 2010
Currently my flash file will insert an object onto the stage when the user clicks onto the stage. each object will play and loop a sound (the user can select sounds and time before the sound loops for each object) but when I have many sounds playing at once, the sounds will suddenly stop and briefly come back before stopping again. Now I'm guessing there must be a maximum number for sounds simultaneously playing for a flash movie? If so, I'd like to know if there are any workarounds?At present, a sound playing about 2 times a second will be able to repeat roughly 30 times before it sound cuts out.
I added in functionality to stop a sound if it is attempting to trigger again in my play function to which I had a "cannot access a property or method of null object reference" output on the function and the sounds all started doing the same thing again. This happens the same as above, after 30 times playing 2 a second.Unless I've assessed the cause incorrectly, the only workarounds I can think of are to restrict the sound length and restrict the time before a sound loops - but this would ruin some of the aspects of what I wanted to create
View 2 Replies
Jul 11, 2009
I have a rollover button and I have assigned actionscript to play a sound when the button is rolled over.
However when the sound plays, it seems to overlap the sound and play it many times! I know it is not repeating the sound as I have tested it with a song and it plays the song many times overlapping, rather than repeating it.
I have the code used below:
[Code]...
View 2 Replies
Dec 9, 2010
I've been trying to make a sound-loop player for quite some time now (i'm new to as3) and i'm pretty close to do it but still Ok, i've made six letters converted them into buttons and i want them to play a different wav sound loop each one whenever i click on them and to stop the sound when i click again.This works fine for the first button but not for the rest of them because i dont know where to insert the similar code for the rest of the buttons.
import flash.media.Sound;
var sound:Sound = new The_Rloop5();
var soundControl: SoundChannel = new SoundChannel();
[code].....
View 8 Replies
Apr 15, 2010
Is there any way I can have multiple sound buttons that works as stop buttons for each other? I mean.. I now got 3 buttons that start 3 different songs, but they overlap each other when I press more than one. I'd like Song 1 to stop when I press Song 2 or 3. And vice versa
View 3 Replies
Aug 25, 2004
I want to load a sound to one of my buttons. I think I've got the scripting, but how do you put them "together" snav2.start("snav2"); - (I think)...is my scripting for my sound (where snav2 is my symbol linkage propery name)
and then
on (release) {
getURL("about_us_1.htm", _self);
}
So, where do you put the sound scripting in?
View 2 Replies
Sep 1, 2006
i need to play a sound with voices in order to play an interactive animation, but i must have an stop or pause option (a button) that pause both, the movieclip and the sound track, and when pressing again the "pause" button, the movieclip has to continue with the sound track at the same place it stoped. I�m getting a headache trying to figure how to stop a sound in a specific moment and then play at the same place it stoped, and not from begining...
View 1 Replies
May 20, 2010
My AS 3 program has multiple buttons. Users can select one and then immediately select another and this causes 2 threads that collide. Once one button is executing, I want the other buttons to ignore clicks.
The problems are twofold: 1) the first time the 2nd button attempts to execute (by checking lock), when it returns (from checking lock) and attempts to pick up processing where it left off, it seems to forget where it was and does not utlimately complete its task(s); possibly variables have been altered, it is difficult to say. That is, AS 3 is unable to successfully pickup where it left off on the first button. the second problem is that AS 3 incorrectly returns to button 2 after the lock condition is cleared. It persists and will execute that button.
View 2 Replies
Jul 22, 2011
I am making the board game Shogi in actionscript 2 and I have a question on how to detect a particular imput.I have a movie clip on the stage, I want it so that if I hold down the keyboard button "p" and then click on the movie clip, it will go to the movie clip's frame 2 (not the entire flash project's frame 2, just the particular icon's frame 2. I need this because I am using movie clips as game pieces and in Shogi, certain game pieces can be promoted. I also was wondering how to detect what frame it is on.
View 3 Replies
Dec 19, 2011
Essentially, I have flash content that scrolls on mouse wheel. It works fine, unless there is other content in the browser such that the browser's scrollbar is enabled - when that is the case, both the browser window AND my SWF scroll on mouse wheel. Is there any way to correct this behavior?
Similar question asked here:
disable mouse wheel scrolling while cursor over flex app?
which references the solution blogged about here:
[URL]
But the solution does not work on all browsers! While it works on some Windows browsers, it doesn't work at all on Mac OS X - it registers mouse wheel events in Firefox, but they are not getting fired at all in Chrome and Safari.
Now I know that (per the official Adobe InteractiveObject docs) mouse wheel is supposedly only supported on Windows systems, but the event is still fired by default on Mac OS X. Is this simultaneous scroll bug the reason it is not supported?
Edit: adding more info on above solution...
Note that the above solution basically uses ExternalInterface to send the following JavaScript to the "eval" function:
var browserScrolling;
function allowBrowserScroll(value) {
browserScrolling = value;
[Code]....
View 2 Replies
Jun 7, 2004
how flash handles multiple simultaneous objects being loaded? If I set two images loading into two empty movie clips in two consecutive lines of code, do they both load simultaneously or does the one that was called first load and then the second image load when the first has finished?
View 4 Replies
Jun 7, 2004
how flash handles multiple simultaneous objects being loaded? If I set two images loading into two empty movie clips in two consecutive lines of code, do they both load simultaneously or does the one that was called first load and then the second image load when the first has finished?
View 4 Replies
Nov 8, 2009
I am using actionscript 2.0 and I am trying to create multiple sound buttons that trigger multiple different .mp3 files via mouse click.I have gotten it to work with one sound file using this actionscript [code]but as soon as I add another button and try to link it to another file it does not work.I would like to make it so that even if I click another button to start another sound, the first sound keeps playing.
View 1 Replies
Jun 12, 2010
I�v build a simple flash projector to offer to my local fire department Essentially they used to in internal audio alarms to warn firefighters when there is an accident, fire, aggression, etcIn the version 1.0 they click several buttons, one to play the alarm sound, otherto announce the vehicle or vehicles that goes out, and a last one that says what is occurring.
The problem they report is that the sounds play immediately when you click in each of the buttons, and even the sound overlaps the other, which makes they click on each button and have to wait for the sound to finish and then click next. All this is normal because I associated the sounds to the buttons. What do I need to do the flash in this order in the version 2 of my projector:
1 The Fireman choose the type of alarm you want to play and click the button corresponding (but do not want the sound to play now) let's imagine that he pressed the button "alarm 1"
2 The Fireman choose (s) vehicles which are going out to the occurrence (but do not want the sound to play now) let's imagine that pressed the button "ABSC01"
3 The Fireman choose the type of occurrence (but do not want the sound to play now) we will imagine that pressed the button "fire"
4 finally the fireman holding down the "PLAY" (the green on on the top of the image) and this Makes the sounds selected to start playing in sequence, liker "Alarm 1" then "ABSC01 "and then" Fire "
Logically speaking I believe that each button must declare a variable associated with every unique sound, and then pressing the button takes the variables and plays them in sequence and without overlapping sounds.
View 1 Replies