Copy link to clipboard
Copied
Hi All,
I need to detect the filename of the FLA that I am compiling.
The FLA is automatically generated by a tool I am making to process optimized and localized video. It needs to load an XML file with the same name.
The name gets parsed to extract the languge code.
It will be automatically batch compled with other paired files to create SWF's which are also batch processed into customized video with captions.
I am embedding language specific fonts and XML data in the SWF.
Long term, I think I will do all of this SWF to MP4 comversion inside my tool.
I thought I did this before but I only found similar functions I did for SWF's using Director, Jugglor, SWF Studio, mProjector and Zinc.
Thanks,
Jim
Copy link to clipboard
Copied
why are you asking here? you're not expecting actionscript to detect a fla file's name, are you?
that would seem to be a question asked about whatever program you're using to create the fla. what program(s) are you using to create your fla files?
Copy link to clipboard
Copied
It greatly complicates the whole process not being able to do this basic function. Getting the filename and path are important functions. Why wouldn't you want to do stuff like this.(Why does AS have object name access alternative 'this'? Because it simplifies access to objects.)
If I can't do this, now I have to duplicate hundreds of files for every project. I have 35 languages going up to 42 soon. Projects have 7-30 movies now. 35 times (say) 10 (to make the math easy = 350 seperate FLA builds. At 5 min. to modify each manually, it would be 6 hours I wanted to leave the XLIFF XML language file just as it would be used by the Strings Panel. Each one the Project Movies has a seperate XML file that gets shared between the 35 language files.
I have to document and allow others to work with the tool and output files. It just a major pain.
I will look into JSFL again - thanks Amy B. I am going to use G.Skinner's batch compiler (JSFL) for the second part. I have a 3rd party tool for the SWF to MP4 that does batch mode. It would work easier if I could have all files in one directory too.
Thanks for the input !
Jim
Copy link to clipboard
Copied
your fla files are the source documents that publish your swfs. your swfs use actionscript, not your fla files.
so, it makes no sense to talk about fla files using actionscript.
if you're trying to use actionscript to detect the swf file name, that's built-into actionscript. use the loaderInfo's url property:
parseThisF(this.loaderInfo.url);
Copy link to clipboard
Copied
Would it work to be able to get the swf name? If you're looking for a JSFL solution, you might be better off asking in the Flash Exchange Extensions forum.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now