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


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 :: SoundChannel INSIDE A MovieClip Not Functioning Properly

Apr 28, 2010

I have a button that is housed inside a movieClip. That movieClip has the following AS3 code:

[Code]...

So I'm just curious if this is a known glitch in AS3 or CS4. Or if this method of using SoundChannel within a movieClip is no-no and why.

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

ActionScript 2.0 :: Stop() Or _root.stop() Doesn't Stop?

Aug 26, 2009

I have a contact form for which I have a tween. That contact form consists of two keyframes, first the form, I tried putting the code stop(); in the first keyframe but it didn't stop. I then changed stop(); to _root.stop();, which didn't work either. I have to stop it because otherwise users would see a thank you note before they even enter their details. What can I do? Converting to movieclip didn't work either, besides it puts a funny character when I press AltGr

View 2 Replies

Professional :: Flash Doesn't Run Properly

Apr 21, 2011

I am using a flash template that includes a menu bar. However, after I changed the names of the tabs in the menu bar, none of the words show up. Everything else loads correctly (sound, logo, images), but no words on the menu bar. I see them on the actual project, but not when I debug the movie. Where did my words go?

View 6 Replies

IDE :: Mask Doesn't Preview Properly

Mar 10, 2009

I�m in the process of creating a flash intro to my website. The problem is, whenever I preview one of my Mask layers by pressing Ctrl+Enter, the mask effect doesn�t work � it merely shows the masking object.

The puzzling thing for me, which leads me to suggest that the mask should work is that in the normal timeline view, when I lock both the mask and masked layers and press Enter or slide through the frames � the effect works perfectly. On Ctrl+Enter all of my other Masks work fine as well - the one in question has text as the mask content.

It only stops working when I view it as an .swf file or play the movie with Ctrl+Enter. Does anyone know why this is happening, how I can get around it, or whether it will be a problem when published?

View 1 Replies

My Text Mask Doesn't Preview Properly

Mar 14, 2009

I'm relatively new to Flash, and I�m in the process of creating a flash intro to my website. The problem is, whenever I preview one of my Mask layers by pressing Ctrl+Enter, the mask effect doesn�t work � it merely shows the masking object. The puzzling thing for me, which leads me to suggest that the mask should work is that in the normal timeline view, when I lock both the mask and masked layers and press Enter or slide through the frames � the effect works perfectly. On Ctrl+Enter all of my other Masks work fine as well - the one in question has text as the mask content.

It only stops working when I view it as an .swf file or play the movie with Ctrl+Enter. Does anyone know why this is happening, how I can get around it, or whether it will be a problem when published?

View 1 Replies

Sound Doesn't Sync Properly In 24fps

Dec 12, 2009

im having a problem with sound in the animation. I noticed that sound doesnt sync properly in 24 fps.The sound actually does sync properly when the sound is an event, but when the sound is set to stream, it actually doesnt play properly, and i need my animation to have streaming sound especially for the internet. So for example, if i added a sound effect to start on frame 30, when i play the animation in swf, the sound effect actually starts playing at the wrong frame, in this case, the sound plays before frame 30. So in this case, the sound plays too early, and therefore the sound effect doesnt match with the animation itself. I wanted my animation to be at 24 fps, so i assume theres something that i have to do to get sound to sync properly with the animation at 24 fps.

View 2 Replies

Media Server :: FMS Doesn't Start Properly?

Dec 6, 2011

I have some problems about installing FMS 4 on a CentOS 6 x64. After installing, FMS doens't start properly. I don't see the videos on the web interface. In the log file master.00.log, i can see these errors messages
  
2011-12-0608:38:461675(i)2581226Edge (1748) is no longer active.- 2011-12-0608:38:461675(w)2581255Edge (1748) _defaultRoot__edge1 experienced 1 failure[s]!- 2011-12-0608:38:461675(i)2581224Edge (1798) started, arguments : -edgeports ":1935" -coreports "localhost:19350" -conf "/opt/adobe/fms/conf/Server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__edge1" -edgename "edge1". 

[Code]...

View 8 Replies

Flash 9 :: Sound Sometimes Doesn't Compress To Mp3 Properly

Aug 7, 2008

The keyword is "sometimes".

I recompiled a Flash 8 project in Flash CS3 recently and noticed that some of the sound effects sounded like a painful chippy mess. It sounded like the mp3 bitrate was at the lowest Flash outputs (16kbps). I compiled again, and all the problems went away. Then I compiled again and different sounds went chippy!

