Actionscript 3.0 :: Unload Loader Wont Stop Sound From External SWF?

Mar 24, 2010

I have a menu on my main page where i can choose some videos to play, these videos are in external SWFs that are loaded in and displayed using Loader, URLrequest etc.. etc..

I have a close button on my external swf that sends a dispatchEvent to an eventListener on my homepage to close the external SWF however the sound from the video in the external swf is still audible even though the visual is gone

heres the code

main page code
Code: Select all
function playVideo(e:MouseEvent):void{
//stop maipage sound
channel.stop();

[Code]......

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Unload And Kill The Sound Of An External SWF?

Sep 6, 2011

I have the following program to play a .flv movie on a webpage made by myself:
 
var Xpos:Number=0;
var Ypos:Number=0;
var swf:MovieClip;

[Code].....

When I publish the preview, it works well and I can unload it and kill its sound by clicking on the close button. When I publish the page on the website and load the movie through "loader_btn", it works well, and when I click the close button, the image disappears but the sound is continued.

View 3 Replies

ActionScript 3.0 :: External Swf Unload & Stop Not Working?

Jun 14, 2011

I am trying to load & unload external swf that contain audio & video. Problem is that when I unload the swf's, the sound continues and I get overlapping sound. This is the code I am using:

var swf_loader:Loader = new Loader();
///unload previous swf
swf_loader.unloadAndStop();

[Code]....

View 5 Replies

ActionScript 3.0 :: Stop A Timer In A External Swf On Unload?

Aug 2, 2009

I have a swf with a slideshow that runs on a timer that I'm loading into my main swf. When I remove the swf from the main swf the timer continues to load the images for the slideshow even though I can't see them on the screen. Does anybody have any suggestions on how to stop the timer once the swf has been unloaded?

View 5 Replies

ActionScript 2.0 :: Create Loader For External Swf That Will Have Features To Enable / Disable Sound

Dec 24, 2009

To create loader for external swf that will have features to enable/disable sound and to enable/disable external link requests.I don`t have source files for that external swfs.

View 2 Replies

ActionScript 3.0 :: Stop External Sound In External SWF

Jul 19, 2010

I am working on controls for an external swf. The external swf loads an external sound file. The structure at the moment is extswf.swf contains mcSound which loads soundfile.mp3. extswf.swf automatically starts playing when invoked. movieController contains the icons for the play/pause buttons. This is assigned CntlClass. CntlClass loads extswf.swf and controls the play and pause buttons.

So far, the play and pause buttons stop and start and stop the movie but not the sound. I know I need to access the sound channel from the external swf and use the sound transform to change the volume. How to access that channel is unknown. The examples I find have imbedded sound files. Also, the examples seem to use the main class for the external swf. My external swf doesn't have a class file, so I have no idea what the main class would be.

View 5 Replies

ActionScript 3.0 :: Stop Sound In An External Swf?

Feb 1, 2009

I'm using external swf in a project, and I got one swf with startup audio play, I can't stop the sound to play when I load another swf via this code :

Code:
clearButtons();
TweenLite.to(m.target, 0.5, {tint:0xcc0000});
m.target.mouseEnabled = false;

[Code]....

View 4 Replies

ActionScript 3.0 :: Stop A Sound In Loaded External SWF?

Dec 29, 2009

I'm loading an external swf file that has some sounds in it (to the main swf). The swf contents never leave the movie but it does get pushed to the site when it's not in view.

The user can bring it back in view by pressing on a left/right button. So when it's not in view... or tweening out of view I need the sounds to stop.

Since the loaded swf is never unloaded, what should I look at to accomplish this... communicating with the loaded swf, etc?

View 5 Replies

ActionScript 2.0 :: Start/stop/pause A Sound In External Swf?

Jan 15, 2010

I'va any troubles in controlling sound in an external swf. I need to stop/play/pause it. I've put the sound file on the timeline of the external swf and I want to control it from tha main movie in wich I've load it. the swfs are made using AS2.0

View 2 Replies

ActionScript 3.0 :: External Swf Wont Stop Playing Sound?

Jun 28, 2011

I have created a form that has some buttons that open external swf files.Problem is when I close the external swf the audio keeps playing.If I turn off sounds the sound starts again when I load a new external swf.Here is the relevant portion of code;

function playMyMovie():void{ myrequest=new URLRequest(myMovie); myloader =new Loader(); myloader.load(myrequest); function movieLoaded(myevent:Event):void {  stage.addChild(myloader);  var mycontent:MovieClip=myevent.target.content;  mycontent.x=100; [code]....

View 15 Replies

ActionScript 3.0 :: Unload Not Unloading - Unload An External SWF On _root To Load A New One Instead

Jul 23, 2009

I'm trying to unload an external SWF on _root to load a new one instead. I've tried (almost) everything but can't figure it out... I get this error : "Error #1010: A term is undefined and has no properties."

[Code]....

View 3 Replies

ActionScript 3.0 :: Can't Unload A Loader

Jul 26, 2011

I can't seem to be able to figure out how to unload a JPG image once I've loaded it so I can load a second JPG in it's place. Here's my code so far (document class, picHolder_mc exists already on the timeline). All that happens is the second JPG being called loads on top of the first.

[Code].....

View 3 Replies

IDE :: Unload A Movie From With In The UI Loader?

Nov 6, 2009

How can I unload a movie from with in the UI Loader. I have loaded a movie into my UI Loader and there is a go back button And I simply want to unload that movie and return to normal.

View 2 Replies

ActionScript 3.0 :: Use .unload On The Loader?

Jul 22, 2010

I'm coding an xml gallery with thumbnails. Ive set a container for the thumbs and for the main image. when user clicks on a thumb it loads the larger image. Preloaders are done all is well however when the user clicks on a nother thumb it just loads in the image over the last one. How can I cause it to delete the currently displayed image and then load the new one.

would :- removeChild work or do I need to use .unload on the loader?

View 2 Replies

ActionScript 3.0 :: Unload And Reload Same Loader?

Aug 11, 2009

I am having some issues with my loader. What I have is one loader object that will load 5 different SWF loading xml galleries.It works fine the first time it loads, until I unload it to reload another gallery... then it will display its loading but nothing shows?

Code:
var gallery:String=new String ;
gallery="web";
var portIDReq:URLRequest=new URLRequest("viewer"+this.gallery+".swf");
var portIDLoader:Loader = new Loader();
portIDLoader.x=0;
portIDLoader.y=0;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Unload More Than One Instance Of Loader?

Dec 11, 2009

I have created 20 thumbnails using a for loop.

On each loop an instance of the loader class is created and an image shown from an xml file.

I want to unload these images (so they no longer use memory) at the click of a button.

I tried putting thumbLoader.unload(); into a new for loop but it only removes the last thumbnail. How can I get rid of them all.

Also how do I reference these loader instances in general?, using thumbLoader only allows me to talk to the last of the thumbnails created?

View 4 Replies

ActionScript 3.0 :: Animating A Loader On Unload?

Jun 18, 2009

,nm. fixed.

View 0 Replies

ActionScript 3.0 :: Unload A Movie From With In UI Loader?

Nov 6, 2009

How can I unload a movie from with in the UI Loader.

I have loaded a movie into my UI Loader and there is a go back button And I simply want to unload that movie and return to normal.

View 2 Replies

ActionScript 3.0 :: Unload Content In A Loader?

Feb 9, 2010

I have a URLloader that load an xml file, what i need is to be able to clear whats in the loader once the data of my xml has been loaded, is it possible to use unload in the on complete function? for example[code]...

View 3 Replies

Actionscript 3.0 :: Unload And Reload The Same Loader

Aug 14, 2009

I am building a portfolio gallery, with one loader who loads 5 different .swf which load XML files.Everything work, but once I unloaded it to reload it, it says that its loaded but I dont see anything anymore.I probably tried a 1000 versions, but here is my latest code:[code]

View 1 Replies

ActionScript 3.0 :: Sound Loader Switch Sound On New Keyfram?

May 15, 2009

im loading an external sound directly when im on the first keyframe of the timeline in an mc this is my code:
 
//code on stage (no keyframes)
var sound:Sound = new Sound();
var sc:SoundChannel = new SoundChannel();

[Code]....

View 5 Replies

ActionScript 3.0 :: Unload Loader And Continue On Timeline?

Apr 28, 2009

I have used the loader class to play an external .swf file. When it is finished I need to stop it and continue to the next frame in the timeline of the original movie. I can load it and unload it, but how to I unload it after it has played and continue to frame 2 of the timeline?
 
var myLoader:Loader = new Loader();myLoader.x = 150;myLoader.y = 75;
myLoader.load(new URLRequest("movie.swf"));addChild(myLoader);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete) ; 
function onComplete(e:Event):void{    myLoader.unload(); this.gotoAndPlay(2);}
 
With this code, it skips the loaded movie and goes straight to frame 2.

View 6 Replies

ActionScript 3.0 :: Dirty Loader Unload Concept?

Dec 22, 2010

I have load external swf file with loader. The external swf file have animation with embeded mp3 file . when i click the btn unload the external swf file .external swf file is unload ok. But Problam is after few seconds sound is hearing. I think  animation still running in  backend when reach the first frame sound is hearing.
  
var ldr:Loader=new Loader()ldr.load(new URLRequest("test.swf")) addChild(ldr) btn.addEventListener(MouseEvent.CLICK,unloadmovie) 
function unloadmovie(e:MouseEvent){    ldr.unload()    SoundMixer.stopAll()        }

View 5 Replies

ActionScript 3.0 :: Loader Unload Event Not Calling

Aug 2, 2011

My code is
try {
if (MovieClip(this.parent)!=null) {
if (MovieClip(this.parent).imagename!=null) {
var t=MovieClip(this.parent).imagename;
var url:URLRequest=new URLRequest(t);
[Code] .....
My loader unload event not calling?

View 3 Replies

ActionScript 3.0 :: Loader Unload Doesn't Work

Jul 18, 2011

I want to unload my loader when i click the unload button, and to check if it unloaded successfully, i typed a trace command [trace("unloaded")] in the eventListener "EVENT.UNLOAD", but when i click the unload button, it doesn't unload.[code]any help on how to make unload work?

View 5 Replies

ActionScript 3.0 :: Loader Unload Event Not Calling?

Aug 2, 2011

here my code
----------------------------------------------------

if (MovieClip(root).gmapimage!="") {
myLoader.contentLoaderInfo.addEventListener(Event. COMPLETE, onLoaderReady);
myLoader.contentLoaderInfo.removeEventListener(Eve nt.UNLOAD,unloadHandler);
var fileRequest:URLRequest=new URLRequest(MovieClip(root).gmapimage);

[Code].....

i want to remove all object and variable set or remove on Event.UNLOAD event(see my function unloadHandler()) but UNLOAD event not work for me anything wrong...

View 3 Replies

ActionScript 2.0 :: Unload The .png Files W/o Killing The Loader?

Jan 7, 2007

I have several thumbnails in my portfolio that dynamically load a .png file into the Loader component called myLoader.Followed the tutorial from Kirupa. Simple enough.

Code:
on(release){
myLoader.contentPath = "1-0.png";
}

When I (user) goes to click on a different client to view different work, artwork from the current client is still loaded, or being shown. I have the same myLoader Loader spread through the frames.I tried to put this

Code:
on(press){
unloadMovie("myLoader");
}
on each client button to clear the Loader before you go to each section, but that makes it disappear all together, than when you go to click a thumbnail, nothing happens because the Loader is gone.Is there a way to unload the .png files w/o killing the loader? Should I use a separate loader for each client? or will that just get messy.

View 2 Replies

ActionScript 3.0 :: Get This Loader To Unload The Current Picture Before Loading In A New One?

Feb 2, 2010

I'm trying to to get this loader to unload the current picture before loading in a new one. how I can put that in?

ActionScript Code:
function loadPhoto(url:String):void {
var picLoader:Loader = new Loader();

[code]...

View 2 Replies

ActionScript 3.0 :: Unload Loader Button While Loading In Progress?

Sep 7, 2010

I dont even know if i got the title right. I am 5 days into actionscript and i have no prior training or experience in programming, flash using or whatever you might need to build a decent site, except for the graphic design part. I do however need to build an online portflio asap and things have been going great

I have a main movie that uses buttons to go to specific frames on the main timeline:

HZWA.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):voi d
{
gotoAndStop(5);

[Code]....

View 2 Replies

Actionscript 3.0 :: Load And Unload Swf's From Buttons Using Class Loader?

Feb 13, 2009

I am trying to load external swf's from buttons. I managed to load an external swf from a button, but as a result I can't work out how to get it to unload when other buttons are clicked. Currently In the flash file I have only 2 buttons 'dutrain_b' and 'portfolio_b'. I would like to add many more when the code is working.

Code: Select allimport flash.display.MovieClip;
this.stop();
dutrain_b.addEventListener(MouseEvent.MOUSE_DOWN, godutrain_b);

[code]...

View 4 Replies







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