ActionScript 3.0 :: Audio Stays After RemoveChild

Sep 1, 2009

I have a test site on: [URL] with a problem that the sound doesn't stop when I removeChild... The playing movie with the music is to stay only on HOME.

My code on the first frame of the label "HOME":
var Xpos:Number=243;
var Ypos:Number=88;

[Code]....

I think I am supposed to add an EventListener but can't figure out where or how...

View 3 Replies


Similar Posts:


ActionScript 3.0 :: RemoveChild But Audio Still Plays

Jul 16, 2009

I have as3 script that loads an external swf which contains flv video:

[Code]....

The movie clip is removed but the audio continues to play. Why is this? What can I do to make sure the audio is removed also?

View 10 Replies

Actionscript 3.0 :: RemoveChild Won't Get Rid Of Audio In External Swf

Apr 16, 2009

I have a container swf which is used to load multiple external swfs into a blank movie clip. Done as follows:

blank_mc.addChild(externalSWF);

This works fine, however I've got a weird issue with audio. Some of my external swfs have audio clips in them and for some reason the audio doesn't go away when a new external swf is loaded. So say the user loads a swf with audio in it and the user switches to another page, the audio from the previous page keeps playing even though a new external swf has been loaded into the blank movie clip.

I tried using removeChild before the new external swf gets loaded, but that didn't seem to do the trick. Audio is loaded to the timeline like so:

var audio:Nasdaqbell = new Nasdaqbell();
audio.play();

also tried the audio on the timeline as "stream" and "event" and got the same results.

View 4 Replies

IDE :: RemoveChild - Videos Load But Audio Remains From Previous SWF

Jun 30, 2009

I've got a SWF loading others SWFs with this code:

[Code]...

Videos load, but audio remains from previous SWF. I thought removeChild would take care of it.

View 3 Replies

Actionscript 3 :: Error #1006 RemoveChild Is Not A Function. Timer Delay RemoveChild

Mar 29, 2010

I'm trying to build a conditional statement that will addChild and removeChild at different Timer Delays. Before I go any further, I thought, I should mention that I'm usinig TweenMax to ease the alpha of ease Child from 1 to 0 and back during the process to imitate a fade-in/out.

I'm getting issue with only one line - inside a conditional statement.It's running "OK". The movie runs as I want it, but the remove/addChild transitions are not at the speed I want it at. I am getting an error message in the output, but other than that, the movie runs fine.

stop();
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;

[code]....

View 2 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

ActionScript 3.0 :: RemoveChild(); RemoveChild()?

Feb 21, 2009

I cant do 2 removeChild(); 's beneath eachotherSo their always will remain 1 child how can i delete that one?

addChild
removehild does work
removeChild

[code]......

View 2 Replies

Actionscript 3 :: Movieclip Always Stays On Top?

Mar 31, 2010

I'm building a game of which the interface is one of the first items to load on screen.Sound button, pause and all the bits .During the game - all manor of things are dynamically added and removed to the stage. Therefore my interface goes behind my game scene.How do I ensure the movieclip always stays on top? Can I override the addChild of my Document Class and every time a new child is added, I restack the interface to the top?

View 3 Replies

Flash Button Stays Down

May 24, 2011

I'm building in flash a house. Now I want when I click on a door it stays open.
I'm using an button for the effect.

I think I need some code to keep te button in the down state after I clicked it

Here's my Actionscript 3

import flash.ui.Mouse;
import flash.events.MouseEvent;
// SOUNDS

[Code]....

View 1 Replies

Actionscript 3.0 :: Buttons Stays In The Over State

Mar 31, 2009

good morning, does anyone have an idea of how i can get the buttons to stay in the over state after its clicked. so the user can tell which tab he is on...i have search for tutorials and i could find is AS2 and i need AS3?

View 2 Replies

ActionScript 2.0 :: Box Just Stays In Its Place And Does Not Move?

Apr 28, 2004

I made a movie clip that has this code in it

[code]...

The resize works fine but the x and y dont work. The box just stays in its place and does not move.

