Skip to main content
jeezzer123
Participant
September 3, 2014
Question

Using a ANE containing a GLSurfaceView with a Loader

  • September 3, 2014
  • 2 replies
  • 665 views

I have created an ANE (for Android) so I can use some external java code I have written. This code is used to display OpenGL graphics, and it also creates a GLSurfaceView on which to display this.

This setup works fine, and I can call the ANE to load up the GLSurfaceView from my Air application without a problem. However, I  want to use Air's Loader class to display a SWF file in front of the GLSurfaceView. I have managed to get this to work, but the background of the Loader view is always white - I assume this is because the 'background' is actually the root SWF. I really want this background to be transparent so it will show my GLSurfaceView. Is there anyway to accomplish this? I have tried setting background transparencies on all the views in the ANE, setting alpha's on the views in Air and setting 'transparency' to 'true' in my Air XML, but with no success.

This topic has been closed for replies.

2 replies

Known Participant
October 13, 2018

you can not display adobe air displayobject in front of native android View object.

if you can accomplish this then you can just addAdobe air root view on top of android native view

Participant
March 7, 2016

I have no answer but I'm very interested how did you create glsurfaceview and attached to the stage. Is it through new activity or did you add it to the launcher activity.