[Extendflash] Close active document document?

Muzak p.ginneberge at telenet.be
Mon Oct 31 15:30:31 PST 2005


var currentDoc = fl.getDocumentDOM();
if(currentDoc != null) {
    fl.closeDocument(currentDoc);
    // close without asking to save changes
    // fl.closeDocument(currentDoc, false);
}

regards,
Muzak

----- Original Message ----- 
From: "Alias" <aliasrob at gmail.com>
To: <extendflash at flashguru.co.uk>
Sent: Monday, October 31, 2005 2:39 PM
Subject: Re: [Extendflash] Close active document document?


Hi Muzak,

Actually, I already have - the problem is that you need to specify *which*
document to close, hence the "active" in the subject line.

I need a generic script that will run and close the document it's running
on, or a way of determining the index of the current document - sorry, I
didn't make that clearer.

Cheers,
Alias




More information about the Extendflash mailing list