[Extendflash] Importing file "X" to Library

Julian Dolce jdolce at fuelindustries.com
Thu Nov 9 13:16:12 GMT 2006


If you are using Flash 8 you can use the command
document.importFile(fileURI [, importToLibrary])
 
The second parameter is a Boolean that you can set to true to import to
the library and not the stage. 
 
If you have to select a file for every fla you set up you could
fl.browseForFileURL( browseType [, title [, previewArea ] ]) to get the
file url and then use the importFile command. 
 
I hope that helps.

Julian Dolce | Senior Creative Technologist

 FUEL INDUSTRIES
tel: 613.224.6738 x241
www.fuelindustries.com
blog.fuelindustries.com <http://blog.fuelindustries.com/> 
www.fuelgames.com

  _____  

From: Hawley, Geoffrey M. [mailto:Geoffrey.Hawley at ngc.com] 
Sent: Thursday, October 05, 2006 1:50 PM
To: extendflash at flashguru.co.uk
Subject: [Extendflash] Importing file "X" to Library

 

I can't seem to find a way to trigger the "Import to Library" dialog box
with JSFL. Is there code for this or, if there isn't, is there any way
for me to emulate the Keyboard Shortcut I have assigned to
"File/Import/Import to Library..."?

 

I am setting up a bunch of FLAs in the exact same way, but each one will
have a unique audio file imported into it. I would like this to be
triggered as part of my "project_name_Setup" JSFL command. Any help
would be greatly appreciated.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.flashguru.co.uk/pipermail/extendflash/attachments/20061109/081fe2e6/attachment.htm


More information about the Extendflash mailing list