List Info

Thread: Importing file "X" to Library




Importing file "X" to Library
user name
2006-11-09 18:16:12
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
www.fuelgames.com


From: Hawley, Geoffrey M. [mailto:Geoffrey.Hawleyngc.com]
Sent: Thursday, October 05, 2006 1:50 PM
To: extendflashflashguru.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.

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )