Skip to main content
Participant
Apr 19, 2013 1:11 PM UTC
Question

Prevent errors when previewing app including Vibration ANE on desktop

I am making use of Adobe's Vibration ANE. It works fine when I deploy on my device but throws an error when I test my movie in the Flash IDE.

The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.adobe.Vibration is not supported for MacOS-x86.

This is because desktop isn't supported by the ANE. I am looking for an efficient way of being able to test the rest of my app on desktop and have it include vibration functionality when deploying on my device. I don't want to have to manually remove the ANE each time I test the app on my desktop and add it each time I deploy to my device. Could I, for example, somehow add 'fake' desktop support to the ANE? To clarify, I don't need it to do anything on desktop, I just want to be able to test the rest of my app.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

natural_criticB837
Legend
Apr 24, 2013 10:39 AM UTC

You should be able to do the following:

- rename .ane to .zip

- extract content

- mess around with the extension.xml to reference your empty fake class on desktop

- repackage the ane using the compiler (I think rezipping alone does not work for checksum security reasons, though you could try)

Translate
Colin Holgate
Inspiring
Apr 24, 2013 12:15 PM UTC

Can you say how you would do that? For say just an iOS and on a Mac.

Translate
natural_criticB837
Legend
Apr 24, 2013 1:39 PM UTC

In the extension.xml you can set up one class for desktop (PC/Mac) that is used in addition to the already existing class that is used on iOS. I dont know all the settings by heart but its really self-explanatory.

Translate