[Extendflash] Close active document document?

Barbara Snyder brsnyder at macromedia.com
Mon Oct 31 09:37:21 PST 2005


fl.getDocumentDOM() always returns the active document. I'll add a
comment to this effect in the Document object intro page in LiveDocs.

________________________________

From: extendflash-bounces at flashguru.co.uk
[mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Alias
Sent: Monday, October 31, 2005 6:42 AM
To: extendflash at flashguru.co.uk
Subject: Re: [Extendflash] Close active document document?


Aha, you can specify the document by reference comparison as well? Cool
:) I was trying to get the index number...

Thanks guys!

Alias


On 10/31/05, Muzak <p.ginneberge at telenet.be> wrote: 

	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
	
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20051031/3fd52b58/attachment.htm


More information about the Extendflash mailing list