How do I create a SWF to work with Adobe AIR? - actionscript-3

For stability reasons, I'd want to create an Adobe AIR application, that uses a local SWF placed in the same directory. I haven't figured out, how to create a dedicated AIR application for one, but I would appreciate help on how to move forwards! I haven't found any help or tutorials as to help with doing this. Tried ActionScript way in Adobe AIR SDK, but ran in to problems, that I couldn't figure out or solve.

Related

Multimouse functionality in AS3

I am basically looking for a way to use multiple mouse plugged into one device so that multiple pointers can be seen and operate. This is for e-learning purposes, the goal is to have multiple students play an educational game in a classroom that has only got one PC but upto 10 or more mouse connected to a PC.
I did something similar a couple years ago in microsoft XNA framework. Currently I am developing applications and games in Adobe Flash AS3 and would like to find out if there is anyway that we can have multiple mouse functionality in a flash application?
Any sort of help would be great. Thank you!
For the web, this is probably impossible. If your flash project run on Adobe Air, you can add native code to handle this kind of functionality or you can use a local socket server to send information over socket to your swf or air application.
Example for native extension

What is the best way to use SWF library runtime (AIR)

I am building a project in AIR that going to run third party SWF. What is the best way to instruct people creating those SWF files?
I don't understand how signing is going to work here. to avoid that I been trying to create a library project in Flash builder 4.7, how ever I do not see an option to export it as SFW file, nor I know a way to share SWC in run time.
So how do I do this?

Importing and playing swf files in FlashDevelop

Does anyone have any sample code on how to take an swf, import it into FlashDevelop and play it? I'm working solely with FlashDevelop and need to know this.
What programs can you create swfs with apart from Adobe Flash CS5/6. I need a free program to create them. If that isn't possible other free workarounds would be greatly appreciated. Thanks.
Read about "Embedding asset types" here: Embedding asset types , especially "Embedding SWF files" part.
What do you mean by "create swfs"? Creating of vector animations and graphics? If yes so check this out: Synfig Studio

Using Bluetooth ANE for Android

I'm relatively new to flash, air and AS3 so I'm sorry if this comes of as a beginners question. I have made an application in AIR to run on windows and communicate with my atmega8 chip through serial communication via serproxy.
Now I want to port that application to android to perform the same basic functions but communicate to the atmega8 via bluetooth. So I created a new Air for android file in Flash CS6 copied my code from my previous application excluding the communication through sockets part and created an apk which ran on an android phone:). It did everything except the communication as expected.
Now I have been trying to implement the as3breeze.com/bluetooth-ane and use it to communicate but I'm not too sure how to go about the whole thing. I have imported the ane through actionscript settings and have implemented the classes but when I try to test I get this error.
The content cannot be loaded because there was a problem loading an extension: Error: Extension namespace is invalid for C:\Users\AppData\Local\Temp\Tmp_ANE_File_Unzipped_Packages\AndroidBluetooth.ane
So after some searching I found posts talking about as3 sdk and flash builder. Do I really need all these things or can I make my bluetooth app work some how with just flash cs6? Also what exactly does my error mean and how can I solve it. Thanks in advance for any help. I have been searching so a solution to this for days and I either get an explanation that does not work or I lack the knowledge to understand.
The path that can't be accessed makes me believe you haven't extracted the ANE (basically you're trying to access a temporary directory). Try extracting the ANE file to somewhere, like My Documents or wherever your flash project is, and include (in the actionscript settings) that path instead.
Hope it helps.

IDE tools for Flash/ActionScript swf creation

I am not a Flash/ActionScript developer but I need to achieve a very small task in Flash. I need to display user audio input level in Flash. I found that I can do that using ActionScript (according to this).
I have no idea what tools I need to use and generate a SWF file.
Any help highly appreciated.
You can use the Flash Pro IDE (eg Flash CS6), Flash Builder (Adobe), or FlashDevelop. There are also a few more like FDT and IntelliJ.
If this is a quick and dirty no/low budget scenario for you, I would recommend FlashDevelop.
If speed is of the utmost importance and you don't have time to learn, then Flash Pro CS~ would be a good bet.
If you're an experienced coder and will be using the tool a fair bit, Flash Builder (as a commercial product) is a good bet. Though FlashDevelop is also a good open source alternative to Flash Builder.
They all have tutorials on their websites on how to get your environment setup and start creating swfs.
http://www.flashdevelop.org/
http://www.adobe.com/products/flash-builder.html
http://www.adobe.com/products/flash.html
http://fdt.powerflasher.com/
http://www.jetbrains.com/idea/