Skip to main content
Participant
June 6, 2013
Question

StageWebView not displaying external embedded SWF on Android

  • June 6, 2013
  • 1 reply
  • 812 views

Using AIR 3.7 I can load a remote web page with an embedded SWF (same domain). It works in the test mode of the authoring tool and as a desktop AIR application.

However, on Android the SWF content is not being displayed. It is requested from the server, but the area where it should show up stays white.

The strange part is that this site uses another invisible SWF to get some client system data. This swf is executed properly (it logs its execution through a javascript inteface). It has nothing on the stage and is loaded with swfobject and a size of 1x1 pixel.

So external SWFs do seem to work, but the one actually meant to display something doesn't load. It also uses an external javascript call when it finished loading, but that one never triggers either. No visible stage, no code execution happening. Why does one SWF work and the other doesn't?

Any idea what could cause this? Is there a way to debug external SWFs inside a mobile AIR app to maybe see what went wrong?

There's nothing out of the ordinary in the phones log, except a "Should not happen: No rect based test nodes found" message by webcoreglue. Not sure if it's related.

This topic has been closed for replies.

1 reply

ThStormAuthor
Participant
June 6, 2013

I have found the reason why one swfworks and one doesn't: It's the 1x1 pixel size. When I try to load that swf with any other size, it won't start at all. Now the stage of that swf incidentally really is 1x1 pixel, so I tried a bigger one with its exact stage size to rule out sizing issues. I also tried both the object tag and swfobject.embed, same result. Only SWFs with a size of 1x1 are loaded.

I'm completely stumped. Any suggestions?

Edit: Tried both the latest 3.7 SDK and the 3.4 that came with CS6. Same issue.

ThStormAuthor
Participant
June 6, 2013

This problem is not present on a HTC Desire HD with Android 2.2, only on my Galaxy Nexus with Android 4.2. Since the app doesn't run in the emulator at all for some reason, I can't say if it's Android or device related.