AS3 How to import a .dll? - actionscript-3

Is it possible to import a .dll file into an adobe air game using Actionscript 3?
Thinking about using Discords Game API but that requires the game to import a .dll file, and I'm unsure if that's possible using adobe air and as3

Related

adding a fla file from ported flash project to haxe (openfl)

What I want is to convert a flash project to an openfl project (which is written in haxe) in order to use its cross platform feature. I used as3hx to convert actionscript classes of a flash project to haxe. Then I fix compile errors by hand, and fix a run time error too. When I compile the project, I see a blank black window, which means that graphics are not loaded. I convert the code and code is working fine, but I don't know what should I do with graphics. There is a fla file in flash project, which I don't know how to convert it to openfl.
Adobe Flash CC, which is the program used to write flash project, does the linkage of a symbol to a actionscript class, and I don't know how to do this in openfl.
In openfl, as far as I know, giving graphics to a class is done like this :
import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.Sprite;
import openfl.Assets;
class Main extends Sprite {
public function new () {
super ();
var bd:BitmapData = Assets.getBitmapData("img/openfl.png");
var b:Bitmap = new Bitmap(bd);
addChild(b);
}
}
Where the openfl.png is a graphical file in a special folder named img, which declared to be an assets path.
I use HaxeDevelop IDE.
Thanks for any help
You can't use FLA files inside OpenFL, there's only support for SWF files exported by Flash from those FLA files:
http://www.openfl.org/learn/tutorials/using-swf-assets/
OpenFL's "native" SWF playback functionality is limited but for simple graphics and animations it's usable as long as you figure out what features are actually being supported and limit yourself to those.

How to Add MX.Core Package ActionScript in SWF/FLA file?

I'm trying to add ActionScript 3 in FLA file using Flash Professional, but I am getting error that Packages cannot be nested. I am completely new but It's necessary for me to add that code in FLA/SWF file, I guess it will work with Flash builder but again I have no idea to edit FLA or add ActionScript using Flash Builder.
Please Help!

What is the directory of ActionScript 3.0 classes files?

Im trying to find transformGestureEvent class file on my windows, have looked through Adobe Flash CC folder and also appData but couldnt find it.
TransformGestureEvent is part of the built-in classes of Flash Player, AIR and Flash Lite.
You can find it on the package: flash.events

Adobe Air how to bind ANE files

I'm thinking if is possible to connector to bind somehow many ANE files?
For example if I have Vibration ANE , GoogleMaps ANE and AdMob ANE... I have to import each ANE, one by one in my project. My question is: could be there a solution to connect ANES togeter and import only one file and inside this file to be all my ANE...??
Thank you.

How to import actionscript library and call function?

I need to develop something with data structure and how do I import the library as3ds (http://code.google.com/p/polygonal/wiki/DataStructures) and call the function of the library? It is in swc file format for the new version. While the older as3ds is in as format. I've no idea how to call using the swc. Anyone can help me please?
just place the .swc file where ever you want (usually in your own developer library) and target its path in ActionScript 3.0 Settings of Flash CS5: File > ActionScript Settings... (see attached screen shot).
you could also just place it in with your other library swcs. Flash CS5/Common/Configuration/ActionScript 3.0/libs/
if it's a component, create a folder for it and place the folder in the components folder: Flash CS5/Common/Configuration/Components/