Fine, whatever. Maybe it's a glitch between project versions.

This week I built a project from the ground up in Flash CS3 with AS 3.0 . The chippy compression is still there and happens most of the time. Both my global and local compression settings for sound clips are mp3, 160kbps, Stereo.

View 8 Replies

ActionScript 2.0 :: MC Doesn't Load Variables Properly

Apr 10, 2005

I found a script which loads text from a TXT file. Nou the code workd fine on a button, but assoon i putt that code on a MC it doesn't load the variables properly. That meas; i don't any script errors, but the text doesn't appera in the dynamic texterea.[code]

View 4 Replies

Actionscript 3.0 :: Movie Doesn't Stop At Any Of Stop Commands And Keeps Looping Through Itself Over And Over Again

Jan 5, 2010

Im attempting to make a preloader. I am very new to action script so this is what i have.

Code:
ifFrameLoaded ( "UC" ) {
gotoAndPlay ( "home" );
}

as simple as it gets, right? Wrong, the preloader works however is get this error 1087: Syntax error: extra characters found after end of program. The preloader it self works it plays and when the movie is loaded it begins the movie, however the movie doesnt stop at any of my stop commands and keeps looping through itself over and over again till i exit the window.

View 1 Replies

ActionScript 3.0 :: Stop Movieclip - SjunkBomb[x].stop(); Doesn't Work?

Aug 27, 2010

I have some bombs like this :

