Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have heard about Flash Builder 4.5.1. As I have understood, one can make an application using Flex with Flash Builder 4.5.1 and also export the release build for iOS, Android and Blackberry.

Is it possible to include Bluetooth functionality in an application this way?

share|improve this question
add comment

3 Answers 3

up vote 8 down vote accepted
+50

Apparently for iOS specifically, there is no Bluetooth API exposed via the SDK. While the rest of this answer may apply to other platforms, you aren't going to be able to make it work in the iPhone.

For other platforms... as far as I know there's is no API for Bluetooth access in Flex. You have a few other options though:

  • This document describes how to use a third party tool or library to interact with Bluetooth (specifically to interact with a Wii remote, but you could presumably extend that to more general purpose applications).
  • AIR supports native extensions, which you may be able to use to access the native Bluetooth functionality on each device.

Both options may require you to handle the cross-platform nature of the problem yourself, however (unless you use a third-party Bluetooth API that is itself cross platform).

You may also want to check out this blog post, which goes in to some detail about how a user achieved a similar thing to what you may be asking for.

share|improve this answer
add comment

From my experience I don't think there is a way through flash builder.

share|improve this answer
add comment

Not with Flash Builder, I strongly recommend learning Objective C it gives you many features and advantages such as the gamekit multiplayer tools, I recommend a visit to the apple iOS developer site (http://developer.apple.com/technologies/ios/). Here is a quick tutorial of Objective-C.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.