ActionScript 3.0 :: Working On Stuff Using The Flash Sound API ?
Feb 13, 2010Has anyone been working on stuff using the Flash Sound API recently? I like working on dynamic audio and was wondering what the progress is on it.
View 1 RepliesHas anyone been working on stuff using the Flash Sound API recently? I like working on dynamic audio and was wondering what the progress is on it.
View 1 RepliesI am fairly new to Flash and I am creating a simple Flash login programme in Flash. If I type in the correct password or even if I type in the wrong password it always goes to frame 3 which is "Login Failed! Username or password was wrong". I have attached .fla file. Note I created in Macromedia Flash 8.
View 8 Replieswhy the sound does not play in FireFox but does in Chrome & Safari?
The sound is not embeded in DW but is in the Flash. Also I want to know what is wrong with my DW script that it will not play on Apple Ipads & Iphone? The Script:
<div id="content">
<div id="splash">
<h2 class="center">WELCOME TO<br />
[Code]....
So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:
ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y
[code].....
I was trying to import sound file in mp3 format to my flash.It is working fine but after I testing the movie the sound doesn't work.
View 2 RepliesI am trying to use the id3 tags from second table, output display undefined..
var sound:Sound = new Sound; var url:URLRequest = new URLRequest("1.mp3"); sound.load(url); var player:SoundChannel = sound.play(); sound.addEventListener(Event.ID3, id3Listener); function id3Listener(event:Event) { var info:ID3Info = sound.id3; trace(info.TIME);
trace(info.TRDA);
This is what I have as far as code, it is in the first frame of the movie.
nature = new Sound(this);
nature.attachSound("sound_naturally");
nature.setVolume(50);
[Code].....
I have the sound exporting to ActionScript with the link identifier 'sound_naturally', not exported to the first frame. I don't understand why it's not working. I did like the exact same thing like 3 hours ago and it worked fine, but I lost the file so I had to redo it and now it won't work at all.
I used the tutorial found here. The 3 frames of my button are in a movie clip, within a keyframe in the main timeline. I used the code at the end in the tutorial for the first keyframe, so that the clip begins with music playing. However; I cannot get the buttons to work. I cannot stop the sound.
View 1 RepliesI have a main swf that would eventually call out to another SWF file. Both of them have background music playing in them. Both swf runs fine without any error when I tested on them individually(both test movie and running the swf files themselves). But when the main swf calls the sub swf, the music doesn't play which is strange....
this is how I load my music(in both swf):
Code:
private var myMusic:Sound = new Sound(new URLRequest("main_music/myMusic.mp3"));
private var myMusic:Sound = new Sound(new URLRequest("sub_music/myMusic.mp3"));
All the swfs and music resides in the same folder. I am confused, I do not see the reason why the sound doesn't play on sub.swf when the main.swf calls the sub.swf when the main.swf works perfectly fine.
i'm trying to play a sound from left to right using actionscript3. i have putted in the first keyframe the code. what i have wrote is:
Code:
var soundClip:Sound;
var channel:SoundChannel = new SoundChannel();
var trans:SoundTransform = new SoundTransform();
[Code]...
I know how to do stuff in flash. Ok, so here's what I want to know..on this guessing game, I want the person to enter in their 1 - 3 digit guess, the the number they need to guess is 577 (later I want to make this random whenever they go to play it). If they guess under 577, I have a box to say their guess is too low. If they guess over 577, it says their guess is too high. However, I am not sure how to make it so that what they put in the text box, it takes it as the new variable. I know this may sound confusing, but here is the .fla file.URL...
View 5 RepliesI'm writing a Flash game for a class that is supposed to test elementary kids' math skills. After each activity is completed, Flash sends the results to our database (e.g., that 8/10 math problems were answered correctly). If the user is in the middle of an activity and hits our Logout button, we'll send what results they had to the database anyway. But if the user closes out of the browser in the middle of an activity, is there a way to quickly send stuff to the database before the swf dies?
View 2 Replieshow to code where it should move towards (that's easy), and I know somewhat how to use math stuff on flash. But when I tried to implement it on this, it doesn't work. See code:
angleA = Math.atan2(TARGET._y-HERO._y, TARGET._x-HERO._x);
var degrees = angleA/(Math.PI/360);
BULLET._rotation = degrees;
It is correctly placed, don't worry about that.
I'm sure it's been discused before ..but I can't seem to be able to find it in the masses of photo gallery questions..So here it is;I want to load pictures/swf's etc into flash ..no problem.However, i want them to resize (proportionally) so they fit inside the movieclip holder.I'm ok with a solution where you have to state the size in XML, aslong as they fit in the movie clip.Code:
Code:
delay = 10000;
function loadXML(loaded) {
[code]....
This is a pain but Ok the On event stuff has errors but works. the main part that has me fustrated is this.[code]The bio works but the rest wont. EVEN the collect which I made go to the same fame as bio but it does nothing.
View 21 Repliesok, i have a database with two tables. one table holds the following:table 1 name: lotscolumns: lot_id, number, description, status_idtable 2 name: statusi have a php script that goes as follows (i'm ignoring the description fields for now):
PHP Code:
<?php
// database connection variables
[code].....
how to pre-load the stuff flash loads from xml -.- (actually the thumbnails, that need to be ready at cache for the roll-over effects). After looking a few tutorials and scrpts i have found in the i came to some conclusions but, fortunately, what i found checks the loading process for the individual items, while i need to get the sizes all together to add them in the loader.... I'm pretty clueless right now how to do that.
What i think i need is to create an array for the thumb attribute of my xml's nodes, and find a way to process the size of that all together using something like a shift + a variable for total size.... but well... i right now only think " i need to do that" but i have no clue of how =.=.
i have a database with two tables. one table holds the following:[code]i have a php script that goes as follows (i'm ignoring the description fields for now):[code]now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.
anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there.i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).
Can I insert stuff like headers (<h1>) and meta keywords into flash?
View 1 RepliesI have a picture that I want to be my background. So I put it around the stage, but when I test my movie in a web browser, only my stage shows. Is there a way I can get it to all show? I don't really care if my background is cut off, as long as you can see it, because it's a tile sort of picture.
View 4 RepliesI want to create a flash file containing some text given by HTML code. For example like this:[code]But i don't have such swf file. So how can i make an swf file like that? Is there any program for it? Or is there already an swf file for that?
View 1 RepliesI'm a total noob to Flash, and I'm learning it because I want to make a website design that looks like this.
That's coming from a separate external .fla file not inside my Gaia project. I currently have a Gaia 3.2.6/FP10/AS3 project with Timeline animation that I just made up today.The problem is that when I copy and paste those graphic symbols (not the background), into the 1st frame of my home.swf of my Gaia project, the preloader freezes at 50% on the home page.
When I remove the forms from my seperate external .fla file, then copy and paste them into the 1st frame of my Gaia project, the preloader freezes at 100%.When I draw a square onto the first frame of home.swf, the page loads normally.
Im trying to learn Adobe Flash and making some stuff and that export it to my iPad. It doesnt have to be Shared Object, just read on internet that it could be used. But i dont know.
I need a save and load function. Im gonna explain why and how. Im making a test game. When the player finish a level another level on the "Level select" screen should be unlock.
So, when player open my game first time. Level 2 is locked. When he finish Level 1 he can play Level 2.I got some help with this and got it to work like this:
[Code]...
That means if Player hits goal he get send back to frame 2 and "level2played" gets true and he can click and play level2. But this doesnt ofcourse get saved when the app get closed. So i kinda need it to be saved. So if Player hits goal in level 1, this "level2played=true;" gets saved.
I'm streaming an external SWF into another movieclip, the external SWF has a timeline animation and sound (voice speech) as well on the timeline, it also has a preloader on it which it's set up that when 30% loaded is completed to start playing the animation.But when I run the main movieclip the streaming of the external SWF works fine for the animation but the sound does not play until the preloader is 100% completed.
View 1 Repliesi did this
package{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]...
it works but only one time i wanna the sound keep working after finished
I have the following problem. I have a attachSound for three wav files in the library. This is the code:
Code:
song1 = new Sound();
song1.attachSound("song1");
song2 = new Sound();
[code].....
This is also working.When I press the button the music stops. When I press the song1 button, song1 start playing again. But when I press on of the othet two buttons nothing happens. This is the code for the buttons:
Code:
on (release){
_root.mc_menu.song1.start();
_root.mc_menu.song2.stop();
_root.mc_menu.song3.stop();
}
I came accross this very comprehensive webpage about sound objects in flash mx about a month ago. Since there has been 2 or 3 threads started about working with sound just today, thought i'd share it [URL]..
View 5 RepliesfirstSound=new Sound();firstSound.attachSound("****");
that's easy...did the linkage thing and it doesn't work..did it with another mp3 file and it worked fine..any idea on what can be causing this particular mp3 not to work when attached with AS?
I have the following problem. I have a attachSound for three wav files in the library. This is the code:
Code:
song1 = new Sound();
song1.attachSound("song1");
[code]...
I have a button that rotates a wheel 90 degrees each time the button is pressed. What I'm trying to do, is play a sound when the wheel stops at each rotation. So something like this:
Wheel rotates to 90 degrees.
90 degrees = sound #1
Sound #1 plays once.
The rotation works fine, but the problem is, when I tried to do this I put in a statement that with my wheel named "wheel" if wheel.rotation==90 play my sound. But my sound keeps looping and SOUND_COMPLETE is not firing to trigger it to stop.
[Code]...