var sjunkBomb:Array = new Array;
for (var i:int = 0; i < sjunkBombMaxAntal; i++) {
var bomb = new sjunkbomb;[code]....

Each movieclip sjunkBomb contains an animated movieclip. When the bombs reach the bottom I want to stop the inside animation.I guess it's better to stop them so they affect the rest of the game if there are a lot of bombs. I know how to hide them with sjunkBomb[x] .visible = false; but if I want to stop them? sjunkBomb[x].stop(); doesn't work!?

View 1 Replies

ActionScript 2.0 :: Tween Activity Doesn't Seem To Be Working Properly

May 26, 2010

Take a look at [URL] I have made a preloader for a site but the tween dosnt seem to be working properly. Stop the page from loading as soon as you see the preloader. You'll notice that the preloader circle appears to shimmer, i have no idea why. its basically a photoshop psd file that i have dropped to the stage as a graphic and then done a motion tween to make it rotate across 24 frames. I have set the html page to show the flash at 'best' quality and tried it on a black background to see if it was an optical effect, but its always the same.

View 1 Replies

ActionScript 1/2 :: Preloader Doesn't Work Properly Remotely

Sep 30, 2009

I have a preloader which loads an external swf. When I test locally, everything works fine, but when I test remotely: Preloader runs.External swf doesn't load into preloader. I am using the contentPath to load my external swf, and the only as2 I am using is: on (complete) { this._parent.loaderPB._visible = false; this._parent.mcbgdloader.visible = false;} to hide the progress bar and graphic used in the preloader.

I hope I provided enough info. The preloader is a regular fla and the external uses screens.

View 1 Replies

ActionScript 2.0 :: App Doesn't Display Dynamic Images Properly

Jan 31, 2009

I recently created a visual quiz app which asks a question and then gives 4 image answers.

The problem that I'm having is that the images don't shrink the image into their quadrants, but rather, zooms in on the top left corner of the image.

Can anyone tell me what I have to change in the following code to make the images display at a set width (so that they fit in the quadrants proportionally).

Here is what the SWF looks like now. As you can see the images become distorted because they are being stretched. What should happen is that the images be displayed at a fixed width and variable height. [URL]

Code:
var dataXML:XML = new XML();
var arrSounds:Array = new Array();
var arrData:Array = new Array();
var rndData:Array = new Array();

[Code]....

View 3 Replies

ActionScript 2.0 :: Why The Loading Screen Doesn't Work Properly

Dec 19, 2010

I have been trying to get my file to work for a day and a half now. Any help with the error or why the loading screen doesn't work properly [URL]

View 9 Replies

ActionScript 3.0 :: EventListener - Mouse_rollover Doesn't Work Properly

Jan 5, 2011

I have a file with multiple buttons. The task at hand seems simple. Use eventListeners to go back and forth between frames. Here is the code I am using.

[Code].....

I've tried creating this project using movie clips instead of buttons, and it seems without a hit area the mouse_rollover doesn't work properly, it just flickers. All I'm trying to do is roll over the number have the background be a dark transparency and bring up the text box for 18 different numbers... Seems simple right? I've attached the current broken file for you to explore.

View 2 Replies

Actionscript 2.0 :: Pause Button Doesn't Work Properly

Sep 6, 2010

I 'm building a slide show w/ as2, most of the function are fine. However, the pause button doesn't work properly. It can pause the slide show, but not able to play the slide show again. (fyi - the previous btn & next btn work fine !) [code]

View 1 Replies

ActionScript 2.0 :: Loading Text Doesn't Load Properly?

Oct 26, 2004

check this out: [URL] this swf does use this code:

Code:
optredens = new LoadVars();
optredens.load("optredens.txt");
optredens.onLoad = function(){
_root.aankomend = this.aankomend;
_root.geweest = this.geweest;
}

as you see in the swf you first have to switch with "aankomende optredens" en "gespeelde optredens" before you can read the aankomende optredens text... why? i just want it to load immediately, so you can read it... without having to read "undefined"

View 4 Replies

ActionScript 2.0 :: Slideshow Doesn't Fade Properly On The First Cycle?

Oct 31, 2007

I have a slide show that displays 6 images and is suppose to do a fade in / fade out (not an overlap fade) between each image. The peculiar behavior is that when the movie is testedlocally by using "Test Movie", the fades occur properly. However when the swf is viewed from the website, during the first cycle of the slideshow, the next image does NOT fade in. After the first cycle, the fade in occurs properly.

Code:
import mx.transitions.Tween;
var nInterval:Number;

[code].....

View 5 Replies

ActionScript 2.0 :: Clear Interval Doesn't Work Properly

May 14, 2008

i have used the setinterval in a module. i clear the inetrval each time i make it using a function in other class. on long time run the clear interval stops functioning.

View 1 Replies

ActionScript 3.0 :: App Doesn't Display Dynamic Image Properly?

Feb 1, 2009

I recently created a visual quiz app which asks a question and then gives 4 image answers.The problem that I'm having is that the images don't shrink the image into their quadrants, but rather, zooms in on the top left corner of the image.Can anyone tell me what I have to change in the following code to make the images display at a set width (so that they fit in the quadrants proportionally).Here is what the SWF looks like now. As you can see the images become distorted because they are being stretched. What should happen is that the images be displayed at a fixed width and variable height.

Code:
var dataXML:XML = new XML();
var arrSounds:Array = new Array();

[code].....

View 1 Replies

ActionScript 2.0 :: Loading Text Doesn't Load Properly

Oct 26, 2004

[URL] this swf does use this code:

Code:
optredens = new LoadVars();
optredens.load("optredens.txt");
optredens.onLoad = function(){

[code]...

as you see in the swf you first have to switch with "aankomende optredens" en "gespeelde optredens" before you can read the aankomende optredens text... why? i just want it to load immediately, so you can read it... without having to read "undefined"...

View 4 Replies

Professional :: Flashplayer Stop Doesn't Stop All Animations?

Nov 1, 2010

When my animations are playing in the flashplayer and you rightclick and uncheck the play command only the animations in the main timeline stop playing. All the child animations continue to play. How do I make it so they all will stop playing when play is unchecked?

Is there a event listener that monitors if the movie has been stopped?

View 11 Replies

Image Zoom Tool Doesn't Work Properly In Firefox?

Mar 28, 2009

This is the code I use to run a swf that makes zoom on images:

<body>
<center>
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash

[Code]....

This code works properly in IE7 but in Firefox I have discovered that the images are loaded after than the swf. This swf file needs some parameters to work with the images, but if the images are not loaded previously then the swf does not work properly. In firefox, a page refresh is needed if the images are not yet loaded in the cache.

I have resolved the problem partially preloading the images in the previous page link using: <img src="imagebig.jpg" style="display:none;" alt="" width="781" height="1051"/> With this solution, the images are loaded prior to the swf loading.

View 1 Replies

ActionScript 3.0 :: Scrollbar Doesn't Call Scroll Event Properly

Sep 22, 2009

I have a text box with a scrollbar attached and everything works fine except if i use the scrollbar then the scroll event attached to the textfield doesn't execute but if i type in the text field untill it scrolls then the scroll event works perfectly.

View 1 Replies

ActionScript 2.0 :: Create One Image Gallery / Doesn't Work Properly

Jan 12, 2010

I create one image gallery. But it doesn't work properly.That means i want to play like slide show with using setInterval method.Once first image loaded and second image if load i want some time to display for ex:2min waiting. After that load third image. this only i want to play this sequence.[code]

View 1 Replies







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