A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problem unloading external SWF

  1. #1
    I know nothing.
    Join Date
    Feb 2008
    Posts
    315

    Problem unloading external SWF

    I'm having a problem unloading an external SWF from my container clip. I've searched all morning for a fix to this problem, with no clear resolution. I thought this was originally a xml update issue, but it's not. A lot of talk about removing child nodes, but I'm not sure what do do there.

    Any help here would be greatly appreciated!! :wings:

    Here's my code:

    PHP Code:

    function loadXML(loaded) { 
        if (
    loaded) { 
            
    xmlNode this.firstChild
            
    swiff = []; 
            
    total xmlNode.childNodes.length
            for (
    i=0i<totali++) { 
                
    swiff[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue
            } 
            
    firstswiff(); 
            } 
        else { 
            
    content "ERROR: Not loaded!"
        } 


    xmlData = new XML(); 
    xmlData.ignoreWhite true
    xmlData.onLoad loadXML

    // make a timestamp, add to xml url to force fresh data
    vers = new Date().getTime();

    xmlData.load("http://www.domain.com/ondemand.xml?vers="+vers); 

    _parent.my_brian = new MovieClipLoader(); 
    //var k:Number = 0; 
    function firstswiff(){ 
        
    _parent.my_brian.loadClip(swiff[0], _parent.container_drawingin); 


  2. #2
    I know nothing.
    Join Date
    Feb 2008
    Posts
    315
    Ok - so at the end of my timeline, I have:

    PHP Code:
    _parent.my_brian.removeMovieClip(swiff[0], _parent.container_drawingin); 
    This doesn't seem to work, but should. Am I missing something?

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