ActionScript 2.0 :: Sound.loadSound("1.mp3",false) Not Working?

Mar 3, 2006

sound.loadSound("1.mp3",false)where 1.mp3 is residing in my current folder (as the swf).However, the sound does not get played. It is only played when I say:sound.loadSound("1.mp3",true) //(hence a streaming sound)I want the first one to work, in order to be able to use the onSoundComplete event

View 11 Replies


Similar Posts:


ActionScript 2.0 :: LoadSound False - When Set It To True It Does Play?

May 3, 2004

I have a button that imports an mp3 and is supposed to load completely before playing. Problem is, when I set the loadSound to false it doesn�t play at all, but when I set it to true it does play. Here is the code:

Code:
carregarSons = function (som, numeroVolume) {
_root.som1.stop();
_root.som1 = new Sound()[code]....

View 8 Replies

ActionScript 2.0 :: [FMX] LoadSound - Sound To Keep Playing While The Rollovers Load Sound

Jun 22, 2003

I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.

But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.

[Code]...

View 3 Replies

ActionScript 2.0 :: Stop MP3 From Cache'ing Streaming Sound Using Loadsound?

Jul 19, 2004

I have used the loadsound command with the streaming option set to true, so it streams sound etc. But the problem is that it cache's the mp3 file it is streaming onto the user's internet cache folder Is there a way to prevent mp3 files from being cached (have I murdered the English language today using the word cache? ) Something like what the Real Player does, it streams the files but never cache's them. <gasp>

View 7 Replies

ActionScript 2.0 :: Stop MP3 From Cache'ing Streaming Sound Using Loadsound

Jul 19, 2004

I created a streaming mp3 player, the Click here for player

I have used the loadsound command with the streaming option set to true, so it streams sound etc. But the problem is that it cache's the mp3 file it is streaming onto the user's internet cache folder.

Is there a way to prevent mp3 files from being cached (have I murdered the English language today using the word cache? ) Something like what the Real Player does, it streams the files but never cache's them. <gasp>

View 12 Replies

ActionScript 1/2 :: Rollover Buttons To Play Sound Using "loadSound"?

Apr 20, 2011

The target effect: Rolling over each of the two buttons on the main stage plays different sound. The code below works. However, I need to embed it in another application (Articulate) which doesnot allow the use of "_root" and "attachSound". I was recommended to use "loadSound" instead. However, not a coding person, I am at a loss.to change the script below to remove "_root" and "attachSound" and use "loadSound" instead

var mySound:Sound = new Sound();mcButton5.onRollOver = function() { _root.mySound.attachSound("sound1"); _root.mySound.start();
var mySound:Sound = new Sound();mcButton6.onRollOver = function() {

[code].....

View 15 Replies

ActionScript 3.0 :: Play Sound When Symbol.visible = False

Dec 3, 2010

I am working on a school project using arduino and flash.

I am using motion sensor to make a movieclip symbol visible and invisible. I want to play a sound when symbol.visible = true and then turn it off when it is false.

I tried using gotoAndPlay but it said the method was no long supported? so I couldn't do that.

Here is my code

package
{
import flash.display.Sprite;
import flash.net.XMLSocket;
import flash.events.DataEvent;

[Code].....

View 9 Replies

ActionScript 3.0 :: MouseChildren = False Not Working?

Jan 2, 2012

I want to separate event handling from a container and it child. So as you can see, my source code is very simple :

Code:
package {
import flash.display.Sprite;
import flash.display.*;[code].....

When I roll over the container object, I've got the trace (OK for me).BUT When I roll over the decor object, I've got the trace too (not what I want).I just want the container to be triggered by the mouse event, not it child.So what's happened to my mouseChildren = false....?

View 5 Replies

ActionScript 2.0 :: Combobox.visible = False; Not Working?

Dec 8, 2004

Im trying to hide components and other stuff using either the

._alpha = 0;
or .visible = false;

although when its on a flash component it wont hide?

View 1 Replies

ActionScript 3.0 :: False As Part Of If / Else Statement Is Not Working In IE?

Oct 10, 2009

i have made a navigation banner in flash for a blog site, but the banner is giving me trouble in Internet Explorer. The Flash file has two buttons, one for "Log In" and one for "Log Out", that are supposed to be visible/invisible depending on whether or not the user is logged in to the blog or not. To achieve this, I have set up a Param tag that checks to see if the user is logged in or not, and then reports this true or false data to the Flash movie as being either "1" or "0" in the form of a variable. The Actionscript in Flash then uses this data to make one button visible, and the other not visible.This is working perfectly in Firefox, but for some reason in Internet Explorer (tested in IEv8) both buttons are visible at all times. Both Firefox and Internet Explorer are running the same version of FlashPlayer (v10).[Code]...

View 5 Replies

ActionScript 2.0 :: Combobox.visible False; Not Working?

Dec 8, 2004

Im trying to hide components and other stuff using either the

._alpha = 0;
or .visible = false;

although when its on a flash component it wont hide?

View 1 Replies

ActionScript 2.0 :: Loadsound() Not Working When Movie Is Loaded In Other Movie?

Mar 17, 2009

I'm made a flash movie[main movie 1] where another movie is loading using the "loadMovie()"[this is the movie2] command.my probblem is - when I'm trying to loadsound in to the second movie

Code:
var mySound1:Sound = new Sound(this);
mySound1.loadSound("music.mp3",true);

[code]....

View 3 Replies

ActionScript 2.0 :: UseHandCursor - False Not Working On Button Scripts?

Feb 4, 2009

I am unable to get useHandCursor = false; to work on a button script. I need to have it on the button script, not in a timeline function (as the swf I am working on has many buttons and none have names on their instance, nor on the movies containing them). Is it possible to do this? I have also tried, this.useHandCursor = false; but also not working. By the way, this page isn't working in IE7. It is showing blank under the "Post New Thread" bar.

View 10 Replies

ActionScript 3.0 :: Visible = False; Not Working For Parent File

Jan 27, 2011

So i have my index.swf file with an mc called "loadingspace" (as instance) who appears on a 10 frame animation.

At the 10th frame i have placed this code:

Code:
var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("http://www.mysite.com/preload/preloader.swf"));
addChild(my_loader);

[Code]......

View 3 Replies

ActionScript 3.0 :: "fullScreenTakeOver = False" Not Working

Mar 26, 2009

I'm trying to build a Flash projector using AS3 which contains an FLV playback component. When the function below is called, my entire screen goes black. The fullScreenTakeOver parameter I am trying to set to "false" seems to be ignored. how to disable fullScreenTakover?

[Code]....

View 1 Replies

Flex :: [IOErrorEvent Type="ioError" Bubbles=false Cancelable=false EventPhase=2 Text="Error #2032"]

Aug 25, 2011

I am trying to display database details in a Flex datagrid and connected using HTTP Service. It was able to display details without any issue when I was working in the FlashBuilder 4.5, however, I deployed the bin-debug part in the Tomcat webserver to access it globally.

I am experiencing this error message when I am trying to access the swf file "HTTP request error Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost:8084/UA/details.jsp"

I tried to create the crossdomain.xml file and deployed in the root directory but still experiencing the same error.Here is my crossdomain.xml :

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>[code].....

View 1 Replies

ActionScript 2.0 :: LoadSound From Php Url?

Jan 28, 2010

actionscript and i have a mp3 player that loads an mp3 file from a certain url. my code is this:ow can i change this to load an mp3 file from a php code exactly like this:

<?php echo base_url(); ?>uploads/<?php echo $artist_id; ?>/music/<?php echo $filename; ?>

View 1 Replies

ActionScript 3.0 :: Selectedcolor, True To The Text True Or False In The False Print Text?

Aug 28, 2010

Selectedcolor, true to the text true or false is false text into print.colorPicker component in, I select Export to a selected color, the color value myMC texte into summer, but accuracy can not control.

var myColorPicker:ColorPicker = new ColorPicker();myColorPicker.editable = false;myColorPicker.visible = false;myMC.visible= false;myColorPicker.addEventListener(MouseEvent.CLICK, clickHandler);myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler);[code].........

View 1 Replies

ActionScript 2.0 :: LoadSound Won't Play In IE

Nov 3, 2004

i have a script on a frame at the root of the movie.

[Code].....

the problem is, that the sound isnt loading in Internet Explorer. I thought it may have been SP2 causing problems but i went and tested it on school's computer SP1 and it still didnt work. In firefox it works fine, so the AS must be correct (which im positive it is) i just cant work out for the life of me why it isnt loading. I have also tried loading the sound onto a movieclip and not from the frame
i.e.

[Code]....

and this didnt work in IE either. Works again in firefox though.

View 1 Replies

ActionScript 2.0 :: LoadSound Prob

Jan 7, 2006

I applied folowing script to load my mp3 file. Problem is my mp3 won't loop:s. Anyone see the prob in my script? i'd also like the mp3 to fade in and when I push the stop button it fades out.

loopSound = function () {
myMp3.loadSound("streamsound.mp3", true);
myMp3.setVolume(50);[code]...

View 1 Replies

ActionScript 2.0 :: LoadSound Won't Play In IE?

Nov 3, 2004

i have a script on a frame at the root of the movie.

// background sound (war environment)
_global.bgsound = new Sound();
bgsound.loadSound("sounds/mp40.mp3")

[Code].....

the problem is, that the sound isnt loading in Internet Explorer. I thought it may have been SP2 causing problems but i went and tested it on school's computer SP1 and it still didnt work. In firefox it works fine, so the AS must be correct (which im positive it is) i just cant work out for the life of me why it isnt loading. I have also tried loading the sound onto a movieclip and not from the frame i.e.

// background sound (war environment)
_root.createEmptyMovieClip("myEmptyMC","2");

[Code].....

and this didnt work in IE either. Works again in firefox though.

View 1 Replies

Streaming SWF With Timeline Sound Not Working?

Jun 6, 2008

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 Replies

ActionScript 3.0 :: Sound Not Working In CS4 Flash?

Apr 28, 2011

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 Replies

ActionScript 3.0 :: Flash Sound ID3 Not Working?

Apr 16, 2010

I 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);

View 2 Replies

ActionScript 3.0 :: Sound Keep Working After Finished?

Mar 27, 2012

i 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

View 5 Replies

Actionscript :: Why Is Sound Not Working In Flash

Mar 18, 2010

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.

View 2 Replies

ActionScript 2.0 :: [FMX] Attached Sound Isn't Working

May 1, 2004

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();
}

View 5 Replies

ActionScript 2.0 :: Working With Sound Objects?

Apr 7, 2003

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 Replies

ActionScript 2.0 :: Reasons For Sound Not Working?

Aug 5, 2003

firstSound=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?

View 2 Replies

ActionScript 2.0 :: [FMX]Attached Sound Isn't Working?

May 1, 2004

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]...

View 5 Replies







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