ActionScript 3.0 :: SoundChannel Stop() Function Not Working?

Dec 3, 2010

I am trying to stop a sound from playing after the user clicks the next button, and I have followed what I was told from others on how to use the SoundChannel but can't seem to get the stop() function to work?

here is the code:

ActionScript Code:
nxt1_btn.addEventListener(MouseEvent.CLICK, next1);
var grad:Sound = new graduationMusic();
var gradChannel:SoundChannel = grad.play(0,int.MAX_VALUE);

[Code].....

Error that keeps popping is : 1120 Access of unidentified property gradChannel.

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Save The SoundChannel.position Number (and Also Call SoundChannel.stop()) In Correct Time

Dec 6, 2008

I just finished a simple music player... For testing purposes. I upload it in the following address:http:[url]....with 10 music songs that I had recorded from radio stations(added the last 2 twice for testing).The problem is that when a song has totally loaded, stop action taken needs about 1 second to be applied!I.e. When I press "STOP", the sound continue to play for 1 sec before stop. When I push "pause" it takes one second for the music to stop!

However when using resume (second time pause) the sound starts instantly! Thus I guess there is an issue with stop()function of the SoundChannel object that I am using to stop the sound. Also notice that when unpause the music, it continue ~one second before the last sound - which means that I saved the soundChannel.position number (and also call soundChannel.stop()) in correct time, but it didn't stop immediately - bug!?

This only happens when the application runs through a browser(plugin v. 10) - programmed in CS3.

PS1. Notice that ,this also happens when I change Volume too. Thus because Stop and Volume are parts of SoundChannel, I guess there might be a bug with SoundChannel in online plugins..... :/

PS2. Notice that ,this also happens when I close the browser (firefox). Even if browser is closed the music continue for 1 sec the same way as when pressing stop!.. Thus I guess it's flash bug!...

View 2 Replies

ActionScript 3.0 :: Write SoundChannel.stop And Stop All Channels?

Dec 9, 2009

i have mp3 player that i've written now i load that swf file into my new project bu i can't stop it when i go to another menu

could i write SoundChannel.stop and stop all channels?

View 1 Replies

ActionScript 3.0 :: SoundChannel Doesn't Stop Properly

Oct 22, 2010

I made a few functions that should fade between tracks very simply. I start with track1, then call my initial function to fade to track2 -- works just fine. Then later when I want to call it to fade back to track1 it will fade track1 in but keep track2 playing (when the first time it properly fades the already playing track out) --Here is the code (all variables are defined earlier):

ActionScript Code:
/* trans is my SoundTransform
channel is my SoundChannel
newSong is a holding var*/

[code]....

View 1 Replies

ActionScript 3.0 :: SoundChannel Event.sound_complete Not Working?

Mar 4, 2010

For some reasons, my soundchannel event.sound_complete is not working. Basically, my class is to import sound into it and to allow use to change their volumes and the speedness of the sound.
 
This is the tutorial for the speed [URL]
 
Right now, what I want to do is to auto loop back the song once the song have finished play but I have having troubled doing it.

[Code]....

View 5 Replies

ActionScript 3.0 :: Soundchannel.position Working, But When Resumed, The Sound Rewinds A Little?

May 28, 2008

I have a pause button that pauses a sound playing in a soundchannel. It works, but when I resume the sound, it isn't in thecorrect position, almost like it was rewinded a little. I'm usingthe code straight from the

View 1 Replies

ActionScript 3.0 :: Stop Function Not Working In Flash CS4

Oct 17, 2009

I do not uderstand why the stop on the attached file does not work. If I change the profile to AS 2.0. it works but not using in AS 3.0. See attached file.
Attachments: Stoptest.zip (6.7 K)

View 7 Replies

ActionScript 3.0 :: Make The Function Stop Working?

Apr 5, 2010

I have a funtion set up in my actionscript and I have the function start at frame 5 by doing:
 
functionName();
 
I'm trying to get the function to stop once it gets to frame 20. I was thinking something like functionName(stop); but that did not work.

how to make the function stop working?

View 1 Replies

Actionscript 3.0 :: Flash - Stop() Function Not Working?

Feb 8, 2011

I have an actionscript 2.0 program that goes through a sequence of frames stepping on eah one using the function stop()

I'm compiling the same script on flash cs 5, that only supports actionscript 3.0, and when running the script the stop() function is ignored

View 2 Replies

ActionScript 3.0 :: Stop Movie By Using Stop(); But Keep Buttons Working

Jul 1, 2009

