Customize standalone AIR runtime folder package - actionscript-3

I'm looking to figure out if there is a way to customize the folder structure when packaging an AIR app with the captive runtime?
As it is right now the folder structure is as follows:
Projectname_standalone [parrentfolder]
Adobe AIR [folder]
META-INF [folder]
other folders for images and such [folder]
mimetype [file in Projectname_standalone folder]
projectname.exe [file in Projectname_standalone folder]
projectname.swf [file in Projectname_standalone folder]
What i would like to get is something along the lines with this:
Projectname_standalone [parrentfolder]
data [folder]
Adobe AIR [subfolder of data]
META-INF [subfolder of data]
other folders for images and such [subfolder of data]
mimetype [file in data folder]
projectname.exe [file in Projectname_standalone folder]
projectname.swf [file in Projectname_standalone folder]
Has anyone any experience with this?I'm working in Flashdevelop, but I assume this would also apply to both Flash Pro and Flash Builder and include some modification of the AIR SDK.

Related

need help compiling a folder named "build"

need help compiling the build folder
Inside of the build folder is a bunch of json files and .tfx.
Expecting a single file to come out that i can ./ the file

python3 when saving a file it doesn't save to same directory as the EXE pyinstaller

I have used Pyinstaller to pack my script as onedir EXE, then installed to Program Files folder. i used this line to save a json to a file:
json.dump(data, open("data_file.json",'w'))
on some computers the file saved to where EXE is which is what i want, but others save it to different locations.
so when i try to get the file using json.load it says not file found:
json.load(open("data_file.json"), encoding="utf-8")
How can i solve this issue so the script only save files to the same EXE directory?
The cause of the problem is related to writing permission on windows. so instead of writing app data to the Program Files folder which is not recommended, you need to write the data to APPDATA folder.
i have used the code posted by giuliano-oliveira and it works perfectly cross platform.
get_user_data_dir

Exclude json config files in webpack

I am working on an Electron app that have a few config files that I do require on in the app. The problem is that when webpack my app all the config files are bundled into the bundle.js file but I would like the files to still be accessible to the user without hacking in the bundle.js file. Is there a way to exclude these files in webpack but still do a require on them?

Can't import .ane file into Flash CC

I've been trying for days now to import an .ane file into a Flash CC project in order to use admob banners with it.
I've searched everywhere and I just can't make it work.
Here's what I'm doing exatcly:
I downloaded the .zip file from this github: https://github.com/lilili87222/Admob-ANE
Inside the .zip file, I got the "admob_all_in_one_6.12.2.ane" file only and put it into a "lib" folder, together with my project .fla.
Then, inside Flash CC I open the "Advanced ActionScript 3.0 Settings" window, navigate to the "Library Path" tab and click the "Browse to Native Extention (ANE) File" button.
I select my .ane file inside the lib folder and click ok. I try to compile the project, and I get this error:
"The content cannot be loaded because there was a problem loading an extension: Error: Extension namespace is invalid"
Any ideas?
Thank you
I got the same problem, but after I have updated the Air SDK, it works very well...
Follow this step to update Air SDK.
"namespace is invalid", check the AppName-app.xml
<application xmlns="http://ns.adobe.com/air/application/15.0">
Change your Adobe AIR SDK for a newer

how to find library.swf file in adobe air library project

I am creating ane file for my requirement. I Crated Actionscript library project and generated xxx.swc file through build time, but I can't able to generate library.swf file in Actionscript libary project within the bin directory or in the project directory. Even though my Actionscript library project enabled include Adobe AIR libraries.
Can I create ane file without library.swf file? or please give me steps to get library.swf file.
Have you googled it before?
swc file is a zip file, just rename it from *.swc to *.zip, and unzip it, you will find library.swf.