IDE :: Use The Stopallsounds Command With An Exception?

May 28, 2008

Is there a way to use the stopallsounds command with an exception? I want to stop all narrations (in a presentation) when a button is clicked but keep the background music going. So i want to stopallsounds except the background sound.

View 9 Replies


Similar Posts:


Professional :: Exception Thrown In Destructor CS5 When Using "UNDO" Command?

Apr 22, 2011

I'm assisting my professor with a class helping students build an online portfolio. Yesterday, one of the students sent me a bunch of .fla files to review and I made some changes, inserted a bunch of comments in the code and told her to change the rest of her files into the same format. (Adding keyframes, frame labels and button codes, etc.)
 
Then she emailed me to tell me that she keeps getting this error message every times she makes a mistake and tries to "undo" something.
 
"Every time I open up the drawing page and another one of my subpages like logo design for example, I work on what you said to do, but if i make a mistake and undo it, I get this error message and all my images disappear completely from the time line. I have attached a screenshot of the error message, maybe you know whats going on but I'll keep working on it and try to not have to undo something because at the moment that seems to be the problem. I have to close flash and reopen everything to make it go away."

[Code]...

View 1 Replies

Flex :: Wrap Java Exception Into Exception?

Jun 16, 2010

I am using spring exception translator to wrap java exception into flex exception.
eg

public void testException()throws Exception{
throw new Exception("my exception");
}

But for some reason, I am getting IllegalAccessError. The code sections are entering the testException and the Translator class.

Question: why it trying to get log target level ?

Below is the lines from the log:

[Code].....

View 1 Replies

ActionScript 3.0 :: How To Use StopAllSounds

Apr 4, 2010

I would like to keep the video sound from continuing after I go to the next frame in this file. Should I use "StopAllSounds" and if so where do i put it in the code?here is the code:

// Button ListenersnextBtn.addEventListener(MouseEvent.CLICK, nextSection);prevBtn.addEventListener(MouseEvent.CLICK, prevSection);
////////////////////////////////////////////////////////////////////// /////function

[code].....

View 8 Replies

ActionScript 2.0 :: Disable StopAllSounds Function?

Nov 23, 2009

i have a music player in my shell that plays background music. In swf files that are embeded (two layers in) I have videos playing.i want to make a button that stops the background music. Its too hard to communicate with the music player which is many layers away so i think i should use stopAllSounds.However, after i press it, it also disables the videos. how do i disable the stop sounds function, so that I can play videos, without turning the background music back on?

View 1 Replies

ActionScript 1/2 :: Restart Audio After StopAllSounds?

Jul 10, 2009

I have rather large project that contains several swfs flvs with audio. The project is published in Captivate (which renders a main swf file). After the preloader screen, a lot of the audio files start playing at once at the beginning of the presentation. I have tried inserting an swf with AS2.0 command "stopAllSounds". It works as intended and stops all the cacophony. But then, none of my audio plays throughout the 7 minute project. Does anyone know how I can restart the audio?

View 1 Replies

ActionScript 2.0 :: Sound Toggle Using StopAllSounds()?

Apr 3, 2007

I have created a game where all the main actionscript takes place in one frame.For extra functionality I was going to add a button to toggle on/off sounds, after searching this forums and others Im left confused how to implement this.If i choose to use stopAllSounds() Im aware it only stops the current sounds and will not interfere with sounds about to occur.

Collision detection and random sounds occur within my game on an interval, is there a simple way to turn off all sounds permenantly? The only other id would be a button with a toggle and use multiple IF statements to check status of sound on/off.

View 1 Replies

ActionScript 2.0 :: Using StopAllSounds(); To Stop All Background Sounds?

Mar 11, 2009

I am using stopAllSounds(); to stop all background sounds when i enter specific frame in my main movie and it works fine but how do i get sounds to continue to play when i exit this specific frame?

View 1 Replies

Flex :: Command To Pause, Stop And Close Vlc Player From Command Line?

Aug 5, 2010

Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches.
here is the code

processArgs.push("--extraintf");
processArgs.push("rc"); //Remote control
processArgs.push("--rc-fake-tty"); //Use terminal as output

[code]......

View 1 Replies

Flex :: Caringorm Calling Multiple Command In One Call (Queue Command)?

Mar 2, 2011

I want to call 3 commands one by one , the relation between each commands are command should execute one by one in the previous command result. How to Queue Command's? What is the best practice to handle Queue command , my requirement is adding n number of commands and execute them.Main -> Execute c1c1 got the Result - Execute c2c2 got the Result - Execute c3

View 2 Replies

ActionScript 2.0 :: Transition Effect - AlphaTo Counterpart Of StopAllSounds

Aug 23, 2009

