AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Game Developer Zone / Scaleform/Mobile Development / Native extensions
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Native extensions
Rate this thread
 
69507
 
Permlink of this thread  
avatar
  • piotrO82
  • Posted: 22 July 2012 10:44 AM
  • Total Posts: 17
  • Joined: 16 July 2012 10:48 AM

Is there a way to use native extensions in mobile SDK like In-App-Purchase, Gyroscope etc?

-Thanks



Replies: 0
avatar

Scaleform apps run “embedded” en native application so you don’t need to use native extensions; you can directly use native code and then communicate with your game.



Replies: 0
avatar
  • piotrO82
  • Posted: 23 July 2012 12:34 AM

So you get the full source code with mobile SDK?



Replies: 1
/img/forum/light/default_avatar.png

Don’t think so, but you use native code to initialize the Scaleform player and load your .swf files. Then, it’s easy to communicate between the ActionScript code and the native code of your application.

Author: miguelSantirso

Replied: 23 July 2012 04:07 AM  
avatar
  • bbigger
  • Posted: 23 July 2012 08:15 AM

I’m somewhat fuzzy on what is being asked here, so I’d like to re-phrase and ask again if you don’t mind. I’m building a pure Actionscript game- are we able to use the Camera, Camera Roll, Gyroscope, Game Center, Accelerometer, etc. with pure Actionscript code, or must we figure out some ObjectiveC code to make them talk together?



Replies: 0
avatar

I"m also trying to use the Flash accelerometer support, but it just doesn’t run on the device - it breaks all the code actually and nothing happens when accelerometer class is added to the game.

I can’t find anything about this on the documentation. Any ideas?

-- update 1
I’ve just tried the Gyroscope native extension for Flash CS6 and the same thing happened. I’m trying to upgrade the SDK that was just released today to see if it will fix this.

-- update 2
I’ve installed the new SDK update and accelerometer still doesn’t work on the device.



Replies: 0
avatar

Hi everyone,

Currently, Scaleform only supports some basic device events like sleep, wake, and orientation change, and we have built in Game Center integration. But we do not currently read accelerometer events, camera, or gyroscope events. We could build extensions for those though, or you, the customer could do so in native code.

At present, my best answer to this issue would be for those of you who are interested in Scaleform building these extensions in would be to let us know about it on UserVoice here:

http://scaleformautodesk.uservoice.com/forums/168290-ios-android-development

Start a new topic specific to this feature request. Thanks!



Regards,
Matthew Doyle

Replies: 0
avatar

Please vote if you find this useful to be added to Scaleform:
http://scaleformautodesk.uservoi...ort-for-native-extensions



Replies: 0