View 1 Replies

ActionScript 2.0 :: XML Nav Item Stays Highlighted?

Nov 25, 2004

Have been incorporating XML data into applications for a while now... have now begun using it for medium to large navigation lists.While I can do any method of horizontal, clamshell, expandable, motion-based navigation etc I have a strange problem overall... I cannot, for the life of me, figure out how to code a smart function that will check which nav item was clicked and keep it highlighted until another one is clicked... then that one would highlight and all of the others would be un-highlighted.

I can do rollOvers using references to XML array generated items. BUT-- the smart checker is something I cannot figure out... any ideas out there. Must be simple.

View 1 Replies

ActionScript 1/2 :: Why Button Duplicates Itself And Stays On Stage

Jun 2, 2009

I have a little quirk that I cannot think of why or how to solve. swf1 - I have buttons on stage and in the first frame actions;
  
med.med_btn.onRollOver = function() {   TweenLite.to(med.med_btn, 1, {_x:10, ease:Elastic.easeOut});   TweenLite.to(content_mc.contMed, 1, {_alpha:100});}med.med_btn.onRollOut = function() {   TweenLite.to(med.med_btn, 1, {_x:0, ease:Elastic.easeOut});   TweenLite.to(content_mc.contMed, 1, {_alpha:0});}med.med_btn.onRelease = function() {   //loadMovie("webPoet.swf", "blank");} 
 
All works fine. This is loaded inside another swf(swf2). Then the parent swf(swf2) calls for the play to go to the next frame of this movie(swf1), where each button(inside its own MC) has onClipEvent(onEnterFrame) action to drop them off the screen. Everything works perfectly except the last button you have rolled over, creates a double and stays there!!! It happens on only the last one you have touched with the mouse. If you dont touch any they all drop off as required.

View 5 Replies

ActionScript 3.0 :: Ensuring A Static Var Stays Updated?

Oct 28, 2009

I want to get the index of the image currently in the center of the carousel and then I want to use this index number in other classes but it has to stay updated each time.Isuccessfully managed to get the index of the image that is currently being clicked on (this image will then be moved to the center of the carousel so as long as one always clicks on an image at the start, my method will work ) but I dont know how to allow other classes to access this. I tried saving it as a static var and then trying to access it by using the following:

private var coverIndex : int = CoverFlow.selectedCoverIndex;

But I receive the error msg that selectedCoverIndex is not available to static class CoverFlow or something of that sort. This is what my CoverFlow code looks like (i.e. where I determine which image I want to position in the center):

public class CoverFlow extends Sprite {
public var covers : Vector.<DisplayObject>;
private var cover : DisplayObject;[code].............

View 4 Replies

ActionScript 3.0 :: Video Stays Blank Online?

Dec 8, 2011

I just got this problem after I uploaded my swf file online...it work just fine on my local disk. here the link of the website: [URL]
 
you can see it stay white at the beginning....it should be a FLVPlayback component.

View 5 Replies

Flash :: Slowndown Stays After Using And Removing A Lot Of Objects

Jul 19, 2011

I use this piece of code to create some eyecandy of debree falling. When an object is destroyed i spawn some rubble and let is fly over the screen. But... when i use this a lot, slowdown is there and even when all the objects are gone the slowdown stays. The good old 50fps won't come back anymore

public function destroyBlock(xPos,yPos,nrObjects) {
for (var debree = 0; debree < nrObjects; debree++) {
debreeObject = new mc_ground();

[Code].....

View 2 Replies

ActionScript 2.0 :: Screen Stays Blank Up Until Until That 8o% Mark?

Feb 20, 2009

I have built a pre-loader from tutorials that seems to work well except that you can't see it until it hits about 8o% loaded.

this is the code for frame 1 of my movie. (loading is a text box that shows the percentage as it loads)

ActionScript Code:
stop();
onEnterFrame = function(){
var percentLoaded = _root.getBytesLoaded()/_root.getBytesTotal();

[Code].....

why the screen stays blank up until until that 8o% mark when it seems like the whole frame(preloader) loads?

It seems like everytime I get comfortable with some aspect of programming, I attempt another one that makes me wonder why I program in the first place! My mac is lucky I can't afford to throw it out the window.

View 4 Replies

ActionScript 2.0 :: Button Stays In The Down State When Clicked

Oct 23, 2009

I used the tutorial here: [URL] to achieve the above, which I did. Then I tried putting AS on the buttons I made to import external clips and they stopped working completely. I've tried putting the AS on the main time line as well as on the btn itself, I've even tried recoding the script from the tutorial and have spent hours searching the net but still cant see what I'm doing wrong.

I've attached the file which should work to me. if the btn code is deleted from the main timeline the menu acts as it should but doesn't link any where. Actually I put the file here: [URL]

View 3 Replies

ActionScript 2.0 :: XML Navigation Item Stays Highlighted?

Nov 25, 2004

Have been incorporating XML data into applications for a while now... have now begun using it for medium to large navigation lists.

While I can do any method of horizontal, clamshell, expandable, motion-based navigation etc I have a strange problem overall... I cannot, for the life of me, figure out how to code a smart function that will check which nav item was clicked and keep it highlighted until another one is clicked... then that one would highlight and all of the others would be un-highlighted.

I can do rollOvers using references to XML array generated items. BUT-- the smart checker is something I cannot figure out..

View 1 Replies

ActionScript 2.0 :: XML Preloading In IE - Stays At 0 And Instantly Jumps To 100

Jun 20, 2007

Having a really nasty problem. Been "googling" for answer for some time, but no solution so far. My flash app is quite simple. A flash app which uses locally stored XML to create UI and stuff. XML is quite large, but still quite manageable (5mb) Loading XML is pretty standard & easy. No problems here. Making a preloader is easy too. But the problem is:

While testing movie on (flash 8 dev) local machine, I cant get no preloader working. Stays at 0 and instantly jumps to 100. Problem can be bypassed on Flash 8 by setting download simulation on, and after that it works fine. But after you have published your application IE does the same as testing the movie in flash 8, basicly the whole browser is frozen for couple of seconds and then instantly jumps from 0 to 100.

If this is not confusing enough I tried my published App in Firefox and voila, preloader worked like a charm. Preloaded smoothly as silk. wonder if there is a solution? Why Firefox and IE differ so much? I been thinking if the problem is that in IE "locally stored" xml is streamed so fast that UI has no resources to update, but why on earth Firefox is not doing the same?

View 2 Replies

ActionScript 2.0 :: Preloader - It Just Stays At 1% The Whole Time Until Loaded?

Apr 6, 2009

i have a mc with instance name "preload" on the first frame of the main timeline, with a movie clip instace "numbers" inside that, which contains 100 frames, with text 1-100, masking a gradiant. on the preload mc i have the following code:

ActionScript Code:
onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();[code].....

which goes to the 2nd frame once loaded marvelously... but it just stays at 1% the whole time until loaded... i keep tweaking it but no improvement.

View 3 Replies

ActionScript 2.0 :: Button Stays In The Down State When Clicked?

Oct 23, 2009

I used the tutorial here:to achieve the above, which I did. Then I tried putting AS on the buttons I made to import external clips and they stopped working completely. I've tried putting the AS on the main time line as well as on the btn itself, I've even tried recoding the script from the tutorial and have spent hours searching the net but still cant see what I'm doing wrong.I've attached the file which should work to me but doesn't. if the btn code is deleted from the

View 3 Replies

ActionScript 2.0 :: Loaded XML Stays In Cache Load Another XML With LoadMovie SWF?

Jun 18, 2009

The whole problem is in the title. I have a gallery which looks a lot like coverflow. Each button in it loads a new gallery which is a swf with a new XML. The Problem is it only works on the first time i click on a button. The XML does not renew when i click on another button. It does load the new XML.

[Code]...

View 8 Replies

ActionScript 2.0 :: Flash 8 Button Stays In Down State When Clicked

Oct 23, 2009

I used the tutorial here: [URL] to achieve the above, which I did. Then I tried putting AS on the buttons I made to import external clips and they stopped working completely. I've tried putting the AS on the main time line as well as on the btn itself, I've even tried recoding the script from the tutorial. I've attached the file which should work to me. if the btn code is deleted from the main timeline the menu acts as it should but doesn't link any where.

View 1 Replies

ActionScript 3.0 :: UILoader.content Stays Null After Load?

May 14, 2009

I've started with a new Flash file and wanted to toy around with loading images and resizing the UILoader to the size of the loaded image. I've added a UILoader (instance name: loadImage) component to the main timeline and added the following code in the Actions window:
 
loadImage.source = "bookmark.png";trace( loadImage.content );
 
The image displays properly after compiling and viewing the SWF. However, loadImage.content returns null, instead of the DisplayObject that contains the image. This way, trying to resize the UIloader according to the loaded image doesn't work, since I can't access variables of an object that hasn't been initialized.
 
All the documentation states that loadImage.content should contain the DisplayObject that's loaded after setting loadImage.source or using loadImage.load( new URLRequest( "bookmark.png" ) ) (which also has the same problem).

View 2 Replies

ActionScript 3.0 :: When A Smaller Image Is Loaded The Big One Stays Behind For One Slide More

May 9, 2010

I'm using some action script code for a slide. The problem is that when a smaller image is loaded, the big one stays behind for one slide more. Maybe this happens with all slides but is only visible when a smaller one is loaded... What could be done? The code is:

[Code]...

View 7 Replies

ActionScript 3.0 :: Fullscreen Mode - Screen Stays Black

May 8, 2011

i'm trying to create a slideshow with AS3. The Problem is that if you click the fullscreen button very quickly after opening the page, it goes fullscreen but the display stays black!As you can see, i add the current Image to the mcSlideHolder just when the onFirstSlideLoaded-event occurs ... so if you click the fullscreen button before it has finished loading the image it will/should add it after the image is loaded ... so the image MUST be loaded then ... but why does the screen stay black???

[Code]....

View 1 Replies

Actionscript 3 :: Flex 4 ComboBox Stays Open When Filtered

Jul 29, 2011

I have a Flex 4 app with an external ItemRenderer inside of a DataGroup for a repeating form. The DataGroup dataprovider is an ArrayCollection (coll_sites). In the documentParent I have a trio of comboBoxes (Status, Year, Area) that trigger a filter function that operates directly on coll_sites.The itemRenderer has a series of textInputs and comboBoxes. Three of these comboBoxes are tied to fields in coll_sites (again, Status, Year and Area) that are filtered by the aforementioned parentDocument comboBoxes.The problem I am having is that in the itemRenderer when the field is one of the filtered ones, the itemRenderer ComboBox will not close. If it's not filtered, there is no problem. I have confirmed that the problem ComboBox updates the ArrayCollection appropriately, it just won't close unless another Item in the dropdown is selected.[code]In the ItemRenderer code above, the ComboBox for STATUS works exactly as it should but YEAR stays open after changing. In my full code, I have three such filtered fields and all three behave exactly the same. The other six fields which are not filtered, close appropriately.

View 1 Replies

ActionScript 2.0 :: Fullscren Background That Stays In Proportion When Scaled?

May 14, 2008

i am building a website that has a fullscreen background image that resizes with the window when it is scaled and the content stays in the center, i have most of the site built but when i scale the window the background image distorts and doesn't stay in proportion...I need a code that keeps the background image from distorting if you scale or resize the browser window.

Here is an example of what I'm talking about- [URL] go to the company section. I used this tutorial for reference in building the site- [URL]

View 3 Replies

ActionScript 3.0 :: Contact Form Stays On Sending And No Answer Comes From Php

Aug 3, 2010

I have a contact form but it stays on sending and no answer comes from php I think. Is this a coding problem or a server side problem.

[Code].....

View 1 Replies







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