A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Removing embedded swf

  1. #1
    Member
    Join Date
    May 2009
    Posts
    57

    Removing embedded swf

    I have been searching all over about removing embedded swf but couldn't find any solution.
    Here is my scenario
    Code:
    [Embed(source="hero.swf")] 
    var Hero:Class; 
    
    var hero:Sprite = new Hero(); 
    this.addChild(hero); 
    
    //now say after some button click I have to remove this swf this.removeChild(hero); 
    
    //the swf goes away but its sound keeps on playing
    So is there any method to completely remove it just like Loader.unloadAndStop().
    Any help will be greatly appreciated.

  2. #2
    Member
    Join Date
    May 2009
    Posts
    57

    The solution is found

    If anyone is interested the solution can be found at following link

    http://www.kirupa.com/forum/showthre...01#post2546301

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center