I'm building a dynamic gallery that supports SWFs for individual slides. In order to prevent background sound from carrying over from a previous slide to a different category page, I have attached stopAllSounds(); to navigation menu buttons. It does its job, but it turns off the sounds abruptly. I'm using alphaTo for transition effect from one page to another, and I'm wondering if there is a command that stops playing all sounds in gradation, so that I can make it consistent with page transition.

View 5 Replies

ActionScript 2.0 :: Resume Sound After After Apply StopAllSounds Function?

Nov 21, 2008

How can I resume sound after after i apply stopAllSounds function?

View 3 Replies

ActionScript 2.0 :: Dynamically Loading MP3s - StopAllSounds Function

Oct 13, 2002

Dynamically loading mp3's. I have 10 buttons, 1 stop and the others track 01 - 09, these are all in one .swf file. The buttons are all on one layer, on another I have defined all my sounds like so :

firstSound = new Sound();
firstSound.loadSound("track 01.mp3");
through to
ninthSound = new Sound();
ninthSound.loadSound("track 09.mp3");

Then I have the actions for my buttons
on (press) {
//Track 01 Button
stopAllSounds();
[Code] .....

I have uploaded the 9 mp3's, the swf & html file to same folder and this is what happens: [URL]. When any of the 9 track buttons are pressed 7 of the nine mp3's download all at the same time from pressing 1 single button (no track 3 or 9 which play fine normally and have definitely been uploaded) and none of the sounds work. But, when I refresh the page the 7 mp3's that were downloaded now work. The stop all sounds still work on buttons 3 & 9.

View 7 Replies

ActionScript 2.0 :: Sound Fade Out - Skip Intro Button - StopAllSounds();

Aug 7, 2006

I have an external SWF file and when I click on a "skip intro" button, right now I have a StopAllSounds(); on an onclick, so it stops the sound of the external swf, is there a way to fade out the sound instead on an onclick of an embeded sound on an external swf?

View 1 Replies

Flex :: Can't Understand The Exception?

Dec 30, 2009

I was trying the flickr code provided in the learnwebsite, and I am getting this exception:

[RPC Fault faultString="Error #1090: XML parser failure: element is malformed." faultCode="Client.CouldNotDecode" faultDetail="null"]
at mx.rpc.http::HTTPService/http://www.adobe.com/2006/flex/mx/internal::processResult()

[code].....

View 3 Replies

ActionScript 2.0 :: Opposite Action To "stopAllSounds"?

Jul 30, 2010

In have 10 scenes, each will having different audio files. Each scene will have buttons which take next and previous sc�ne. I am facing difficulties on controlling sounds.

I have placed action �stopAllSounds()� , because of this it will stop sounds in next scene also. I can�t call sound object as they are many.

View 1 Replies

ActionScript 3.0 :: Make An "Ignore Command If" Command?

Mar 30, 2012

I'm new to Adobe Flash and especially new to Actionscript. Could somebody give an example and explain how to make and "Ignore *this* command if..." style command. Here's what I want to achieve:I have made a button (I may have done it in an odd way but it works) that moves when the mouse hovers over it and then moves back when the mouse moves away. I plan to put the finished product into Dreamweaver and have tried what I've done so far and it works. The problem is that if I move the mouse away before the first animation of the button has finished. It doesn't reach the *Mouse Out* command and then just sticks/stops in the bit where I have put a *stop* command.Basically, what I want is a way to ignore a command if something happens earlier on (such as the cursor being moved away).I've tried to explain the best I can without actually screenshotting it and copying commands.

View 6 Replies

ActionScript 3.0 :: ClassCast Exception In Loaded SWF?

Aug 25, 2009

I'm developing a menu driven application with flex and php (ZendFramework). The menu is my main swf, each form is an extra swf loaded with SWFLoader. For the communication with php I'm using AMF3 value objects.My problem is that I get a class cast exception with these value objects, if the form swf is loaded once again.menu item one with a data grid is selected, every operation in the data grid is possible menu item two is selected menu item one is selected once again: any operation in the data grid causes a class cast exception.I tried two different ways of class cast:

var po:pmsPOsVO = pmsPOsVO(dataGridPOs.selectedItem);var po:pmsPOsVO = dataGridPOs.selectedItem as pmsPOsVO; 
The first method is causing the following error:

[code].....

View 1 Replies

ActionScript 3.0 :: Adding Controls Causes Exception

May 3, 2010

I'm having trouble adding any instance of the fl.controls to my class.

Compiling does work. And even in debug-mode it passes the moment, when the control is added to the mc. But then during runtime - I guess it happens before the controls have to be displayed - I get something like a null-reference exception. Either it's error 2007 (experianced with ProgressBar) or it's 1009 (experianced with RadioButton).
 
It's exactly the same problem which is described in the comments of the ProgressBar documentation.

package
{
import flash.display.Sprite;
import fl.controls.ProgressBar;

[Code]....

So how can I use fl.controls without having to provide them through the .fla library?

View 4 Replies

Flex :: Exception When Extending A Component?

Aug 2, 2009

when extending a flex component and trying to use it, I get a RTE. I.e. I am extending a DataCanvas and am using it like this:

<MyComponent dataProvider="{dataProvider}" width="100%" height="100%" x="0" y="0" id="dc" verticalCenter="0" horizontalCenter="0" />

Has anyone seen this? How can I get around it?

[Code].....

View 1 Replies

Javascript :: Calling With Security Exception?

Mar 14, 2010

I have a swf hosted at domain A, and I have a html at domain B My swf is able to be loaded from accessing the html at domain B. However, the swf gets a SecurityError: Error #2060: Security sandbox violation:

[Code]...

View 1 Replies

Send Email With Flex Exception?

Oct 21, 2010

As I'm rolling out my Flex app to Beta I realized that I need to know about any exception that happens in Flex Side. But as it runs on users machines I don't get to see them.

Is there a way to make Flex send email every time an exception happens?

View 3 Replies

ActionScript 3.0 :: Exception From Library With No Code

Dec 23, 2009

Been so long I haven't write anything here in the forum. I have a big FLA file containing a huge symbol with lots of subsymbols on it. The structure is crazy however there is no even a single line of code in the FLA. The big symbols is exported for actionscript, is associated with some class (say TheSymbol) and its base class is set to MovieClip. I publish the big FLA file to SWC file and link the SWC to project with "Merge into code" linkage type.

[Code]...

View 2 Replies

Actionscript 3.0 :: Can't Stop Exception With Try / Catch

May 15, 2009

I can't find a way to stop Flash 9 reporting an exception - even though i am trying to catch it.I know a url does not exist but I get this"Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found." from the flash player.I've googled and tried a number of different ways to stop the browser/player reporting the problem yet it still does. [code]...

View 2 Replies

ActionScript 3.0 :: Range Exception Handling?

Sep 3, 2011

Code:
for (i=1; i<9; i++) {
if (this["blank"+i].getChildAt(0) is Letters) {
word += this["blank"+i].getChildAt(0).letter;
}
}

This code throws a range exception if, for instance, "blank2" doesn't contain any children.I just need to be able to basically say, "if this blank doesn't have any children, just skip this code."Normally I would do something along the lines of an if=null statement, but this won't work here because

Code:
if (this["blank"+i.getChildAt(0) != null)

obviously throws the same range exception.How do you deal with this? I can't find anything along the lines of a "does blank1 contain any children" sort of method.R

View 9 Replies

ActionScript 2.0 :: Range Of Variables With A Single Exception?

Mar 8, 2009

I have at least 15 or so events/dates each with a button to show further details... as i need the mc for each event to play out if visible, rather than repeat the code below for every event (omitting the current event number)... is there a simple way to use the same code below but with a range of event numbers, with the exception of the current event (that i don't mind typing in). [code]...

View 2 Replies

Actionscript :: Exception That Will Not Cause Flash Player To Pop Up A Dialog?

Feb 9, 2010

Till now all the exceptions in my code will cause the host flash player to pop up a window to say there is an exception and the execution will be paused, I am wondering is there any exception/abnormal things that will be detected by flash player but not be popped up?

View 2 Replies

Xml :: Object Not Throwing Exception If Invalid Data Is Given?

Feb 24, 2011

I remember darkly that the XML class in AS3 would throw an exception if you tried to give it data in it's constructor that was not a valid XML string. But now I got a case where the XML happily takes every kind of data no matter it's valid XML or not...

var xml:XML;
try
{[code]...

... doesn't throw any exception. qname seems not to be null. WTH?

View 2 Replies

Flex :: Any Way To Tell Developer That Methods Throws Exception?

Mar 30, 2012

Like java, you can specify that method you are calling throws certain exception.
For e.g.- public void getListOfAssessments() throws SQLException;
So, is there any way we can achieve this in ActionScript (Flex)?

View 2 Replies

ActionScript 3.0 :: Any Method To Trigger NullPointer Exception?

Jan 9, 2010

I have a method that may trigger a nullpointer exception and I'm looking for the best way to handle the exception. Here is the method examples: Basic method, without any exception catches
ActionScript Code:
private var _content:VBox;...
public function removeActiveSubView():void{
_content.removeChild(DisplayObjectContainer(_activeSubView));
}
If the _activeSubObject is not present in _content, there is a nullpointer thrown. What I'm looking for here is a way to ignore the nullpointer exception in the best way possible for future debugging. (Never mind the typecasting).
[Code] .....
Which one is the best way of handling it?

View 9 Replies







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