Area :: Header
Meet the Experts Webinar
Learn how Black Forest Games rebooted the classic C64 platform game “Giana Sisters” from 1987 using Autodesk 3ds Max®.

Scaleform/Mobile Development

Reply
Contributor
piotrO82
Posts: 20
Registered: ‎07-16-2012

Native extensions

66 Views, 7 Replies
07-22-2012 02:44 PM
Is there a way to use native extensions in mobile SDK like In-App-Purchase, Gyroscope etc?

-Thanks
Please use plain text.
Valued Contributor
miguelSantirso
Posts: 61
Registered: ‎07-11-2012

Re: Native extensions

07-23-2012 02:29 AM in reply to: piotrO82
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.
Please use plain text.
Contributor
piotrO82
Posts: 20
Registered: ‎07-16-2012

Re: Native extensions

07-23-2012 04:34 AM in reply to: piotrO82
So you get the full source code with mobile SDK?
Please use plain text.
Valued Contributor
miguelSantirso
Posts: 61
Registered: ‎07-11-2012

Re: Native extensions

07-23-2012 08:07 AM in reply to: piotrO82
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.
Please use plain text.
Contributor
Posts: 25
Registered: ‎02-19-2013

Re: Native extensions

07-23-2012 12:15 PM in reply to: piotrO82
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?
Please use plain text.
Contributor
JFSebastian
Posts: 13
Registered: ‎06-26-2012

Re: Native extensions

07-23-2012 07:46 PM in reply to: piotrO82
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.
Please use plain text.
Moderator
MatthewDoyleArt
Posts: 660
Registered: ‎03-22-2011

Re: Native extensions

07-31-2012 01:50 PM in reply to: piotrO82
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
Please use plain text.
Contributor
JFSebastian
Posts: 13
Registered: ‎06-26-2012

Re: Native extensions

08-01-2012 03:55 PM in reply to: piotrO82
Please use plain text.