I'm making a website using flash,And on my movie it says Welcome to Blah Blah Blah,And then a button appears, To make sure my button works,The writing turns to bold and goes bigger,When the button appears it works and goes bigger, Until it reaches the point in the timeline where it has stop();It stops my movie from looping or restarting which is what i want, But it stops my buttons from working aswell, How to keep my button working but movie stops,If you want me to explain more just ask

View 1 Replies

ActionScript 3.0 :: Make A Function Stop A Function?

Jul 1, 2010

ActionScript Code:
myFunct();
function myFunct()
{

[Code].....

Any way to get this to work without using much more code? This is for a function that checks to see if a user is still logged into a website. I need the check to happen every time the user causes certain functions to run, like create topic, submit new post, etc. I could put the code, which is only a two-liner if/else statement in every function, but it would be nice to just call a single function. But that function would have to be able to cause the function that's calling it to return to get it to cease.

View 5 Replies

IDE :: Stop(); Not Working ?

Jun 5, 2009

I need someone to look at my clip for me and tell me why it's not working. I have the stop(); in frame one and the last frame, I just don't understand.I can't attach the file here because i only have winrar and winzip 12 (which creates a .zipx - which won't upload...i tried)

View 1 Replies

Preloader Stop Working ?

Jun 15, 2010

So, I'm working on a presentation/site that houses multiple sections being loaded in as individual swfs. I have each section shoot to a preloader frame first that is set (with PreloadAssetManager) to preload multiple FLVs and the SWF itself.If I select a new section while the current one is loading, it does the correct process of switching sections and shooting back to the preloader, but then the preloader itself just stops working completely. If I try to access any section, it just sits at a blank preloader. of thing.

View 1 Replies

ActionScript 3.0 :: Sound Name From SoundChannel

Apr 17, 2009

I wondered if there is a way to find out from the soundChannel the url of the sound it is currently playing. once I found out its url, i can than use its name to call something else.Or anyway to find out the sound that is playing on a soundChannel.I will know which channel to look into, but different sound will be loaded into this soundChannel.If this is not possible, i thinking along the line of overloading SoundChannel play method so that is fires an event when the sondchannel plays and also find out the name of the sound file it is currently playing.

View 2 Replies

Add Some Sort Of EventListener To SoundChannel?

Jun 30, 2009

I am trying to build a simple player inside my swf file. The code is a bit messy but it seems to work.I´m using a soundChannel for Playback..I´m trying to figure out how to have the player play the next song once the previous one has reached its end.Do I add some sort of EventListener to the soundChannel?[code]...

View 7 Replies

ActionScript 3.0 :: SoundChannel And SoundMixer?

Sep 2, 2010

when do we use SoundChannel and SoundMixer?

View 3 Replies

IDE :: SoundChannel.SOUND_COMPLETE Won't Fire

Jan 12, 2009

