AIR 1.5 mx:HTML

Hi,
I'm having a major issue with AIR 1.5 runtime.
It seems that it's impossible to display SWF content in
mx:HTML component while being in FULL_SCREEN mode.
Once I leave the FULLSCREEN mode (by pressing ESC) the SWF
content loads.
Is this a bug ?
Is it related to the latest WebKit version ?
Thanks for your help !

Hi vdimercuri,
I found something in the
Release
Notes.
On page 20 we can read :
quote:
Limatations using SWF in HTML full screen non-interactive
mode.
SWF content in HTMLLoader in full screen does not render
correctly.
This quote is from the "Known issues & limitations".
After a quick test it seems that wether you are in
FULL_SCREEN or in FULL_SCREEN_INTERACTIVE have no impact. The
result is the same.
Now I would to know if it will be fixed and more importantly
when !
If it can help, here's my workaround :
private function addedToStageHandler( iEvent:Event ):void {
//stage.scaleMode = StageScaleMode.NO_SCALE;
//stage.align = StageAlign.TOP_LEFT;
if( flash.system.Capabilities.os.match("Windows") != null ){
Application.application.width =
Capabilities.screenResolutionX;
Application.application.height =
Capabilities.screenResolutionY;
} else {
Application.application.width = nativeWindow.width =
Capabilities.screenResolutionX;
Application.application.height = nativeWindow.height =
Capabilities.screenResolutionY - 23;
nativeWindow.x = (Capabilities.screenResolutionX -
Application.application.width) / 2;
nativeWindow.y = 23;
try {
//stage.displayState =
StageDisplayState.FULL_SCREEN_INTERACTIVE;
} catch ( iError:Error ) {}
There's one major flaw though.
On Mac, the dock and the menu bar will appear on top of the
application.
I didn't find out a solution for the dock. For the menu bar,
I tipped down the nativeWindow of 23 pixels.
This is my "short term" workaround.
I'm still searching so please keep me post I you have any
development on your side.

Similar Messages

  • AIR apps developed using HTML+Javascript

    Hi…
    I am working on Adobe AIR.
    And now I have 3 options to develop AIR applications 1)Flex
    2) Flash 3) HTML+javascript.
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    One of the reason I know is Flex used for Rich UI
    applications
    Is there any list of requirements for which one of the 3
    option is most suitable to use.
    And I have some more questions.
    1) Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    2) Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive (I have developed 1 application that can
    detect the Network connectivity and periodically reports the status
    I want the same in case of USB(plug & play) connectivity)
    3) I have one AIR application that has one HTML form on click
    of button I am posting the form Data to Java Servlet using
    “air.sendToURL()” as shown
    <script src="AIRAliases.js" />
    <script>
    function sendURL()
    var url = "
    http://localhost:8080/InvokingServlet/Registration";
    var variables = new air.URLVariables();
    variables.username = document.f1.username.value;
    variables.password = document.f1.password.value;
    var request = new air.URLRequest(url);
    request.data = variables;
    air.sendToURL(request);
    alert("Data has been added to Remote DB...");
    </script>
    The data goes to Servlet and then Servlet thru Jdbc
    Connectivity adds the data to database “MySQL” database
    named “user”
    If I read the data from database and print in Servlet it
    displays that to “tomcat server window(log)” But I want
    the data from Servlet to send back to HTML page where I can display
    it on the same HTML page where user entered his details. So even if
    I put the result into some Scope like session or request, but Can I
    read that it in HTML+Javascript page .
    [email protected]

    quote:
    Originally posted by:
    pravinpatil23
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    This question gets asked about once a week. You
    can find my latest answer
    here
    and a little searching will dig up more opinions.
    quote:
    Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    An AIR application isn't hosted on a server, so all web
    servers are "foreign" to your AIR application. An AIR app does get
    downloaded from a server, most of the time, but it doesn't maintain
    some kind of special connection to that server.
    Because of this, there are no cross-domain restrictions in
    AIR like you have in a regular web browser.
    quote:
    Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive
    AIR does not allow low-level system access, and has very
    little in the way of platform-specific capabilities. So, you'd have
    to use a high-level, platform-agnostic way of checking for the
    drive, such as by looking around to see what files are available.
    Things like USB insert notifications are way outside the scope of
    AIR.
    quote:
    I want the data from Servlet to send back to HTML page where
    I can display it on the same HTML page where user entered his
    details.
    That question isn't on-topic here. Ask on a forum dealing
    with JSP servlets.

  • AIR 3.0 mx:HTML embedded fonts in external swf - silent craziness

    The recent upgrade to AIR 3.0 has hosed our application.  We rely heavily on an mx:HTML control to render the UI of our application using javascript and HTML templates.  Everything has been working great in production for months, until Adobe released AIR 3.0 last week.  We use embedded fonts in our application that our defined in an external .swf (loaded at runtime).  The HTML control loads a .css file that references the name of our embedded font "ArialEmbedded" and it all worked great.  But now, with 3.0 it does not respect anything in the external .swf.  We get the default Times New Roman font in all of our content, and the app crashes with reliability (in debug mode and release mode) without any exceptions being thrown.
    Using the Windows Debugger, I have been able to track it down to this call consistently - Webkit!cairo_pattern_get_type with an Access Violation erros - c0000005 . 
    After some Googling, it seems webkit uses Cairo for the graphics rendering portion of the library, and in this case it is trying to render a specific color.
    1) I've tried forcing the moduleLoader on the HTML control to use the moduleLoader of the parent Spark component - to no avail.
    2) Did something change with style management and loading external .swf files?
    3) Any other help?  At this point, I have no idea where to begin.  When it crashes, usually during the rendering of items in a grid the AIR process will grab about 2GB of RAM all at once and then stop working with the windows process stopped working dialog.
    Thanks for any help,
    Steve

    Hi,
    Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the issue. Finally, once the bug has been added, would you mind posting back with the URL so that others affected can add their votes and comments?
    Thanks,
    Jian
    Adobe Flash Runtime team

  • How to embed and play mp4 video in HTML AIR application?

    Adobe Air HTML / JS application compiled from SDK command line.  I am not using flash pro or flash builder to create the application.
    I was using dreamweaver but the dw air plugin seems to have stopped being developed so I switched to using the command line tools.
    I am creating desktop air application that has embedded mp3 audio and also I want to embed mp4 video.
    Using jQuery and the AIR js plugin I am able to play audio via buttons hooked up via jQuery and the AIR js plugin from the SDK.
    What I am doing is creating proofs for clients in AIR and sending link to the client to download the application.  I embed the media because I do not want to place them on a website where it could possibly be seen by non-clients and get picked up in the SE's.
    I am finding it hard to understand the AIR process for playing video.  I read that it is the same procedure as audio but it does not work.
    If it was hosted on youtube or somewhere embedding the web player would be simple, just copy paste some code and it works.  When actually embedding the video say mp4, f4v, mov, wmv or similar file formats I can't get AIR to play the video.  Audio, not a problem it works great.
    I would like to do the following with video.
    Embed the actual file in the AIR app.  I can do this, it gets embedded.
    Play, pause and stop the video - Can't get this to work
    Get the current stop point and be able to start the video by sending a start point - This is all working with audio I just want to do it with video.
    I have searched the forums, the search engines, youtube and read through the documentation on Air but the video does not work at all.
    I need code samples and direction on how to make an embedded video play inside of a desktop air application using the HTML / JS air model. I am using the command line tools to create the air package and test the air app.
    Please help if you have figured this out.
    Thank you.
    Not sure if this matters but I am using Windows 7 Pro 64bit as my development machine.

    In addition I also can not get html5 video to play in the adobe air app.  Would this issue be tied to the above?

  • Adobe Air HTML & JS Developing - Slow on massive Image-Tags

    Hello,
    I want to share a problem i noticed while developing an application with adobe air, based on the HTML & JS Stack, which uses multiple image-tags at the same time. I already mailed a bug but unfortunately did not get a bug number responded to refer to hit here. This post is started because i wanted to share a simple example which exhibits the problem.
    The Bug Report i mailed:
    ******BUG******
    Concise problem statement: Performance Issues with massive Image-Tags (scaled)
    Steps to reproduce bug:
    1. Create a simple Air-Application. No need for any Air-specific library we just want the Air-Webkit to render a HTML-Page
    2.  Load ~130 Pictures with a dimension of approximately 1024 x 768 pixels.  Render each of them as a scaled Image-Tag with the dimension 100x60  pixels.
    3. Load the Page in the Air/Safari/Firefox/IE Environment (Versions: Air 2.5, Safari 5.0.2 (Win XP), FF 3.6.10, IE7)
    4. Try scrolling down/left/right/up and resizing the respective stage
    Results: The Air Environment performs worst among those 4. It reacts unacceptably slow while trying to resize and to scroll.
    Expected results: similar performance to Webkit-Engine in Safari.
    I know of one other discussion which seems to be related to a similar thing (http://forums.adobe.com/message/44913).
    The Page i used to compare the Adobe-Air rendering & scroll behaviour against the behaviour of Safari, FF and IE is posted beneath (pretty long due to the excerpt of 131 pictures taken of flicker web service).
    with best regards
    Robert
    <html>
        <head>
            <title>Mass Img Tags</title>
            <script language="JavaScript">
                var data = [{
                    "Title": "landscape216 jpg",
                    "Summary": "",
                    "Url": "http://xemanhdep.com/gallery/landscape2/landscape216.jpg",
                    "ClickUrl": "http://xemanhdep.com/gallery/landscape2/landscape216.jpg",
                    "RefererUrl": "http://gallery.xemanhdep.com/2008/10/beautiful-landscape-photos-2",
                    "FileSize": 114688,
                    "FileFormat": "jpeg",
                    "Height": "525",
                    "Width": "700",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/f5f58ee2c6a04bfa",
                        "Height": "112",
                        "Width": "150"
                    "Title": "Landscape Bora Bora Lagoon with Catamaran French Polynesia jpg",
                    "Summary": "11 12 13 14 15 16 17 18",
                    "Url": "http://www.bergoiata.org/fe/landscapes2/Landscape%20-%20Bora%20Bora%20Lagoon%20with%20Catamaran%20-%20French%20Polynesia.jpg",
                    "ClickUrl": "http://www.bergoiata.org/fe/landscapes2/Landscape%20-%20Bora%20Bora%20Lagoon%20with%20Catamaran%20-%20French%20Polynesia.jpg",
                    "RefererUrl": "http://www.nitilurus.blogspot.com/",
                    "FileSize": 102604,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/8673e2bc14b343d0",
                        "Height": "120",
                        "Width": "160"
                    "Title": "Landscape Mount Tombstone Upper North jpg",
                    "Summary": "Landscape Flowers &gt; 02 Sep 2005 22 56 156k Fractal Roiling Vo &gt; 02 Sep 2005 22 56 157k Landscape Mount To &gt; 02 Sep 2005 22 56 172k Landscape Southern &gt; 02 Sep 2005 22 56 200k",
                    "Url": "http://www.bergoiata.org/fe/divers47/Landscape%20-%20Mount%20Tombstone,%20Upper%20North.jpg",
                    "ClickUrl": "http://www.bergoiata.org/fe/divers47/Landscape%20-%20Mount%20Tombstone,%20Upper%20North.jpg",
                    "RefererUrl": "http://www.bergoiata.org/fe/divers47?S=A",
                    "FileSize": 176537,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/cab907cfa143c5a2",
                        "Height": "120",
                        "Width": "160"
                    "Title": "Landscape",
                    "Summary": "",
                    "Url": "http://media-content.flixya.com.s3.amazonaws.com/files/bxj1986530672.jpg?AWSAccessKeyId=1TKE66PETJJHG8051M02&Expires=2114092205&Signature=1m7fiT7SAIe8HgLiPtae0%2FL62ho%3D",
                    "ClickUrl": "http://media-content.flixya.com.s3.amazonaws.com/files/bxj1986530672.jpg?AWSAccessKeyId=1TKE66PETJJHG8051M02&Expires=2114092205&Signature=1m7fiT7SAIe8HgLiPtae0%2FL62ho%3D",
                    "RefererUrl": "http://www.flixya.com/photo/530672/Landscape",
                    "FileSize": 253644,
                    "FileFormat": "jpeg",
                    "Height": "375",
                    "Width": "500",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/6ca09130080fe348",
                        "Height": "108",
                        "Width": "145"
                    "Title": "purple landscape jpg",
                    "Summary": "Purple Landscape Róbert Štefanka 10 srpen 2006",
                    "Url": "http://www.lightharmony.com/admin/ext/purple-landscape.jpg",
                    "ClickUrl": "http://www.lightharmony.com/admin/ext/purple-landscape.jpg",
                    "RefererUrl": "http://www.lightharmony.com/fotografie/160/cz/author/8/0/purple-landscape",
                    "FileSize": 323686,
                    "FileFormat": "jpeg",
                    "Height": "463",
                    "Width": "700",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/a4609865c6a4cd22",
                        "Height": "99",
                        "Width": "150"
                    "Title": "Landscape Matterhorn Lake jpg",
                    "Summary": "Nature Rainy Lands &gt; 02 Sep 2005 22 50 58k Landscape Mountain &gt; 02 Sep 2005 22 49 89k Landscape Matterho &gt; 02 Sep 2005 22 49 198k Landscape Lighthou &gt; 02 Sep 2005 22 49 177k",
                    "Url": "http://www.bergoiata.org/fe/divers44/Landscape%20-%20Matterhorn%20Lake.jpg",
                    "ClickUrl": "http://www.bergoiata.org/fe/divers44/Landscape%20-%20Matterhorn%20Lake.jpg",
                    "RefererUrl": "http://www.bergoiata.org/fe/divers44?N=D",
                    "FileSize": 202547,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/0203edf764b1c67c",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape",
                    "Summary": "LandScape LandScape 2",
                    "Url": "http://www.smashingdownloads.com/wp-content/uploads/2009/06/landscape.jpg",
                    "ClickUrl": "http://www.smashingdownloads.com/wp-content/uploads/2009/06/landscape.jpg",
                    "RefererUrl": "http://www.smashingdownloads.com/2009/06/04/27-brilliant-examples-of-landscape-photography",
                    "FileSize": 99635,
                    "FileFormat": "jpeg",
                    "Height": "399",
                    "Width": "600",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/fe217612dffd3c10",
                        "Height": "96",
                        "Width": "145"
                    "Title": "landscape3 jpg",
                    "Summary": "its own If you re a fan of the handiwork of Mother Nature and you d like to get a glimpse of the diversity of the world check out this photostream featuring gorgeous landscape photography",
                    "Url": "http://www.dirjournal.com/info/wp-content/uploads/2009/12/landscape3.jpg",
                    "ClickUrl": "http://www.dirjournal.com/info/wp-content/uploads/2009/12/landscape3.jpg",
                    "RefererUrl": "http://www.dirjournal.com/info/the-magnificent-beauty-of-natures-landscapes",
                    "FileSize": 169164,
                    "FileFormat": "jpeg",
                    "Height": "483",
                    "Width": "700",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/0b807ce0d282bfc2",
                        "Height": "103",
                        "Width": "150"
                    "Title": "sm landscape syracuse label jpg",
                    "Summary": "sports video game Stevensgraph of Columbus landing artwork including nice small o b horses and children sheep painting V Perrin small landscape etc Gone with the wind Lamp very nice quality 4 pc leather parlor set barely used 2 canes one w sterling top ca 1879 French Gras Bayonet several nice mirrors great",
                    "Url": "http://www.coylesauction.com/images/Year2005/083005/sm%20landscape%20syracuse%20label.jpg",
                    "ClickUrl": "http://www.coylesauction.com/images/Year2005/083005/sm%20landscape%20syracuse%20label.jpg",
                    "RefererUrl": "http://www.coylesauction.com/AuctionPreview/Year2005/ap083005.htm",
                    "FileSize": 67481,
                    "FileFormat": "jpeg",
                    "Height": "486",
                    "Width": "650",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/dcccdb9e4e66c4e2",
                        "Height": "112",
                        "Width": "150"
                    "Title": "post5 landscape jpg",
                    "Summary": "a little boost to the colour All in all a 20 to 30 minute job Was it worth You decide In my opinion it won the right to have its own place in the sorted folders Landscape Before After",
                    "Url": "http://www.chromystic.com/blog/goncalofigueiredo/resource/img/post5_landscape.jpg",
                    "ClickUrl": "http://www.chromystic.com/blog/goncalofigueiredo/resource/img/post5_landscape.jpg",
                    "RefererUrl": "http://www.chromystic.com/blog/goncalofigueiredo/entry/there-is-still-a-chance",
                    "FileSize": 188108,
                    "FileFormat": "jpeg",
                    "Height": "332",
                    "Width": "500",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/dbb4f27647c5952e",
                        "Height": "96",
                        "Width": "145"
                    "Title": "Landscape thumb jpg",
                    "Summary": "In this tutorial you will learn how to create a fantasy landscape using some simple and easy techniques Create Smoke Effect on Grungy Wallpaper",
                    "Url": "http://ntt.cc/wp-content/uploads/2009/10/Landscape_thumb.jpg",
                    "ClickUrl": "http://ntt.cc/wp-content/uploads/2009/10/Landscape_thumb.jpg",
                    "RefererUrl": "http://ntt.cc/2009/10/16/30-excellent-high-quality-adobe-photoshop-tutorials-new.html",
                    "FileSize": 84377,
                    "FileFormat": "jpeg",
                    "Height": "569",
                    "Width": "484",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/7a3616914ed77cf4",
                        "Height": "145",
                        "Width": "123"
                    "Title": "landscape 1024 30 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-30.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-30.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=30",
                    "FileSize": 271155,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/401d2cdfaab693a2",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 800 18 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-18.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-18.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=18",
                    "FileSize": 69120,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/cb5db7a20c94d0c8",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1200 18 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-18.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-18.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=18",
                    "FileSize": 145920,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/6e966655546f4d28",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1200 13 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-13.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-13.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=13",
                    "FileSize": 280268,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/2c7eb863b672ec92",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 800 35 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-35.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-35.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=35",
                    "FileSize": 101478,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/8efaed051155f5c4",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1024 23 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-23.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-23.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=23",
                    "FileSize": 72704,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/8e632c62ce6398a8",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 800 30 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-30.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-30.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=30",
                    "FileSize": 169164,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/7868fafbafeba600",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1200 28 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-28.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-28.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=28",
                    "FileSize": 452096,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/c42bc3d01efd78e2",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1024 35 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-35.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-35.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=35",
                    "FileSize": 161382,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/1852e4fc7a9aefa6",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 1024 31 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-31.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-31.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=31",
                    "FileSize": 364032,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/0e613977e04c4882",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 1200 35 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-35.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-35.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=35",
                    "FileSize": 220979,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/c5c69d3a273d0880",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1200 27 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1200-27.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1200-27.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-3.html?id=27",
                    "FileSize": 384204,
                    "FileFormat": "jpeg",
                    "Height": "900",
                    "Width": "1200",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/04c55aa75582b4c2",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 1024 33 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-33.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-33.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=33",
                    "FileSize": 349491,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/81646c732fd68452",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscape 1024 26 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-26.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-1024-26.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-2.html?id=26",
                    "FileSize": 297062,
                    "FileFormat": "jpeg",
                    "Height": "768",
                    "Width": "1024",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/60c7e1a5b87dca0a",
                        "Height": "120",
                        "Width": "160"
                    "Title": "landscapeStream jpg",
                    "Summary": "pastoral painting in gold frame hollyhock painting rose painting in gold frame Madonna and child oil on canvas as is landscape with stream large European scene painting and much more",
                    "Url": "http://www.coylesauction.com/img/img2009/img033109/landscapeStream.jpg",
                    "ClickUrl": "http://www.coylesauction.com/img/img2009/img033109/landscapeStream.jpg",
                    "RefererUrl": "http://www.coylesauction.com/AucPreview/AP2009/ap033109.htm",
                    "FileSize": 49459,
                    "FileFormat": "jpeg",
                    "Height": "344",
                    "Width": "450",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/934090dff7521230",
                        "Height": "107",
                        "Width": "140"
                    "Title": "DCWP 406 038 Landscape Picture jpg",
                    "Summary": "Landscape Picture 1 I took this landscape picture from a speed boat on the Okavango Delta late one afternoon It shows one of the channels in the Okavango Delta when it is in full flow The delta is one of the",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_406_038-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_406_038-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture.html",
                    "FileSize": 60211,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/b524a62e8458d358",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 406 019 Landscape Picture jpg",
                    "Summary": "Landscape Picture 7 This landscape picture of moring mist over the Kavango River in Namibia was taken just after sunrise one morning Our tent was less that ten metres from where I stood We were camping at",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_406_019-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_406_019-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-7.html",
                    "FileSize": 83558,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/27ef2bd37acfbb80",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 506 023 Landscape Picture jpg",
                    "Summary": "Landscape Picture 5 The large Leadwood trees in this landscape picture are what caught my eye They are quite prevalent in the Moremi Game Reserve of Botswana escpecially near the North Gate campsite where",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_506_023-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_506_023-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-5.html",
                    "FileSize": 99532,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/17c1a79f67065d90",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 506 024 Landscape Picture jpg",
                    "Summary": "Landscape Picture 6 The large Leadwood tree in this landscape picture is what caught my eye They are quite prevalent in the Moremi Game Reserve of Botswana escpecially near the North Gate campsite where this",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_506_024-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_506_024-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-6.html",
                    "FileSize": 93286,
                    "FileFormat": "jpeg",
                    "Height": "480",
                    "Width": "322",
                    "Thumbnail": {
                        "Url": "http://thm-a01.yimg.com/nimage/5b363b95bb9168b2",
                        "Height": "140",
                        "Width": "93"
                    "Title": "DCWP 506 005 Landscape Picture jpg",
                    "Summary": "Landscape Picture 4 I took this landscape picture depicting a large Baobab tree on Kubu Island on the Makgadikgadi Pans Botswana during June 2005 A picture utilising good light is always always better than",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_506_005-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_506_005-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-4.html",
                    "FileSize": 84172,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/5477f6c511630438",
                        "Height": "93",
                        "Width": "140"
                    "Title": "DCWP 410 001 Landscape Picture jpg",
                    "Summary": "Landscape Picture 2 I took this landscape picture near Grabouw on my way to the De Hoop Nature Reserve in South Africa s Western Cape I just had to stop for it Cloud formations in this part of the country can",
                    "Url": "http://www.africa-nature-photography.com/images/DCWP_410_001-Landscape-Picture.jpg",
                    "ClickUrl": "http://www.africa-nature-photography.com/images/DCWP_410_001-Landscape-Picture.jpg",
                    "RefererUrl": "http://www.africa-nature-photography.com/landscape-picture-2.html",
                    "FileSize": 77414,
                    "FileFormat": "jpeg",
                    "Height": "322",
                    "Width": "480",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/4f07caae67d26392",
                        "Height": "93",
                        "Width": "140"
                    "Title": "about landscape yard jpg",
                    "Summary": "philosophy is that the final scaled landscape plan you receive should convey your landscape ideas in a road map that will be used to transform your house and yard into your home After our design meets your expectations we will submit our bid prices to implement the design and work on packaging and phasing options We use the same bidding process whether",
                    "Url": "http://www.envconst.com/Images/about_landscape_yard.jpg",
                    "ClickUrl": "http://www.envconst.com/Images/about_landscape_yard.jpg",
                    "RefererUrl": "http://www.envconst.com/about/landscape",
                    "FileSize": 39116,
                    "FileFormat": "jpeg",
                    "Height": "315",
                    "Width": "485",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/07706b565b3f956a",
                        "Height": "94",
                        "Width": "145"
                    "Title": "landscape02 JPG",
                    "Summary": "and Monet landscapes but with an Impressionistic approach I still want to re do the water reflections from the buildings and light but for now this will have to do Landscape Landscape close up Another example of the Virtual 3 D work I have been doing is",
                    "Url": "http://www.dustinhetrick.com/art/landscape02.JPG",
                    "ClickUrl": "http://www.dustinhetrick.com/art/landscape02.JPG",
                    "RefererUrl": "http://www.dustinhetrick.com/art.htm",
                    "FileSize": 475136,
                    "FileFormat": "jpeg",
                    "Height": "960",
                    "Width": "1280",
                    "Thumbnail": {
                        "Url": "http://thm-a02.yimg.com/nimage/99ff10027365797a",
                        "Height": "123",
                        "Width": "165"
                    "Title": "landscape 800 2 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-2.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-2.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=2",
                    "FileSize": 42291,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a03.yimg.com/nimage/0609a5f1103b8ee4",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 800 1 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-800-1.jpg",
                    "ClickUrl": "http://www.digital-cameras-help.com/landscapes/landscape-800-1.jpg",
                    "RefererUrl": "http://www.digital-cameras-help.com/wallpaper-landscape-1.html?id=1",
                    "FileSize": 129843,
                    "FileFormat": "jpeg",
                    "Height": "600",
                    "Width": "800",
                    "Thumbnail": {
                        "Url": "http://thm-a04.yimg.com/nimage/755ad7377c2f381c",
                        "Height": "116",
                        "Width": "155"
                    "Title": "landscape 1024 9 jpg",
                    "Summary": "",
                    "Url": "http://www.digital-cameras-help.com/landscapes/landscape-1024-9.jpg",
      

    Hi,
    Thank you for reporting this. The internal bug number for the issue is #2740755. The issue is currently under review and will be investigated by one of AIR team members.
    Regards,
    Catalin

  • Strange behaviour when embedding HTML page in Air

    Hi,
    I'm trying to embedd a HTML page to a Air application.
    The HTML page has a simple Flex application (TestFlex4Project.mxml) with a button that changes one HTML element on the web page (TestFlex4Project.html) using ExternalInterface. If I run the Flex application using the HTML page it works just fine and when I click the button the HTML ellement is changed and the mouseover- and onclick events works. If I embedd the HTML page in an Air application the mouseover- and onclick events does not work any more. Why?
    If I use Aternative 1 in the HTML code (instead of using Aternative 2 in the HTML code where I'm editing the innerHTML property) the mouseover- and onclick events works when the HTML page is embeded in Air. Why?
    Even more strange is that if I remove the line [<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />] from the HTML page the Flex application dose not show at all when embedded in Air. Why?
    You can try the online sample here and the files here.
    The application looks like this:
    And if you click the button and click the upper most text you will recieve a message like this:
    But not when I use innerHTML and embedd the HTML page in Air. Can anyone please help me with this issue. Is it a bug or what am I doing wrong? I need to change some HTML elements using innerHTML.
    Thanks!!
    The code for TestFlex4Project.mxml is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
    width="100%"
    height="100%">
    <fx:Script>
      <![CDATA[
       function buttonClickHandler(event:Event):void{
       ExternalInterface.call(" function(){SetHTML();}")
      ]]>
    </fx:Script>
    <s:HGroup verticalAlign="middle">
      <s:Button label="Edit HTML Element" click="buttonClickHandler(event)"/> 
    </s:HGroup>
    </s:Application>
    The code for TestFlex4Project.html is like this
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <title>Test Flex 4 Project</title>
    <meta name="description" content="" />
    <script src="js/swfobject.js"></script>
    <script>
      var flashvars = {
      var params = {
       menu: "false",
       scale: "noScale",
       allowFullscreen: "true",
       allowScriptAccess: "always",
       bgcolor: "",
       wmode: "direct" // can cause issues with FP settings & webcam
      var attributes = {
       id:"TestFlex4Project"
      swfobject.embedSWF(
       "TestFlex4Project.swf",
       "altContent", "100%", "100%", "10.0.0",
       "expressInstall.swf",
       flashvars, params, attributes);
       function Message(){
       alert("Message!")
    function SetHTML(){
       //Start Alternative 1
       NewHTML.innerHTML = "Dynamically changed text"
       NewHTML.style.cursor = "pointer"
       NewHTML.style.color = "#ff0000"
       NewHTML.onclick = function(){
        Message();
       NewHTML.onmouseover = function(){
        this.style.fontWeight = 700;
       //End Alternative 1
       //Start Alternative 2
       var HTMLStr='<p style="cursor:pointer; fontWeight:300; color:#ff0000" onClick = "Message()" onMouseOver = "this.style.fontWeight=700">Dynamically changed text</p>'
       NewHTML.outerHTML=HTMLStr
       //End Alternative 2
    </script>
    <style>
      html, body { height:100%; overflow:hidden; }
      body { margin:0; }
    </style>
    </head>
    <body id="Body">
    <p id="NewHTML">This text will change when you click the button!</p>
    <p style="cursor:pointer; fontWeight:'300'; color:#ff0000" onClick = "Message()" onmouseover = "this.style.fontWeight='700'">Default text</p>
    <div id="altContent">
      <p><a href="http://www.adobe.com/go/getflashplayer">
       <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
       </a>
      </p>
    </div>
    </body>
    </html>
    The code for the Airapplication is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
    width="800"
    height="566">
    <mx:HTML id="HTMLObject" location="TestFlex4Project.html" width="100%" height="100%"/>
    </s:WindowedApplication>

    Hi,
    I'm trying to embedd a HTML page to a Air application.
    The HTML page has a simple Flex application (TestFlex4Project.mxml) with a button that changes one HTML element on the web page (TestFlex4Project.html) using ExternalInterface. If I run the Flex application using the HTML page it works just fine and when I click the button the HTML ellement is changed and the mouseover- and onclick events works. If I embedd the HTML page in an Air application the mouseover- and onclick events does not work any more. Why?
    If I use Aternative 1 in the HTML code (instead of using Aternative 2 in the HTML code where I'm editing the innerHTML property) the mouseover- and onclick events works when the HTML page is embeded in Air. Why?
    Even more strange is that if I remove the line [<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />] from the HTML page the Flex application dose not show at all when embedded in Air. Why?
    You can try the online sample here and the files here.
    The application looks like this:
    And if you click the button and click the upper most text you will recieve a message like this:
    But not when I use innerHTML and embedd the HTML page in Air. Can anyone please help me with this issue. Is it a bug or what am I doing wrong? I need to change some HTML elements using innerHTML.
    Thanks!!
    The code for TestFlex4Project.mxml is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
    width="100%"
    height="100%">
    <fx:Script>
      <![CDATA[
       function buttonClickHandler(event:Event):void{
       ExternalInterface.call(" function(){SetHTML();}")
      ]]>
    </fx:Script>
    <s:HGroup verticalAlign="middle">
      <s:Button label="Edit HTML Element" click="buttonClickHandler(event)"/> 
    </s:HGroup>
    </s:Application>
    The code for TestFlex4Project.html is like this
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <title>Test Flex 4 Project</title>
    <meta name="description" content="" />
    <script src="js/swfobject.js"></script>
    <script>
      var flashvars = {
      var params = {
       menu: "false",
       scale: "noScale",
       allowFullscreen: "true",
       allowScriptAccess: "always",
       bgcolor: "",
       wmode: "direct" // can cause issues with FP settings & webcam
      var attributes = {
       id:"TestFlex4Project"
      swfobject.embedSWF(
       "TestFlex4Project.swf",
       "altContent", "100%", "100%", "10.0.0",
       "expressInstall.swf",
       flashvars, params, attributes);
       function Message(){
       alert("Message!")
    function SetHTML(){
       //Start Alternative 1
       NewHTML.innerHTML = "Dynamically changed text"
       NewHTML.style.cursor = "pointer"
       NewHTML.style.color = "#ff0000"
       NewHTML.onclick = function(){
        Message();
       NewHTML.onmouseover = function(){
        this.style.fontWeight = 700;
       //End Alternative 1
       //Start Alternative 2
       var HTMLStr='<p style="cursor:pointer; fontWeight:300; color:#ff0000" onClick = "Message()" onMouseOver = "this.style.fontWeight=700">Dynamically changed text</p>'
       NewHTML.outerHTML=HTMLStr
       //End Alternative 2
    </script>
    <style>
      html, body { height:100%; overflow:hidden; }
      body { margin:0; }
    </style>
    </head>
    <body id="Body">
    <p id="NewHTML">This text will change when you click the button!</p>
    <p style="cursor:pointer; fontWeight:'300'; color:#ff0000" onClick = "Message()" onmouseover = "this.style.fontWeight='700'">Default text</p>
    <div id="altContent">
      <p><a href="http://www.adobe.com/go/getflashplayer">
       <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
       </a>
      </p>
    </div>
    </body>
    </html>
    The code for the Airapplication is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
    width="800"
    height="566">
    <mx:HTML id="HTMLObject" location="TestFlex4Project.html" width="100%" height="100%"/>
    </s:WindowedApplication>

  • Adobe AIR for HTML/JS Webkit Remote Debugging?

    Can I enable webkit remote debugging in an air app built on HTML and JavaScript?
    If not, can I beg for this feature to be added to AIR.

    Filed feature request on bugbase. Vote it up if you agree!

  • Adobe air distribution problem. (AJax / html)

    Hi guys,
    I have written a sample application in javascript (ajax) and xhtml and successfully published with adobe air. The system works fine but my question is when i distribute the application (.air) I had to include all my javascript , images, xhtml. I dont have any problem in sending the images with .air package but sending javascript files is imposible that is be because, since im using ajax to show all the details I have to use full URL for all my ajax calls.
    so someone who knows about abobe air can use those same URL`s and create their own air application and steal my details from my server. (adobe air allow cross scripting)
    As a solution I have seen many applications (ex: ebay desktop) uses flash logins and check the login using flash and redirect user to a seperate page if the login is successful. so in this case i only need to package my .swf file since redirection will handdle from the flash end.
    Im not a flash developer so I wont be able to create the whole application using flash. thats why im looking for a javascript / html solution to overcome this problem.
    so my questions are,
    1. Is there any way i can publish my .air application without packaging js files?
    2. Is there is a posibility which i can use a flash login and if the login success open up a new window with the actual application and close the login window? and while logging off viseversa
    I hope you guys undestand my questions and any help highly appreciate it.
    Thanks in advanced,
    Best regards,
    niroshan

    There isn't any way to distribute an HTML/JS AIR application without the HTML/JavaScript source files. Because JavaScript is a run-time interpreted language, the HTML and JavaScript code has to be available at run time. The obvious downside to this is that the source code of your application is available in plain text on the users' hard drive.
    If your main concern is protecting data stored on the server from malicious users, the username/password strategy is probably a good one (and you wouldn't need to implement in using Flash at all -- you could do the same thing in HTML/JS.). What you need to do is:
    Set up your web server so that the user has to be authenticated with the web server in order to get any data or perform any of the calls (from ajax or anywhere else).
    When your app first starts or at some point, have a login form where the user enters their username/password for your serve. When you make the ajax calls to the server pass the username/password along (or use a session cookie, or some other similar technique for maintaining authentication).
    That way, even if an attacker knows the url of your server calls, they can't actually use them unless they have an account with you.
    From a practical standpoint, you should protect your server by requiring authentication in any case. Otherwise your only security defense is the fact that an attacker doesn't know your exact url. But there are ways to learn urls (for example, by monitoring network traffic) that make it so it isn't too hard for someone to discover the urls even without your app's source code.

  • Adobe Air and HTML

    I've been able to load a webpage from within my application using code such as the following:
    var loader:HTMLLoader = new HTMLLoader();
    loader.width=300;
    loader.height=300;
    var url:URLRequest = new URLRequest("http://...");
    url.useCache = false;
    loader.load(url);
    Let's say a user clicks a link inside the window to load a new page.  Some questions:
    1)  Will useCache variable affect any page the user loads inside the window after the initial load?
    2)  Is there any way to set a cache expiration time?  Alternatively, is there any way to flush the cache?  I noticed there's a reload() command in Air, but would that effect individual pages the user navigates to after the main page?
    3)  Is there a notification that the Air application gets when the user navigates the entire window to a new page?
    4)  Is there any way to send a message to the Air application inside an HTML page?  For example, the user clicks an HTML close button embedded in the web page, causing the Air application to close the entire window.
    Cheers,
    -Scott

    AIR does not implement application level caching, useCache flag is forwarded to the native networking stack. This means that it will use whatever OS-specific URL caching available. Expiration policy is also OS dependent.
    Setting useCache on HTMLLoader propagates to all the requests made from within that HTMLLoader. So it will affect any page, not just the initial page.
    Unfortunately, there's no notification send when HTMLLoader loads additional resources (inlcuding when the main page is changed).
    There are mechanisms for the page loaded by HTMLLoader to communicate wiht the AIR app. If the HTML is in the application sandbox, it can use the AIR APIs directly, through what is called bridging. For details see http://help.adobe.com/en_US/air/html/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0d.html
    If the HTML content is in remote sandbox, you can use the parent sandbox bridge, as explained in http://help.adobe.com/en_US/air/html/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0d.html

  • Adobe AIR HTML Native Full Screen on Mac OS X

    I am building an application in Adobe AIR for Mac in HTML/JavaScript.
    What I want to do is when the application loads, make the application go into full-screen mode using the correct native full-screen found in OS X Lion and above.
    e.g.
    This is NOT using the displayState that Flash/Flex uses.
    If the users decides to exit full screen mode they will see the app in a native window and can re-enter full screen mode using the icon you get in the top-right of a window.
    I've found some information about an extension here: http://forums.adobe.com/thread/1209193
    FREObject _EnableFullScreenMode(FREContext ctx, void* functionData, uint32_t argc, FREObject argv[])
            //We should be okay to do this, even on 10.6, according to this post:
            //http://www.cocoabuilder.com/archive/cocoa/311124-implementing-full-screen-for-10-7-but-app-should-also-run-on-10-6.html
            //We can't use [NSApp mainWindow] - didn't appear to work
            //This seems to though:
            NSArray * allWindows = [NSApp windows];
            if (allWindows.count > 0)
                NSWindow *mainWindow = [allWindows  objectAtIndex: 0];
                NSWindowCollectionBehavior behavior = [mainWindow collectionBehavior];
                behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
                [mainWindow setCollectionBehavior:behavior];
            //TODO: Return a boolean instead depending on if we found the main window
            return NULL;
    That looks to do what I want! But after reading the Adobe AIR docs I can't get my head around where this code should live in my app directory and how I can call it on app load.
    So in my index.html I have:
    $(document).ready(function() {  // Make window full-screen // CALL THE EXTENSION TO MAKE THE APPLICATION FULL_SCREEN  // Make window active window.nativeWindow.activate();  // Make it visible window.nativeWindow.visible = true;  });
    The initialWindow is not visible by default using <visible>false</false> in the application descriptor XML file. And is made visible and active on the document ready as shown above.
    The missing piece is loading in the extension and making the window go native full-screen.
    To break this question up:
    Where does the extension code go? E.g. do I create an extension file and put it in any particular location in the app directory?
    How do I then load the extension into the application
    Finally how do I then do the full-screen on document ready
    What happens in OS X below Lion? How did full-screen work before it was introduced?
    Hopefully I can get pointed in the right direction as the docs have totally baffled me and don't explain how the extension file is created (to me at least).

    Extensions require both native code and ActionScript code and are packed by the native extension compiler by Adobe to an ANE file. Check this tutorial: http://www.adobe.com/devnet/air/articles/building-ane-ios-android-pt1.html
    After compiling the extension, you can put the extensionId into your <extensions> branch in the application.xml and add the .ane as an excluded library into your AS3 project. Then you can use the extension like any other external library (swc file).
    It's also helpful to download and play around with extisting ANEs. There are some nice open source libraries here: https://github.com/freshplanet

  • Flex Based AIR application & remote HTML

    The question is ....from a flex based AIR application do you
    always have full access to all of the HTML content loaded from a
    remote site via the DOM (htmlLoader.window.document), or is the
    'context' of what you can see limited to what the initial url
    requested can see - i.e. the context is as if it were javascript
    running in the page corresponding to the initial URL.
    As far as i can see if i request say the page
    http://www.abc.com/page1.htm
    and it has content along the lines of
    <IFRAME src="
    http://www.xyz.com/page3.htm"
    id="remoteframe" />
    <IFRAME src="
    http://www.abs.com/page2.htm"
    id="localframe" /?
    then using the htmlControl.htmlLoader.window.document i can
    successfully navigate the DOM for the initial page loaded and
    localframe, but
    not remoteframe.
    I've seen various comments about sandboxes, bridges and
    applicationdomains in the documentation but i don't see how this
    can help me.
    Can someone please shed some light on this? Can i from the
    AIR application access all of the DOM, or am i restricted to the
    initially loaded page and pages referenced from the same domain in
    the page?
    Thanks
    Jamie

    Hi,
    From your AIR application, you can only access "exposed
    properties" in remoteframe.
    You expose a property by using the sandbox bridge mechanism:
    http://livedocs.adobe.com/air/1/devappshtml/help.html?content=security_5.html#1092959

  • HTML/ Javascript Air App as Screensaver

    I am trying to find out how to use a Air app developed using HTML/ JS as a screensaver. All the information I have found has been in other dev platforms, ie flex or AS, and I am unable to translate it to what I am doing.
    Any help pointing me in the right direction as far as docs/ api's to read would be greatly appreciated.
    Thank you in advance for your help.

    There's no direct support for creating screensavers with AIR. (Now if you are talking about a fullscreen application, that is, of course possible -- look at the Stage displayState property in the ASLR: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.htm l#displayState -- but that's not really a "screensaver" per se.)

  • Books on Adobe Air development using HTML/JavaScript

    Hi,
    I always been of the opinion that one of the signs of a healthy, viable technology is the availability of books and manuals (not just articles or short tutorials online) on how to use said technology. I'm interested in Adobe AIR development for Dekstops/Tablets but I have not been able to find any new books on the topic. Most of the existing books seems to date from 2008 and are targeted towards AIR 1.0-1.5, while the latest version of Adobe Air apparently is 3.5+. So my question is - Where are all the books?
    /Sincere Regards Kris

    quote:
    Originally posted by:
    pravinpatil23
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    This question gets asked about once a week. You
    can find my latest answer
    here
    and a little searching will dig up more opinions.
    quote:
    Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    An AIR application isn't hosted on a server, so all web
    servers are "foreign" to your AIR application. An AIR app does get
    downloaded from a server, most of the time, but it doesn't maintain
    some kind of special connection to that server.
    Because of this, there are no cross-domain restrictions in
    AIR like you have in a regular web browser.
    quote:
    Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive
    AIR does not allow low-level system access, and has very
    little in the way of platform-specific capabilities. So, you'd have
    to use a high-level, platform-agnostic way of checking for the
    drive, such as by looking around to see what files are available.
    Things like USB insert notifications are way outside the scope of
    AIR.
    quote:
    I want the data from Servlet to send back to HTML page where
    I can display it on the same HTML page where user entered his
    details.
    That question isn't on-topic here. Ask on a forum dealing
    with JSP servlets.

  • Adobe AIR HTML Application with Window Shadow

    I have been building a HTML based AIR application that uses a transparent window. I want the window to have a drop-shadow effect which using a combination of JavaScript and CSS3 I make the shadow change depending on window focus.
    The application looks like the following (wireframe diagram):
    The red area is the <html> container itself. The blue box is the application content area (a simple <div>) and the black border with green shadow is a container <div> that is positioned absolute on the page. This black container is the application itself in my design.
    As you can see the black border (around the blue box) has a subtle green shadow in the outer edges of the <html> page.
    The problem is that because the <html> is the application in AIR it means that the application can never touch the edge of the screen due to the fact that AIR is treating the <html> as the application edge rather than the container <div> for the black border.
    Any ideas on how to get around this? The only thing I could think of was some crazy JavaScript that could offset the application somehow.... Anyone else had this problem?

    I use this function to center the window on the screen. Could I use any parts of this to perhaps always offset the window to handle the spacing around the chrome div?
    function centerWindow(instance){
                        //default bounds of nativeWindow
                        var applicationBounds = instance.nativeWindow.bounds;
                        //determine which screen we're located on
                        var screens = air.Screen.getScreensForRectangle(instance.nativeWindow.bounds);
                        var screenBounds = (screens.length > 0) ? screens[0].visibleBounds : air.Screen.mainScreen.visibleBounds;
                        //get initial position
                        x = (screenBounds.width - applicationBounds.width) / 2;
                        y = (screenBounds.height - applicationBounds.height) / 2;
                        //adjust for offset x or offset y (multi monitors)
                        x = screenBounds.x + x;
                        y = screenBounds.y + y;
                        instance.nativeWindow.x = x;
                        instance.nativeWindow.y = y;

  • HTML and Perl in AIR

    AIR uses the webkit web 'server' for running HTML pages. On
    the
    http://webkit.org site, it seems to
    say that Perl is or was included in the AIR implementation. If Perl
    is included, would that allow us to do CGI calls?
    I'm creating some Intranet applications in AIR. And it will
    help our security efforts to know the PC name and user name. Also
    it fits in with Single Sign-on because the user won't have to login
    again, but we can still customise the page because we'll know who
    is logged on.
    Thanks for for any information you can provide.
    Scott

    Hi,
    AIR uses the webkit HTML rendering engine to render HTML. It
    doesn't include a local web server.

Maybe you are looking for