Skip to main content
DJ Gecko
Inspiring
December 2, 2013
Question

How to vibrate?

  • December 2, 2013
  • 1 reply
  • 4546 views

I can not get any example I find to work.

Often I see that I have to add this to the application discriptor xml:

<extensions>

    <extensionID>com.example.Extension1</extensionID>

    <extensionID>com.example.Extension2</extensionID>

</extensions>

But when I do that, I get a parsing error. I've tried putting it in various place. Why don't the instructions ever say where this node belongs?

Does anyone know of a detailed step by step instructions for setting up an app that vibrates? I teach and many of my students what use their devices vibrate abilities. They are so frustrated that they want to ditch Flash. I think I've got their projects working as far as including swc and ane files, I don't get errors. But the vibrate just wont work and I don't know where I put this node.

Please, Adobe, write detailed instructions for this. It's a common desire amount developers. I apperciate the ane approach, it's great, but you need to explain at a level anyone can understand and with no assumptions. Please display an example of this node being used.

Thanks!

This topic has been closed for replies.

1 reply

Inspiring
December 3, 2013

Why don't the instructions ever say where this node belongs?

It must be placed inside <application></application> node.

You can find any open-source air application with ane and see how it works inside. For example - https://github.com/illuzor/Simple-Android-Game/blob/master/application.xml

DJ Gecko
DJ GeckoAuthor
Inspiring
December 3, 2013

Thanks for replying. When I put the <extensions> node into the <application> node I get a parse error. I'm using Flash Pro CC and trying to publish a iOS AIR app. For the record, I prefer Android, but a lot of people use iOS. Are there any iOS examples of using vibrate?

I teach college students, and the frustration they are having with ane files (extensions) is making them regret using Flash to develop for mobile. I understand and appreciate Adobe's approach, but they need to write a very detailed step by step tutorial on how to use ane files in a project, for both Flash Pro and Flash Builder. Otherwise they are going to lose a lot of casual developers, I have lost a few students to other cross development tools.