i have a little flash-player with a playlist and so, it plays normally a vlc-mp3-stream but has an extended prelisten-function (wich plays the mp3's directly via http, secured with a password)i've got an array with 2 Sound()-objects (for preloading purposes), the code looks like this :

Code:
playStream = url=="";
if (playStream) {
SoundObjects[SN].load(new URLRequest("http://" + URL + ":8001/MIRstream.mp3?" + Math.random()), sloader);
} else {

[code]....

this works for the vlc stream (which is not continuos), but not for the mp3s on the http-server in my opinion, this doesn't makes sense..except, maybe the recent CSRF-hardcore-paranoia [URL]

PS: i use AS3 with flex_sdk_3.2.0.3794 and flashdevelop (i activated flash10-support, but it still works in fp9)

View 1 Replies

ActionScript 2.0 :: GotoAndplay/Stop Not Working Ne More?

May 11, 2006

I created a movie with several nested movie clips. within these movies are stop actions to prevent the clips from playing at the wrong time. I created the gotoAndPlay/stop functions to play these clips at certain points of the animation. Now at first these actions worked smoothly and exactly as i wanted, however after several test movies, some of the gotoandplay/stop functions stoped working. Has ne 1 ever ecounterd this problem is there a way repair these actions without recreating the whole movie? i tried rewritting the scripts and still does not work.

View 5 Replies

ActionScript 2.0 :: Stop Drag Not Working

Aug 19, 2009

I have some code here that works except for when the item in bold is included:[code]If you take the bold part out, it works fine and stops dragging on release.

View 2 Replies

ActionScript 3.0 :: Stop Action Not Working?

Apr 17, 2009

I'm making a very simple menu in Flash CS4 using AS3. I have a stop() action on the first frame of my scene, but it keeps getting ignored and looping the whole thing. The only other code is that telling the buttons to gotoAndStop on certain frames.[URL]...

View 5 Replies

Buttons Stop Working After Another Is Pressed?

Oct 29, 2009

I have 2 main movie clips, one for the menu bar and one for the content, there is then a movie clip within each one of those, one to hold the set of buttons, and one to hold the content movie clips. The menu bar has a control to flip between 2 sets of buttons. the viva content button works fine to begin with, but after the menu bar control is clicked, the content buttons stops working. Code is as Follows: All of the code (bar a few stop() flags on cirtain frames) is located on frame 1 of the root, which is the only frame on the root.

barControl.barContent.barUp.addEventListener(Mouse  Event.CLICK, menuSwitchHandle); barControl.barContent.barDown.addEventListener(Mou  seEvent.CLICK, menuSwitchHandle); barControl.barContent.barMenu.vivaBtn.addEventList  ener(MouseEvent.CLICK, vivaHandle);

[code]........

View 3 Replies

ActionScript 3.0 :: Stop(); Action Not Working?

Aug 6, 2010

I know how to use flash but i'm not highly advanced.I have started creating a website for a friend and when I have placed the stop action where I would like it to be on both scenes it still plays in a loop once i test the movie (ctrl+enter).

View 2 Replies

ActionScript 1/2 :: _mc.stop() Not Working After OnLoadInit()?

Oct 20, 2010

Within my onLoadInit() function, I am trying to stop the loaded clip from playing till a certain time. But when I do:
 
_mc.stop(); the clip just keeps playing. But _mc._alpha = 0, works as I cannot see the slip anymore.

View 1 Replies

ActionScript 3.0 :: Stop(); Not Working In Scenes?

Jan 18, 2011

I'm working on a school project in flash cs5.We've been stuck with this for a few days now, scanning all pages in google to find. At the moment we have two scenes. The first scene sets up a menu, these buttons are for navigating to the other scenes. The second scene, pulls a movie into the screen.We've tried putting a stop(); at the end of the first scene, but it doesn't stop. It stops the movie in scene 2.We've tried stopping in scene 2 and tried with frame labels, but we're not sure if we did this in the correct way.

View 3 Replies

ActionScript 2.0 :: OnMouseDown And Up - Stop Working?

Feb 8, 2009

I'm trying to make a notepad - when you hold the mouse down you can draw like a pen and when you release the mouse it stops drawing. At the moment I can just get it to update after every click.

Writing.as:

ActionScript Code:
//This class is to 'write' wherever the person drags the mouse
class Writing {[code]...............

View 1 Replies

ActionScript 3.0 :: Stop() Is Not Working Properly

Jul 6, 2009

The stop() is not working properly as if it were being ignored. I have even recreated a dummy flash document the stop() did work, however, it is still not working on the original design.

View 6 Replies

ActionScript 3.0 :: Movieclip Stop() Isn't Working?

Jan 9, 2010

I've created a class and then in my library I linkaged my movieclip to the class..Inside the movieclip there are some actions in the frame like gotoAndStop . but it seems they are all ignored.

View 2 Replies

ActionScript 1/2 :: Swf Looping - Stop(); Not Working?

Jun 13, 2011

I made a little animation with a preloader, and i want it to stop on frame 9.I tried putting a stop(); command on the frame but the swf just keeps looping.here is the preloader code (maybe it matters):

this.onEnterFrame = function() {  var total = _root.getBytesTotal();  var loaded = _root.getBytesLoaded();  var percent = Math.round(loaded/total * 100);  this.mc_preloader._xscale = percent;  if (percent == 100) {  play(); 

[code].....

View 1 Replies

IDE :: Buttons Stop Working After Another Is Pressed

Oct 29, 2009

I have 2 main movie clips, one for the menu bar and one for the content, there is then a movie clip within each one of those, one to hold the set of buttons, and one to hold the content movie clips.

The menu bar has a control to flip between 2 sets of buttons.

the viva content button works fine to begin with, but after the menu bar control is clicked, the content buttons stops working.

Code is as Follows:

All of the code (bar a few stop() flags on cirtain frames) is located on frame 1 of the root, which is the only frame on the root.

barControl.barContent.barUp.addEventListener(Mouse Event.CLICK, menuSwitchHandle);
barControl.barContent.barDown.addEventListener(Mou seEvent.CLICK, menuSwitchHandle);

[Code]....

View 1 Replies

ActionScript 3.0 :: SoundChannel In Class Only Plays Once

Dec 27, 2010

The soundChannel only plays once.Im guessing this has to do with using a class?[code]...

View 5 Replies







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