I'm trying something new right now, web apps on smartphones, while trying to shell a simple html I did, (just displaying a JS alert box) I got this error that phoneGap can't transfer something.
The simple fixed was just rename the folder that has space on it going to your xcode project.
Most the site I made were based on mootoolslibrary but when it comes to Overlay Images Scripts I prefer to use Light box v2 that also you can easily call with in Flash AS3 using the ExternalInterface.call using a bridge which is available for download - flashlightboxinjector unfortunately this is base on jQuery library so I tried to find a "Lightbox" similar Overlay Image function that has available javascript that I can call within Flash AS3 code so Slimbox I guess the easiest for me to follow, it got API documentation you can follow http://code.google.com/p/slimbox/wiki/MooToolsAPI.
//Begin AS3 Scriptimportflash.geom.*importflash.display.*//Mouse Events importflash.events.MouseEvent;
//External Commandimportflash.external.*;
//gradient background color var fillType:String = GradientType.LINEAR;
varcolors:Array = [0x330000, 0x333307];
varalphas:Array = [1, 1];
varratios:Array = [0x00, 0xFF];
var matr:Matrix = newMatrix();
matr.createGradientBox(150, 20, 0, 0, 0);
var spreadMethod:String = SpreadMethod.PAD;
this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
this.graphics.drawRect(0,0,250,200);
//gradient background color //Add handler Event
img1.addEventListener(MouseEvent.CLICK, onClickHandler01);
function onClickHandler01(myEvent:MouseEvent){//call Javascript CommandExternalInterface.call("Slimbox.open","/images/demon.png", "This Kanji means Demon");
}//End AS3 Script
ExternalInterface.call("Slimbox.open","/images/demon.png", "This Kanji means Demon");
This simply calls the javascript Slimbox.open function that will open an Overlay Image also make sure that parameters that "wmode" = "transparent" and "allowScriptAccess" = "always"
I used swfobject to render my Flash movies. So here how you implement the html code to make the flash work with slimbox.