Air.trace not tracing anything (HTML/JS)?

i am starting flash and learning from a tutorial. so i have my HTML like:
<html>
<head>
<script src="AIRAliases.js" type="text/javascript"></script>
<script type="text/javascript">
function loadHandler() {
    air.trace("Message");
</script>
</head>
<body onload="loadHandler()">
<p>Hello World</p>
</body>
</html>
the program runs but nothing is traced in the cmd. AIRAliases.js exists btw. i ran
adl HelloWorld.xml
my descriptor file

It works in my end.
What if you use window.runtime.trace directly, instead of air? Does it work?

Similar Messages

  • Html App: air.trace() not outputting to console... are Adobe still supporting html apps in AIR?

    Hi
    Just getting up and running
    Mac OS X 10.9. Adoe AIR 3.9. All working fine except air.trace() not outputting anything to the console.
    Bit of googling meant I created a mm.config in ~ with the line:
    ErrorReportingEnable=1
    but still no joy.
    Any other tips for getting this to work or is it just now broken and/or unsupported?
    Are HTML apps wrapped in AIR now legacy technology?

    I have the same question... I've been trying to get an Adobe AIR HTML app going, but there appears to be no IDE that supports debugging an HTML/JS AIR App, and fdb, which is supposed to be able to debug HTML/JS AIR apps, does not.
    Is HTML/JS still a supported way of developing Adobe AIR apps?  If so, then why aren't issues like this getting some attention?
      -Josh

  • Air.trace() not working

    Hi all,
    Someone had a similar problem here: http://forums.adobe.com/thread/750219?tstart=0  They managed to solve it, I started adding to post but thought it best to start a brand new post.
    I've tried what they've suggested and made a file called mm.cfg in my %HomeDrive%%HomePath% directory (c:\users\james) the contents of which are:
         ErrorReportingEnable=1
         TraceOutputFileEnable=1
         TraceOutputFileName=c:\logs\flashlogs.txt
         MaxWarnings=50
    but I still don't get a log file from air.trace().  Though in C:\Users\James\AppData\Roaming\Macromedia\Flash Player  there's a file flashlog.txt with:
         Warning: Not a known player download type, app:/HelloWorld.html
    I'm running Vista and I'm using AIRSDK 2.5.  I call my hello world  application from the command prompt with " adl HelloWorld-app.xml "  I  get a window of correct dimensions with " Hello World! " as expected, but  no console message.  What am I doing wrong please?  I've been looking  for about a day now at how to get the air.trace messages but neither  those nor the introspector statements work.
    Thank you!!
    James
    The  4 files are in:
    C:\AIRHelloWorld
    The 4 files are:
    HelloWorld-app.xml
    HelloWorld.html
    AIRAliases.js
    AIRIntrospector.js
    My  code for HelloWorld-app.xml and HelloWorld.html is below.   AIRAliases.js and AIRIntrospector.js  are copied straight from AIRSDK
    HelloWorld-app.xml
    <!-- Tutorial at: http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html -->
    <application xmlns="http://ns.adobe.com/air/application/2.5">
        <id>examples.html.HelloWorld</id>   
        <versionNumber>0.1</versionNumber>   
        <filename>HelloWorld</filename>
        <initialWindow>
            <content>HelloWorld.html</content>
            <visible>true</visible>
            <width>240</width>
            <height>320</height>
        </initialWindow>
    </application>
    <!-- To RUN AND TEST the application get a console window (type cmd into search box of Windows vista)
    type:
    cd c:\AIRHelloWorld
    When you have it in the directory of "c:\AIRHelloWorld" then type:
    adl HelloWorld-app.xml
    You'll get a window showing the app and also apparently the console window displays the
    message resulting from the air.trace() call in the html, but I never see this -->
    HelloWorld.html
    <html>
    <head>
        <title>Hello World</title>
        <!-- In the <head> section of the HTML, import the AIRAliases.js file: -->
        <script src="AIRAliases.js" type="text/javascript"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <!-- JavaScript function to handle the onLoad event:  -->
        <script type="text/javascript">
        function appLoad(){
            air.trace("Hello World - debug comment");  /*The appLoad() function simply calls
               the air.trace() function. The trace message print to the command
               console when you run the application using ADL. Trace statements
               can be very useful for debugging.*/
            air.Introspector.Console.log("Hello World - Introspector debug comment");
        </script>
    </head>
    <body on load="appLoad()">
        <h1>Hello World!</h1>
    </body>
    </html>

    Hi Chris, on sdk 2.5, actually, also the Introspector doesn't seem to work. Tried:
    <html>
        <head>
            <title>Source Viewer Sample</title>
            <script type="text/javascript" src="js/AIRAliases.js"></script>
            <script type="text/javascript" src="js/AIRIntrospector.js"></script>
            <script type="text/javascript">
                function logBtn()
                    var button1 = document.getElementById("btn1");
                    air.Introspector.Console.log(button1);
            </script>
        </head>
        <body>
            <p>Click to view the button object in the Console.</p>
            <input type="button" id="btn1"
                onclick="logBtn()"
                value="Log" />
        </body>
    </html>
    UPDATE: I didn't realize it was a different window that appears behind. It works then!

  • 2.5 SDK getting started: air.trace() not working

    I don't know where to turn. I´ve followed the steps on this tutorial and air.trace doesn't work.
    I'm using Windows Vista and the command prompt to run the debugger. It starts the app but air.trace sends nothing to the command window.
    I've tried running cmd with admin privileges with no results. If I make a javascript alert {{  alert(air.trace)  }} it correctly says it's a function and testing a basic send-something-to-clipboard snippet works fine.
    Here's my code:
    <html>
    <head>
        <title>Hello World</title>
        <script type="text/javascript" src="air/AIRAliases.js"></script>
        <script type="text/javascript">
            function init(){
              // this works
           var copy = "A string to copy to the system clipboard.";
           air.Clipboard.generalClipboard.clear();
           air.Clipboard.generalClipboard.setData(air.ClipboardFormats.TEXT_FORMAT, copy);
              // this doesn't
              air.trace("anybody there?");
        </script>
    </head>
    <body onLoad="init()">
        <h1>hello world?</h1>
    </body>
    </html>
    Any ideas?

    Hi all,
    I'm running Vista, and using the command prompt but don't get any messages from air.trace().  I'm using AIRSDK 2.5 and call my hello world application from the command prompt with " adl HelloWorld-app.xml "  I get a window of correct dimensions with " Hello World " as expected, but no console message.  What am I doing wrong please?  I've been looking for about 2 hours now at how to get the air.trace messages but neither those nor the introspector statements work.
    Thank you,
    James
    The 4 files are in:
    C:\AIRHelloWorld
    The 4 files are:
    HelloWorld-app.xml
    HelloWorld.html
    AIRAliases.js
    AIRIntrospector.js
    My code for HelloWorld-app.xml and HelloWorld.html is below.  AIRAliases.js and AIRIntrospector.js  are copied straight from AIRSDK
    HelloWorld-app.xml
    <!-- Tutorial at: http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html -->
    <application xmlns="http://ns.adobe.com/air/application/2.5">
        <id>examples.html.HelloWorld</id>
        <versionNumber>0.1</versionNumber>   
        <filename>HelloWorld</filename>
        <initialWindow>
            <content>HelloWorld.html</content>
            <visible>true</visible>
            <width>240</width>
            <height>320</height>
        </initialWindow>
    </application>
    <!-- To RUN AND TEST the application get a console window (type cmd into search box of Windows vista)
    type:
    cd c:\AIRHelloWorld
    When you have it in the directory of "c:\AIRHelloWorld" then type:
    adl HelloWorld-app.xml
    You'll get a window showing the app and also apparently the console window displays the
    message resulting from the air.trace() call in the html, but I never see this -->
    HelloWorld.html
    <html>
    <head>
    <title>Hello World</title>
    <!-- In the <head> section of the HTML, import the AIRAliases.js file: -->
    <script src="AIRAliases.js" type="text/javascript"></script>
    <script type="text/javascript" src="AIRIntrospector.js"></script>
    <!-- JavaScript function to handle the onLoad event:  -->
    <script type="text/javascript">
    function appLoad(){
    air.trace("Hello World - debug comment");  /*The appLoad() function simply calls
        the air.trace() function. The trace message print to the command
        console when you run the application using ADL. Trace statements
        can be very useful for debugging.*/
    air.Introspector.Console.log("Hello World - Introspector debug comment");
    </script>
    </head>
    <body on load="appLoad()">
    <h1>Hello World</h1>
    </body>
    </html>

  • My iPad air is not showing anything on screen and its switched on.....?

    I just reseted my iPad air and connected to my mac to restore backup and it rebooted but its not showing anything on screen after reboot  and buttons are not working........ BUT i can see my iPad on iTunes on my mac.....????

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • Event Trace not showing anything?How to config?

    Hi Experts,
    We have two development clients 450, 460 .. usally develop in 450 and test the functionality in 460.
    Now most of the workflows are not displayed in Tcode 'SWEL'. I checked the event trace but it is swithced "ON".
    Regards,
    Roops

    Hi Roops,
    Try clearing the Buffer..:-)
    Then use, SWE4/SWELS - EVENT TRACE ON/OFF
    Then check the Event Trace: SWEL - DISPLAY EVENT TRACE
    If these all do not work then check, how are the WF Triggering and is there Triggering Event Binded Correctly to the WF. Is the Event Linkage Active there..?
    Check these links:-)
    http://****************/Tutorials/Workflow/Workflow.htm
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    /people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/572614f6ca11d1952e0000e82dec10/frameset.htm
    Regards,
    Kanika:-)

  • Macbook Air not recognizing anything connected via USB?

    My MB Air is not recognizing anything that I connect via USB...camera, harmony remote, phone, toys - nothing!  Nothing is showing up as being recongnized...anyone else having this problem?  I have tried virtually every device...what the heck?

    SMC reset and re verify
    SMC reset
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    If no USB device of any kind can be found contact Apple for appt. for free in shop full diagnostic and likely parts replacement.  

  • My email preview pane is blank on my Air.  Not on my iPhone or my iPad.  Just the Air.  Started two days ago.  I didn't change anything.  I can double click and open the email.

    My email preview pane is blank on my Air.  Not on my iPhone or my iPad.  Just the Air.  Started two days ago.  I didn't change anything.  I can double click and open the email.

    Back up all data. Rebuild the mailbox.

  • Trace not working in air / as3

    Hi, this may be something obvious but after installing adobe
    air, trace no longer works to my output window.
    I've checked the publish settings and 'omit traces' is
    unchecked.
    thanks

    Hi Trigon_15
    Same thing happend to me, suddenly trace stopt working, some sort of bug i believe
    how it occured i don't know, if added a new SDK, all worked perfect, 2 days later, it just
    stopped tracing.
    How i solved it?
    i've added the compiler argument (-compiler.debug=true) to the Compiler options of the project.
    In my case it's tracing again
    Hopes it will help you to!
    Regards,
    Marc
    ps. i'm using Flash Builder 4 with Flex SDK 4.1

  • HT1277 I just got my macbook air and i thought i'd set up my email but it is not working and I do not understand anything on the website. I have a gmail account if that helps.

    I just got my macbook air and i thought i'd set up my email but it is not working and I do not understand anything on the website. I have a gmail account if that helps.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Air.trace()

    I've been disgruntled with the need to run my application in
    the debugger in Flash CS3 to be able to see trace statements, and
    the fact that doing so usually just outright crashes the debugger
    over and over.
    When looking at the livedocs which now include the AIR api:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/index.html
    I'm finding examples using "air.trace()", for instance in
    bytesAvailable
    I'm wondering, is this a way of invoking the trace() method
    differently that might take care of this frustration for me, but
    I'd like to understand it by reading about it in the API but I
    cannot find it anywhere on the livedocs entity I included above or
    in my local help interface in Flash CS3.
    Is 'air' like 'stage', an instantiation of an 'Air' class
    that I can reference? Moreover, why is the FileStream in this
    example being instantiated as new air.FileStream instead of
    flash.filesystem.FileStream as flash.filesystem is the base package
    for this class?

    Thank you.
    The prefix is of course a nice shortcut, but if not
    documented in such a way as to be easily found, I would argue that
    it should not be included in examples. I reached the API from the
    link in the 'For Flash' section of this page:
    http://www.adobe.com/support/documentation/en/air/#flash
    If it's documented elsewhere in an AJAX context, that's great, but
    that's a perspective that I as a Flash developer would not share.
    I've spent considerable time looking for documentation on
    debugging via ADL (I assume it's the AIR Debug Launcher? I found
    one place in the developers guide where it's spelled out but no
    details on what it is, and how to invoke it. I currently test my
    program using Control=>Delete ASO files and Test Movie. It gives
    me the message "Exporting Flash Movie (progress bar), and then
    about 80% of the time it gives me a message telling me that the
    "Adobe AIR Debug Launcher" has crashed once it hits the first
    function call using the AIR api. Am I already doing as you
    suggested? I condition/commented out all of my trace back when AIR
    was still BETA as this was what was suggested by the AIR Engineers
    on the support boards then.

  • MacBook Air will not power on after going to sleep

    I have a 13" MacBook Air (2012) that has been giving me some issues on and off lately. The past month or two, it has had a few instances where it would take a lot of time and work to get it to "wake up" after the lid was opened. A few times I had to hold the power and reboot it as it was non-repsonsive and would not display anything on screen (black screen). Then a few weeks ago it was un-responsive for a minute upon opening the lid but I eventually got it to come alive but it was very slow to get going as there were quite a few programs running and it auto-rebooted itself. Once I logged in, it did it again but this time it got hung up on the apple logo on boot and was in a cycle of trying to reboot itself but failed at the apple logo. I eventually got it into recovery mode and went into Disk Utility. It found some problems with the hard drive and fixed them. After that, it booted up fine and hasn't given me any problems UNTIL... yesterday, it won't even attempt to power on at all. It was working fine yesterday morning and I was only using Safari (no other programs running) then I closed the lid and left for a few hours with it just sitting there. I didn't take it with me, drop it or anything like that (In fact, it's never been dropped). I just left it right there where I was using it and closed the lid. I came back in the afternoon and opened it up and waited for it to come on but nothing happened. It wasn't even powered on as I put my ear up to it and listened for noise. I've tried holding the power button, I've tried Option+Power, I've reset the SMC, but nothing happens. I don't know what else to try. I believe this model may have a recall on the solid-state-drive but I'm not sure that is it as it should at least power on and display a folder with a "?" mark if the hard drive was bad. I'm wanting to attempt to resolve this before I make a 1.5 hour trip to the Apple store so any help and suggestions are welcome.
    Things you should know:
    It successfully resets the SMC as the orange light flashes green for a few seconds before turning orange again.
    I've tried the charger with 2 different plugs with and without the extending cord. I've also tried booting on battery power only.
    The power button is not broke as it recognizes it while doing the SMC reset.
    Thanks so much for all your help, Silas

    dwb wrote:
    does the little light on the mag safe dongle turn green to indicate it is charging?
    Are you sure you mean green?  Mine is orange when charging and green when fully charged - always been like this with the 3 macbooks I have owned.

  • My MacBook Air is not allowing me to see others or myself during gchat but the green camera light above my screen is working. The pictures worked earlier today and all of a sudden they're no longer present.

    My MacBook Air is not allowing me to see myself and others during gchat. The little light beside the camera goes green, so it's working but I still cannot view anything. I have used the camera and computer for gchatting with no problems previously. Thanks!!

    Then, out of the blue, the original ID for my AE shows up on the iMac and phone and when I selected it my Wi-Fi worked, and is working.
    My first thought is that the AirPort Express is normally good for 4-5 years on average, so you may be getting some signals in that regard.
    The AirPort Express reset itself back to factory default settings. The big question now is if you re-configure it again whether it will hold those settings.  Not likely....my opinion.
    The other problem that you have is that Mountain Lion operating system no longer supports the older version of the AirPort Express that you have.
    Oh, and incidentally, my AE was cutting off a lot about a year ago and I took it into an Apple Store and they did something with the software in the device and the cutting off improved but still would occur at least twice a week
    It's really time for a new AirPort Express, which will offer much faster reliable performance....and it will be compatible with AirPort Utility on the Mountain Lion operating system.

  • Please, the battery of my mac air does not last more than two hours, it's been over 30 days I sent for technical assistance and nothing! I am very disappointed with the mac air, I had a very different expectation of apples products!!

    Please, the battery of my mac air does not last more than two hours, it's been over 30 days I sent for technical assistance and nothing! I am very disappointed with the mac air, I had a very different expectation of apples products!!!

    Maybe the problem is not your MB Air......
    Try these:
    Make sure bluetooth is turned off if you're not using it.
    Set your screen brightness to 4 bars.
    See what's loading in your login items.  Delete the ones you don't need.
    Open Activity Monitor - under All Processes see what's using most of your CPU's resources.
    Highlight the ones with the highest %CPU and hit quit process.
    Remember that when Apple says that your battery should last 7 hours, they tested it just browsing the web and not have anything open in the background and screen is set at 50% brightness.

  • Issue in Lion re Graphics Not Showing in html Email Signature

    After I upgraded to Lion, I created an html signature with the graphics portion residing on Dropbox, and it worked without a hitch until about 10 days ago.  Then a question mark in a blue square started appearing sporadically in place of the graphic. Now, in place of the graphic, I'm getting that question mark in a blue square 100% of the time in place of the graphic on Dropbox.  The .webarchive file in my -/Library . . .  mail/signatures folder that no longer reveals the graphic in my emails, however, works fine when opened up in Safari.  I've tried rewriting the code, but it's of no avail.  The files open up beautifully in Safari with the graphic, but in the signature box in Preferences and in the emails themselves, it's that blue box that keeps showing up.  Does anyone have any idea why I'm not able to access my graphic from mac mail and how I can fix the problem?
    Thank you very much in advance for your assistance.

    As of two days ago, I am having basically the same problem as described:
    imap account on my University, it always synced just fine with my iphone. Two days ago it stopped pulling new messages from the server, and moreover, it also does not show the recent ones it showed already, but only shows me approx. 100 really old messages (6 month old).
    Whenever I sync, it pretends to do it (sync date gets updates), but it does not fetch the messages.
    On my desktop and on my ipad2 (EXACT SAME SETTINGS), everything is ok, messages are pulled from the server (just as it was ok on my iphone two days ago, and I did not change anything).
    When I go to the desktop, and move a new message (one this is not showin up on my iphone) to a subfolder of inbox or to the trash folder, then I suddenly can see this message also in the subfolder or in the trash on my iphone.
    I have deleted the account and set it up anew, same result: the same 6 month old messages get uploaded, and that's it. I can delete also these old messages, and then they are gone, but also this does not pull up any additional messages.
    Any ideas?
    Oliver

Maybe you are looking for

  • True to Subject or Art?

    Hello Everyone, I just wanted to get the opinions of a diverse group of photographers whose opinion I respect. ( how about that for an opening suck up? ) Recently, I have had several discussions at local art guild meetings with both photographers and

  • Two separate blogs; one unattached to website

    I'd like to create a separate more professional blog that is attached to my website. Additionally, I'd like to keep my more casual family oriented blog that I can share with family and close friends. We are a one computer household. Does iWeb 08 allo

  • Business area in asset retirement

    Hi, While retiring the asset(t.code F-92), we get an error message "Account assignment not possible (Asset not assigned to a business area)". But in asset master(time dep tab), business area is assigned to the asset. The version is 5.0. What should b

  • Change the attribute "src" to "href" before importing an XML

    I need to change the attribute "src" to "href" (<img scr="....">) before importing an XML document. I think you could do with XSLT, so you can add a script to import XML documents. But I do not know much about XSLT ... Does anyone could give me an id

  • Issue with Calendar Invites after changing a user's name

    Hey all, Strange issue we are having (Exchange 2007). One of the employees got married and had a name change. I changed the name in AD Users & Computers, updated the mailbox, etc. Now, when someone invites her via an Outlook Calendar Invite, she gets