[AIR 3.0] New JSON feature does not work in Flashpromanager.new: Error #1065: Variable JSON is not defined

After the upgrade of the AIR SDK 3.0 in Flash Professional CS5.5, I found a few problems.

First of all, the JSON class in the library of as3corelib.swc get now a few compile errors:

1061: call to a possibly undefined method decode a reference of static type Class.

1172: definition com.adobe.serialization.json:JSON could not be found.

At first, I was completely puzzled, because I had the good ' import com.adobe.serialization.json.JSON; ' reference.

and I got the "as3corelib.swc" referenced in my ActionScript properties, so how that was not found?

Then, I discovered that it is because it is in conflict with the new internal JSON class included in AIR 3.0

(perhaps it should have been called something else, to avoid conflicts with the own Adobe as3corelib library).

The new native JSON class's decode() method. It is now called parse()

OK, so I tried to use the new class JSON, but after changing the decode() with parse() and removing

the "import com.adobe.serialization.json.JSON; ' reference, Flash tells me that"Variable JSON is not defined.

Really? The JSON class is displayed in the window pop-up Flash Builder code completion,

complete with its all new parse() and stringify() methods! So why it say it is not defined?

Also, my SWF file gets compiled without error at all, so that checks that the new 3.0 libraries are in place.

I get the error "JSON is not defined" when running in ADL, not at compile time. Why?

In order to spend in the AIR SDK 3.0, I've followed this guide:

http://kb2.Adobe.com/CPS/908/cpsid_90810.html

I know that this is on the upgrade to AIR 2.7, but I guess the steps to switch to AIR 3.0 would be very similar.

only with the AIR3.0 SDK package, instead of 2.7.

I also took care of type version = '13' in all the XMLs, instead of version = "12" as indicated in this guide, which is intended to 2.7.

Also, I followed this advice on the addition of -swf-version = 13 in the properties of the project in Flash Builder window:

http://blogs.Adobe.com/Cantrell/archives/2011/08/how-to-use-the-air-3-Beta-SDK.html

But this does not seem to make a difference, because, even if I use Flash Builder for editing code (which is usually used for Flex).

my project is a Flash Professional project, not a Flex, and when you test the project, Flash Builder works Flash Professional

