ActionScript 2.0 :: LoadSound Selective Lockup?

Sep 26, 2008

I've got a quirk here I'm having a difficult time hammering out.I've got a control object with a sound object as a child. This global sound object has another sound object as a child:

Code:
Master = {};
Master.soundManager = new Sound();
Master.soundManager.BGM = new Sound();
\
In the main loop of my program, I have a function (VNELineReader()) with a switch looking for particular cues, one of which is loading a sound into BGM:

Code:
case "bgm_load" :
Debug.trace('Loading music: Sound/'+args+'...');
Master.soundManager.BGM.onLoad = function() {[code].....

Now, when I run this in the Flash 8 IDE, no problems. The script waits for the sound to load, resumes, and later on plays BGM with a case "bgm_play". However, if I compile the program and play it with the external flash player, the loadSound call causes the player to freeze, eat up about 600MB of memory in task manager, and then crash. It also does this if I open the .swf in Internet Explorer. However, it works fine in Firefox.

View 1 Replies


Similar Posts:


Flash Causes Lockup In Both IE And FF

May 10, 2009

For several weeks I've been having issues with both FireFox and IE locking up while loading pages. The issue is sporadic. In FF I can usually play one or two .swf before it stops and in IE I get the same thing but it will usually make it a bit farther than FF. I've removed Flash from IE and it works fine. But Firefox still has issues when it encounters a .swf stream for some reason.

View 4 Replies

Flex - Flash: How To Break Out Of A Lockup Resulting From No Idle Time

Mar 13, 2011

I have a Flash 10 program that locks up when running on a device, such as a netbook, that has a weak processor.Specifically, it goes into a state where it is doing very heavy processing within an ENTER_FRAME event handler following a mouse down event, and expects to stop doing this processing following a mouse up event. The problem is that, since there is no idle time left over following the frame event handlers, the mouse up event is never received, and consequently the process locks up in what amounts to an infinite loop. Yes I can do things like lower the frame rate and do what I can to reduce the processing taking place in each frame, but is there some iron clad way to break out of this? Is there some way to detect that no idle time exists? Or is there a way to force receipt of the interactive mouse events? Or could I, within the ENTER_FRAME code, detect the state of the mouse, up or down, without getting a mouse event?

View 2 Replies

ActionScript 3.0 :: Selective To UpperCase()?

Mar 11, 2007

After "googling" without success, could some provide a URL or code sample that would illustrate how to output the following:

"This Is Not A Love Song"

Where the first letter of each word is capitalized.

[Code]...

View 7 Replies

ActionScript 3.0 :: DataGrid Show Selective Data?

Feb 17, 2010

I want to show in data grid only few dataProvider rows. For example my arrayCollection has 30 rows and I want to show in dataGrid only rows from 15 to 30. Is there a way to do this on dataGrid class or should I filter the arrayCollection?

View 3 Replies

ActionScript 3.0 :: Applying A Stop(); To Only Selective Layers?

Aug 23, 2010

I have several layers all of which I have applied a "stop();" to, however I want one of the layers which is simply just text that spins around using a default preset motion, to carry on spinning whilst the rest of the layers have stopped.

How can I do this? It as though I want to remove one of the layers from the "stop();" code.

View 3 Replies

ActionScript 3.0 :: Conditional Statement - Go To The Selective Frames?

Jun 22, 2009

i setup this conditional statement.my intention was that if the object foot_mc was on point0_mc then it will go to frame 5

OR

if foot_mc was on point1_mc it will go to frame 10....

function Oncheck(evt:MouseEvent):void
{
if(foot_mc == point0_mc) return;[code]....

i get NO errors but it will always go to frame 15.... instead i want it to go to the selective frames depending on where foot_mc is...

View 4 Replies

ActionScript 2.0 :: Removing Selective Data From A Variable?

Sep 4, 2003

I have created a user interactive colour sample system that sends accumulative preferences from an external swf to the _root timeline when different colour sample buttons are clicked.The code looks as follows:

on (press) {
_root._root.myvariable += "
colour1";

[code]......

View 14 Replies

ActionScript 3.0 :: Goto Selective Frames Depending On Foot MC

Jun 22, 2009

I setup this conditional statement. My intention was that if the object
foot_mc was on point0_mc then it will go to frame 5
OR
if foot_mc was on point1_mc it will go to frame 10....

function Oncheck(evt:MouseEvent):void{
if(foot_mc == point0_mc) return;{
gotoAndStop(5);
} if(foot_mc == point1_mc) return; {
gotoAndStop(10);
} if(foot_mc == point2_mc) return; {
gotoAndStop(15);
}}
I get no errors but it will always go to frame 15. Instead I want it to go to the selective frames depending on where foot_mc is...

View 5 Replies

Flex :: Messaging - Selective Server Data Push Using Spring Blazeds

Mar 1, 2011

I have a flex UI which communicates with server using spring blazeds. I have a very typical requirement of Live data streaming on a panel in UI. Requirement is like this, We have an object say, Person and server keeps pushing its data on blazeds message destination where UI panel consumer has subscribed and hence user can see this live data in a panel. User can open multiple panels in same browser to view data for different Persons at the same time (e.g id=1,2,3 respectively). There can be multiple UI users who may be viewing the same data for person id=1 at a given time, lets say.

Basically I want to separate data between UI panels. UI panel opened for person id=1 must not display data of that for person id=2. I am doing this using headers-selectors, but apparently I found out that the differentiation to select and display what data happens on UI which is causing performance issues. I learned that using subtopics may improve performance. But, before proceeding for it, I want to know, will UI browser end up in receiving data irrespective of subtopic assigned to data and then consumer will decide to accept it or not?

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

ActionScript 2.0 :: CS3 Mp3 Using LoadSound Restarting After 2 Seconds

Mar 8, 2009

I'm having some trouble with loadSound. I've created a portfolio section for a company that has short (1:30) mp3 clips. The clips are being loaded in dynamically through an XML doc. For whatever reason, when the sound loads, it plays for almost exactly 2 seconds, then restarts and plays all the way through. My flash is set up in three frames, the first two are the main gallery, then frame three is where the sound is loaded and played. "p" is defined by which icon in the gallery is clicked.

[Code]...

View 2 Replies

ActionScript 3.0 :: LoadSound With Large Mp3 Files?

Jan 21, 2009

I'm writing a small mp3 player. It reads the playlist from an xml file, then at the end of a song (or when the "Next" button is pressed) automatically plays the next song in the list.My problem is that if the song is a large file (around 16MB), the player doesn't play the song -- I have to click pause then play a couple of times to play it.

The code is roughly:

Code:
function playSong():Void
{
tune = new Sound();

[code]....

where 'tunes' is an array of paths to the file. I've missed out a couple of things, but that's basically it. Is there an issue with loadSound needing to load some of the song first?

View 0 Replies

ActionScript 2.0 :: LoadSound With Large Mp3s?

Jan 22, 2009

I originally posted this wrongly in AS3, I'm writing a small mp3 player. It reads the playlist from an xml file, then at the end of a song (or when the "Next" button is pressed) automatically plays the next song in the list.

My problem is that if the song is a large file (around 16MB), the player doesn't play the song -- I have to click pause then play a couple of times to play it.

[Code]...

View 0 Replies

ActionScript 2.0 :: Loadsound Compression Details?

Apr 28, 2006

was wondering how sound files are compressed when they are retreived using the loadsound command? do they use the original file compression or does flash muck about with it? The reason i ask is that an audio file is coming out sounding very different to the original

View 1 Replies

ActionScript 3.0 :: LoadSound With Large MP3 Files

Jan 22, 2009

I'm writing a small mp3 player. It reads the playlist from an xml file, then at the end of a song (or when the "Next" button is pressed) automatically plays the next song in the list. My problem is that if the song is a large file (around 16MB), the player doesn't play the song -- I have to click pause then play a couple of times to play it.

The code is roughly:
function playSong():Void {
tune = new Sound();
tune.onSoundComplete = playSong;
tune.loadSound(tunes[++current],true);
}

Where 'tunes' is an array of paths to the file. I've missed out a couple of things, but that's basically it. Is there an issue with loadSound needing to load some of the song first?

View 2 Replies

ActionScript 2.0 :: Mp3 Using LoadSound Restarting After 2 Seconds?

Mar 8, 2009

I'm having some trouble with loadSound. I've created a portfolio section for a company that has short (1:30) mp3 clips. The clips are being loaded in dynamically through an XML doc.

For whatever reason, when the sound loads, it plays for almost exactly 2 seconds, then restarts and plays all the way through.

My flash is set up in three frames, the first two are the main gallery, then frame three is where the sound is loaded and played. "p" is defined by which icon in the gallery is clicked.

Here is my code for reference:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
if (p == 0) {

[Code]....

View 1 Replies

ActionScript 2.0 :: LoadSound Doesn't Loop?

Jan 1, 2004

why this doesn't work? I'm about to go crazy! It's just supposed to be background music and it plays once then stops. WHY?

[AS]
backsound = new Sound();
backsound.loadSound("sounds/loopy.mp3", true);

[code]....

View 1 Replies

ActionScript 2.0 :: Cross Domain LoadSound Woes?

Jul 24, 2009

I'm trying to load an MP3 file from a different domain using loadSound while publishing from flash?

View 1 Replies

ActionScript 2.0 :: LoadSound Doesn't Make The Loop

Jan 1, 2004

It's just supposed to be background music and it plays once then stops. WHY?

[AS]
backsound = new Sound();
backsound.loadSound("sounds/loopy.mp3", true);
backsound.onSoundComplete = backsound.start;
[/AS]

I have also tried backsound.start(0,999); but it doesn't work either.

View 1 Replies

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 :: LoadSound Randomly On Initial Start?

Oct 15, 2007

I have an MP3 player that i want to put on my site, I would like to have the first song be played randomly so it dosent grow stale.

Here is the A.S. i'm using.

Code:
var musicFolderName:String = "music/";
var curTrackNum:Number = 0;
var curPlaybackPos:Number;

[Code]......

View 4 Replies

ActionScript 2.0 :: How To Get LoadSound To Read Correct Path

Dec 4, 2007

What I'm trying to do is for a play button to just play the first thing that is on my XML file. I have the XML file played out like this and it is being loaded earlier in the actionscript file.

<song>
<loc>testaudio/fire.mp3</loc>
<songtitle>Fire</songtitle>
<artist>Jim</artist>
<album>Album #1</album>
[Code] .....

The mySound.loadSound(loc[0]); is coming up with an unknown, and this is because the file path is not in quotes because it wants a URL, not a variable (loc[0] should be passing on the file path for the first song in the XML file). Is there some way to change the variable so that the loudSound() function reads the path correctly? It works fine when I just pop the file path in there instead of loc[0].

View 3 Replies

ActionScript 2.0 :: Loadsound External Mp3 And Play From Middle

Apr 27, 2009

I am unable to play the mp3 from the middle

[Code]...

View 1 Replies

ActionScript 2.0 :: LoadSound/attachSound Lowers The Original Pitch?

Feb 3, 2010

i am having this very big problem(for my particular application). i am writing this music application in flash and i use as2 to load randomly specific sounds which are in the same folder as the movie. the problem is that i need the sound to be replayed with fidelity and it seems flash is lowering the pitch of the "music" by a halfstep(it does the same when "previewing" it from the library). musically speaking, if i have an mp3 containing A at 440 hz played with piano timbre, Flash will lower it and when it is played through the flash player is its played as a G sharp(35 hz lower). I thought that if i will replace the attachSound with loadSound and the sound will be loaded externally and not from the library the problem will be solved. it seems that this won't solve the probem. the sound just doesn't want to be played at the frequency it has in the file from which is loaded. i had read somewhere that this is a flash player's bug.

View 8 Replies

ActionScript 2.0 :: Stop Streaming LoadSound From Starting Immediately?

Nov 9, 2010

I have an AS2 file where I want to load an external sound, but not have it start until the play button is pushed. It is a large file so I want it to load streaming, but can't figure out how to keep the streaming true without having it start immediately. Here is the code:

this.createEmptyMovieClip("craigTalks_mc", 10);
craigTalks = new Sound(craigTalks_mc);
craigTalks.loadSound("mp3/Craig_BP.mp3", true);[code]....

I have three audio files using the same code that I want the user to be able ot toggle on and off. When I set the loadSound isStreaming variable to false, it works perfectly, but at true, all three files start at once, and the pause doesn't work! However if I keep it at false, once I load it to the website it doesn't work, I believe because it is taking too long for the audio files to load.

View 4 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







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