Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

after removeChild(); FLV sounds in the external file keeps playing...

This is a discussion on after removeChild(); FLV sounds in the external file keeps playing... within the Flash CS3 generale forums, part of the Flash CS3 e Actionscript 3.0 category; Ok, this is the problem, i build an interface where all the sections and videos are loaded from an external ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 28-02-08, 21:15
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
Unhappy after removeChild(); FLV sounds in the external file keeps playing...

Ok, this is the problem, i build an interface where all the sections and videos are loaded from an external swf file, so i use the addChild to add that and removeChild to remove it, when i addChild(); an swf in which there is a flv file playing video and sound, the file will remove only video and images inside that swf but the sound will keep playing, sorry about this question might be something easy that I dont know about, can anyone help me?? thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 28-02-08, 23:21
tem's Avatar
tem tem is offline
Moderator
 
Join Date: Jan 1970
Posts: 488
Rep Power: 39
tem is on a distinguished road
Re: after removeChild(); FLV sounds in the external file keeps playing...

Hi!
try something like:
Code:
my_flvPlayer.stop();
__________________
http://www.thetconcept.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 28-02-08, 23:59
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
Re: after removeChild(); FLV sounds in the external file keeps playing...

I wish that could be that easy, the swf file is being imported using the addChild method to a loader, and then removeChild(loader); that's how im removing it and i can't just say loader.stop(); i might have to do something like this but i tried and it doesn't work.

loader.loaderContentInfo.addEventListener(Event.CO MPLETE, onComplete);

function onComplete(event.Event):void {
event.target.content.myFlvplayer.stop();
}

but that would just stop it when it finish loading, i think i need to embed a button in that swf file that controls the flvplayer and then linkage for actionscript and try to add it an event listner, the think is that it only works adding it through the loader once it's been just loaded, I think im not good explaining my self, i'll upload an example later, thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 29-02-08, 07:02
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: after removeChild(); FLV sounds in the external file keeps playing...

Quote:
Originally Posted by Vudrok View Post
I wish that could be that easy, the swf file is being imported using the addChild method to a loader, and then removeChild(loader); that's how im removing it and i can't just say loader.stop(); i might have to do something like this but i tried and it doesn't work.

loader.loaderContentInfo.addEventListener(Event.CO MPLETE, onComplete);

function onComplete(event.Event):void {
event.target.content.myFlvplayer.stop();
}

but that would just stop it when it finish loading, i think i need to embed a button in that swf file that controls the flvplayer and then linkage for actionscript and try to add it an event listner, the think is that it only works adding it through the loader once it's been just loaded, I think im not good explaining my self, i'll upload an example later, thanks.
Code:
function onComplete(event.Event):void {
     var swf:MovieClip=loader.content as MovieClip;
     swf.myFlvplayer.stop();
}
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 11-04-08, 02:51
Junior Member
 
Join Date: Sep 2007
Posts: 17
Rep Power: 0
Vudrok is on a distinguished road
Smile Re: after removeChild(); FLV sounds in the external file keeps playing...

Yeah I finally did it!! the problem seems to rely in some bad syntax in some of my code inside my application, for some reason flash debugger is not telling me that i had this error in my code, as soon as i fixed it, it is playing now smoothly, so if you ever get this kind of error check all of your code and when you fix it no more weird behavior from flash player!! thanks you all!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Flash CS3 Run External Javascript file martoon99 Actionscript 3.0 newbies 0 27-10-08 07:31
loading external text file in nested flash file angel3m HELP free utilities 0 16-07-08 22:18
Flash CS3 Stop an external swf file from playing davebennettcayman Flash CS3 eng 1 11-07-08 19:16
Flash CS3 Stop an external swf file from playing davebennettcayman Flash CS3 generale 0 10-07-08 18:35
Remove sound inside an external swf file loaded xoxo advanced Actionscript 3.0 4 13-01-08 11:12


All times are GMT. The time now is 14:42.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406