to compile, then run adl.exe (it's the same thing that if you click on the option "control / essay film / in the AIR Debug Launcher (Mobile)" within Flash Pro).

In the window 'settings of ActionScript"in Flash Professional, I also have the good airglobal.swc referenced (from the AIR SDK 3.0).

and the same airglobal.swc is referenced in Flash Builder as well (in 'referenced libraries') in order to get the correct code completion.

I tried all sorts of things to try to make it work, but no luck. Still getting the error "JSON is not defined" when running.

I'm getting desperate in this regard. I'll have to return to AIR 2.7.1 to stop wasting time on this issue.

BTW, I also have another problem unrelated (though maybe it happens for the same reason as the other problem).

Now Flash Builder says the method getTime() in my code, as if it was no longer a method of an instance of class Date.

I have a line where I ask the timestamp like this:

TS = new Date () .getTime ();

Worked perfectly well until now with AIR 3.0.

Now, when hovering the mouse cursor over the orange icon "(?)" appearing to the left, Flash Builder says

"Access of undefined property getTime. Why?

Documentation AS3 says nothing about getTime() get depreciated any thing of the kind:

http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/date.html

In fact, in the completion popup code to watch as Flash Builder, now, it is not any mention

set or get methods, as you can see here:

http://img836.imageshack.us/img836/4793/dateinstancepopup.png

I guess I can use property hung up instead of . getTime() but I don't know why I'm getting all the methods I had before.

Any ideas why this is happenning? Especially the dreaded error 'JSON is not set.

Well, after a lot of tinkering, I think I've finally found a way to finally make it work!

I created XML files modified with the profiles required for AIR 3.0 and after many tries, it finally works!

I downloaded here: http://www.mediafire.com/?d5e761frl5px4

Here are the steps needed to get AIR 3.0 works correctly:

  1. Place the three files in the folder "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\Common\Configuration\Players.
  2. Then, make sure that you have unpacked the AIR SDK 3.0 in the folder "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\AIR3.0" do not crush the contents of the folder "AIR2.6", as suggested by the "Overlay AIR SDK" article (linked in the post above). He gave me problems. It is preferable to use another separate folder. My XML files are pointing to this new folder "AIR3.0".
  3. In the folder "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0 ' create a new folder named"AIR3.0 ". Inside this folder, copy the "airglobal.swc" file located in "c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\AIR3.0\frameworks\libs\air.
  4. Finally, you will need to keep the file "sample.xml - descriptor ' the ' c:\Program Files (x 86) \Adobe\Adobe Flash CS5.5\AIR2.6\samples" folder, but change the attribute xmlns to 'http://ns.adobe.com/air/application/3.0'.

Yes, you must change this in the AIR2.6 folder, even if the SDK has been in AIR3.0. It's because of the way the publication settings work in Adobe Flash. It is hardcoded in a DLL, so that cannot be changed. Is not very intuitive.

I think the AIR SDK installation should be much simpler than that! I know that Adobe AIR is intended for developers, not for end-users, but yet, all these procedures upgrade not well documented are a pain in the *. I lost a LOT of hours in this (more than half a day), with what should be a simple update!

Adobe should make an SDK installation if we do not have to be tinkering with all these procedures errors whenever a new update is released!

Well, I hope that these XML files are useful to someone and avoid more frustration.

Kind regards

OMA2k

PD: BTW, I still have the problem of. getTime() described in my post above, but it is not very important.

because I can still use the property hung up. Yet, it puzzles me why this is happening.

Tags: Adobe AIR

Similar Questions

  • The scroll feature does not work on my mouse.  I installed new batteries, but it still does not.

    The scroll feature does not work on my mouse.  I installed new batteries, but it still does not.

    Look in the system Prefereces - mouse and make sure the scrolling feature is set up how you want. If the action still does not work, please reset the SMC and the PRAM by iMac SMC and the PRAM reset

  • The slide show feature does not work when I used my Apple TV new 4th gen. I have all the minimum requirements for Macbook and Macbook OSX the Airport express. The slide show starts and stops after that 7 photos are displayed on the TV. If I change the

    The slide show feature does not work when I used my Macbook with new Apple TV 4th gen. The slide show stops after that display 7 photos and display to select the options for the slide show is displayed on the screen. The selected interval was 5 seconds. If the interval is spent in 3 seconds the slide show would work for a time and then to display random images. Has worked with Apple on this issue Support Mike and he managed to reproduce the problem. Since I'm in the return period of 14 days for this product, I returned it to the Apple store

    Welcome to the Apple community.

    After returning, I'm not really clear on what your question.

  • AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Original title: computer disc drive

    Download or CD extract of music reading, record music, download CD etc... Before my hard drive had to be replaced, when a disc is inserted into my computer, a window appears, asking what you want to do... Burn music, Rip, copy in folder etc... now when I insert a disk, the window no longer appears, which gives you options and you get to this site... How can I get that back?

    Hey Big-Mack,

    Try the steps of troubleshooting mentioned in the following article and check the result.
    See the enforcement function automatic or AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    If the problem persists, run the Autoplay Repair Wizard and check the result.
    See Autoplay Repair Wizard

    Play functionality; New in Windows Media Player 12 makes it easy to listen to the music, video and photos from your computer to other computers, TVs or stereo on your home network.
    For more information, see play in

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Align objects feature does not work in trial version of Illustrator CC?

    Align objects feature does not work in Illustrator CC brand new MacBook Pro trial version, tried etc. reboot. Is this a software bug or a limitation of the trial version?

    You might want to delve deeper into this function:

    http://help.Adobe.com/en_US/Illustrator/CS/using/WS714a382cdf7d304e7e07d0100196cbc5f-62f2a .html #WS714a382cdf7d304e7e07d0100196cbc5f-62eaa

    There is even a linked video

  • Why my php export feature does not work in IE and not firefox?

    Why my php export feature does not work in IE and not Firefox? I wrote a web application that contains a SigmaGrid. Grid controls reload, add update delete, print and export to CSV all work in IE8. The export function does not work in Firefox.

    Have you tried to test your application on IE7/8/9 and FF10/Chrome/Opera?

  • The Aero Peek feature does not work on my computer that I've recently upgraded to the version of Win 7 Home Premium 32 bit.

    After you have installed Windows 7 Home premium, I noticed that the aero peek feature does not systematically after a fresh reboot upward. Sometimes when I turn on my computer the aero peek feature turns on immediately and works well. On other occasions when I turn it on it just does not come to the top. I had the box customize and found the checked enable aero peek. Still aero peek doesn't work. So to summarize if aero peek turns on it works fine. However, it does not illuminate whenever I boot my machine eventhough that the box is checked. Please notify.

    Try this: launch REGEDIT, navigate to HKEY_CURRENT_USER and make sure that EnableAeroPeek is set to 1, rather than 0.
    It can help.

  • Adobe AIR 22 beta (April 6, 2016), 'Download AIR SDK & compile for Windows' file does not? After I download and visualize the 'air - SDK - description.xml', the version is 21?

    Adobe AIR 22 beta (April 6, 2016), 'Download AIR SDK & compile for Windows' file does not? After that I have download and view the 'air - SDK - description.xml',

    < name > AIR 21.0.0 < / name >

    < version > 21.0.0 < / version >

    Hello

    We have fixed this problem. Please download a second time to get 22 AIR beta build.

    Thank you

    Krati

    Adobe AIR Team

  • Option button and associated features does not work!

    Hi Pros,

    I am facing the following problem:

    1.I have an interactive PDF created in Acrobat 9 Pro.

    2 have a few option boxes, each radio buttons be assigned been worth (for example: 1,2,3 etc.)

    3.I have a text box in which the value of the selected option button is displayed.

    4 PDF works fine on my machine.

    5. customer is to have Internet Explorer version 7.0.5 and Adobe reader: 8.2.6

    6. the option boxes and associated features does not work on the client computer.

    7. the text box displays "0" even if we have a radio button with a value of 2 or 1 is selected.

    What is the problem? How can I solve this problem?

    Help, please.

    If you have disabled JavaScript or automatic calculations in Reader preferences, you will get this type of behavior. You can test yourself by changing your preferences (Edit > preferences > JavaScript, Edit > preferences > forms > automatically calculate field values). All calculated fields depend on JavaScript behind the scenes.

  • Get ReferenceError: Error #1065: Variable Transform3DController is not defined. When you use the debugging.

    Hello

    I just upgraded my Flash Builder to 4.6. Since the upgrade I get the following error right when I run my web files through debugging:

    ReferenceError: Error #1065: Variable Transform3DController is not defined.

    Global / flash.utils::getDefinitionByName()

    at ominds.mouseinspect::MouseInspector/onTmd3dModuleLoaded()

    I don't know if it came from the new update to the constructor or if it comes to liberate an issue with the new 11,1,102,55 Flash Player. It seems that when I arrived to http://www.adobe.com/software/flash/about/ it does not even load the flash movie.

    I'm on a Mac OS X 10.6.8 and I use chrome for most, but this problem also occurs in FireFox.

    Does anyone have ideas to wtf is happening?

    Thank you

    -Nate

    This is Firebug Firebug/Flash, the origin of the problem. I had to remove completely all firebug on the addons of firefox so that he stop throwing the error.

  • ReferenceError: Error #1065: Variable is not defined.

    Hi people.

    Whatever I do (think) I get the following message in Flash CS3:

    "ReferenceError: Error #1065: Variable is not defined."

    I have no idea what causes it, and therefor I can't seem to fix it. I tried looking for answers online, but I got that should declare my classes in public, what I had already made.

    Even a very simple class that runs a command track of his 'the constructor method won't work. It still gives me this message even if I have all the variables or track orders or whatever it is.

    It's really annoying, so help me please :)

    A

    I removed the full stop after the document class in the FLA and it worked now! What a stupid mistake :)
    I'm the book Essential Actionscript 3.0, and looks like they want to do you this... which is obviously not the case. Thank you for taking the time to help me!

  • Lookout 6.5 new opening of session/logoff feature does not save

    I am pleased to see that Lookout 6.5 has a new feature of opening/closing of session - but I'm having a little success with it. I use Lookout 6.5 Integrator on a new PC running Windows 7 Professional. If I go to $System connections and double click on the Member writable logon, Lookout will dim and hangs. Once, I have restarted lookout and return to the $System connections, if I type "Logon" in the field select and click Select, then I can connect a push-button, and the connection is confirmed in the list of existing connections. The work of connection - I can bring to the top of the window to logon with the push button. So far so good. One of the first things I noticed is that when I do in this respect an asterisk (which denotes a change in the file) does NOT appear next to the file name of the process back to the search window. If I go to File\Save - save is not fat - indicating that there is no change in the file. If I go to file/save money - I can save the process, but the connection of the connection is not registered. If I stop Lookout and restart the process file - the connection of the connection is not there. ????

    Thanks for your help, Ryan.

    I find that using a push button and changing its source remote session opening, works push button (displays the logon window), but the button remains pressed.

    As a workaround, I used a sequencer, triggered by the push button; output sequencer A is connected to the opening of the session, and then a second later sequencer output B gives a FALSE key to make it pop back. To connect to logon at the exit of the sequencer, I manually changed the file .lks with the text required, then re-setting the process file. He little s a diverted route, but now it works well.

    Thank you.

  • "New tab" feature does not work

    Hello

    The 'New tab' function had recently stopped working. It does not work when you press Ctrl + T, or by the menu navigation. I see that this does not work with more than one machine
    You know about resolution?

    I use FF 3.6 with the latest patches.

    Hello moshemc,

    • Try to disable or uninstall the Ask toolbar that could be the problem

    Thank you for including the information under the System Details. Reading the details of your system, I see that the "Ask Toolbar" is in use. I noticed the other messages mentioning an incompatibility with this and Firefox 4, causing this problem.

    • See, for example, wire'the sign '+' opens NEW TAB stopped working. I have to open a new window each time. I tried to uninstall firefox and install again but the problem persists. Someone guide me on this. »
  • Jet 7 Tablet 5709: 10 Windows reinstall does not work properly; touch feature does not work after reinstalling HP sw

    I followed the steps of the http://h30434.www3.hp.com/t5/Windows/Windows-10-fresh-installation-on-the-HP-Stream-tablet/m-p/52038... to restore my tablet. The bottom line is - I use a keyboard and mouse, but tactile does not work, even after the installation of the various HP software specially required for the flow of data 7. When I start the Tablet, I can get the lock screen, but it cannot exceed.

    I tried to install Windows 8.1 USB, but I can't go beyond the screen who wants the product key. Should what product key I use? If I go back and reinstall Windows 8.1 the touch feature work?

    What can I do to get a running Stream 7 tablets?

    Hello Aberger,

    I guess that you have improved your 7 to 10 of Windows Workflow, but now you want to reinstall Windows 8.1, correct?

    If you went to go back beyond the 30 day trial period, you can use the image USB, you must have created 8.1 Windows before installing Windows 10.

    IF you have not done this media, you will need to clean install Windows 8.1 with Bing.

    You can not install ordinary Windows 8.1 copy unless you buy a new key.

    Machines that accompanies Windows 8.1 no longer a sticker with a key to the subject because the key is embedded in the bios. Installing Windows 8.1 with Bing will activate when he sees the key in the bios.

    During the installation process, you may need to click Skip to ignore entered the key until Windows has installed fully. If so, this will cause windows to enter a Limited State of Activation. When you connect to the internet to update, it will fully activate.

    You must contact the HP Support directly to the new copy of the installation media if you do not already have.

    Here is the link to contact...

    Contact HP worldwide | HP® official site

    Let me know if you have any other questions.

  • Many features does not not in trial version of CS5. Help!

    I downloaded the complete suite trial version and InDesign does not work! Illustrator and photoshop work well, but it is so in InDesign is not working. I can't fill an area with a color, infact when I select the image and click on the color chart, it gives me black in option and "New shade of color" is grayed out, but if I click on the fly-out in the upper right corner of the swatch box, I can create a new shade. When I do this I get a whole bunch more of color options, but still cannot apply to the image.

    I can create a new block of text, but cannot change the text attributes. I can still click on the 'character formatting controls' in the menu bar when I text or selected text block. Cannot change the font, color, type ect.

    When I direct select an image and apply a transformation, such as "Flip horizontal" it moves completely out of the frame.

    What is going on?

    I also tried to download InDesign individually (rather than as part of the suite) and it works exactly the same way.

    Then it's because I'm using the trial version and there are some features are disabled? I read on the forum he did there will be disable anything notable, but what else could it be? I'm working on getting it bought. I just started a new job and the purchase order has not been approved yet, but I have work to do! Help!

    CS4 and CS3 are acting the same way.

    Here is the link to KB where it is applicable: http://kb2.adobe.com/cps/403/kb403039.html

    Bob

Maybe you are looking for