Multimouse functionality in AS3 - actionscript-3

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

Related

How do I incorporate both actionscripts and flash animation into a flash builder project

I am planning on making a casual educational game and was looking to do that on the flash platform for broad exposure. I am wondering what are some guidelines to determine if it is warranted to create the project purely in flash or puruse a combined Flash/Flash builder project?
How can I include all my graphics and animation files as well as my AS classes into a builder project? Does it even make sense to do that. I read that creating UIs and connecting things is simpler in Flash builder and I plan to have some interaction with the client and central server where some basic data wouold be stored? Is this a good candidate for a combined flash/flash builder approach?
Also I want this to be launched on mobile and desktop platforms if that makes a difference
Thanks in advance...
You can export all assets, made in Flash IDE to .swc file, and then attach this file to FlashBuilder Project using "ProjectProperties"->"Actionscript Build Path"->"Add SWC..." dialog. After-that you'll be able to create instances of the animated symbols within Flash Builder.

Flash Air Android transfer data via bluetooth

it is possible to transfer data via bluetooth in Air Flash with as3? I want to make an application that is able to share data like some strings between 2 devices. I search on google, but I don't found same concret thing. I'm waiting for same solutions. Thank you very much!
Not possible using AIR, but it might be possible using an AIR Native Extension (ANE). Basically, you would need to do the data transfer via native Android (Java) and the ANE would be the bridge between the Java and the ActionScript. I searched for an ANE a few weeks ago to do this while scoping out a project and was able to find a few through Google, but I didn't test any of them myself.

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.

Migrate from Flash AS3 to AIR

I've been developing a project in AS3 but decided to switch to AIR instead, as I found out it's impossible to save files on user's hard drive without prompt appearing. My question is, what changes do I have to expect? is the code written in same AS3 syntax/style? Did instantiating objects / drawing shapes / positioning system / stage change in AIR? thanks.
Everything is the same from a code perspective, except that the AIR SDK includes quite a number of new APIs that are less restrictive and geared toward application development since the deployment target is no longer a web browser.
If you can, you should take a day or 2 and read thru the documentation so you will know what's available to you. Make sure to select the most recent versions of AIR and Flash Player under Packages and Class Filters: Runtimes so the docs are populated with what you need.

How to integrate, run or combine a Flash game with my Titanium Appcelerator app?

I have developed three different games in Flash (Action Script 3) and they run well on my smartphone when I export them via Adobe Air.
I am creating an app over Titanium, and I intend to integrate these three games inside my main Titanium app. The problem is that Adobe Air only exports APKs files.
So I would like to know if there is anyway of making the games run inside the main app, without the need of calling external apps on the market, for example.
Thanks very much
One way to achieve this would be use modular architecture. Meaning, the Main App would act as a wrapper for the three games.
In other words, you can load external SWF files (the games) in your main app using the SWFLoader class. Here is some more info about this class and how to use it, as well as module-wrapper communication info:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/SWFLoader.html
Have great day.