Error #1503 with AIR3.4 but not AIR3.2 - actionscript-3

I'm working on an Android/iOS app using Adobe AIR. The app appears to work normally both inside Flash Pro and real devices except for the following test:
Do Publish Preview inside Flash Pro.
Close the preview window.
The error appears in the Output panel:
Error: Error #1503: A script failed to exit after 30 seconds and was terminated.
at [*code location is a for loop inside writeExternal() of a class saved to a Shared Object*]
Test Movie terminated.
This happens with AIR3.4, but not AIR3.2. I did a lot of code checking, tracing, etc. but still can't figure out what's wrong. Any suggestions?

Related

Game Maker studio: When I run the game

After I loaded the game up I get this error message below
I loaded the game back up and though it worked again because my slime enemy are still moving around the game but when I left clicked the mouse, my game just freezes and I have to end up exiting out the game.
I went to game maker community website page and see others with the same issue as I did, but most people said it's something with game maker studio's file > preferences and on the window's tab I see the location.
I pressed check windows SDK button and though it worked because I see status shows Visual studio is OK. I though that worked any ideas?
// In Script scr_check_for_player at line 1 : unknown function or script instance_exist
// In Script scr_enemy_choose_next_state at line 3 : wrong number of arguments for function irandom
// In Script scr_enemy_choose_next_state at line 3 : malformed assignment statement
// Compile Failed - Please check the Compile window for any additional information
To the best of my knowledge, the game maker function instance_exist is actually instance_exists, try that and see if it is correct. Also, search for the arguments in the function irandom and apply it correctly.

Debugging libgdx/html project in Netbeans

I've created a sample libgdx/html project in NetBeans 8 and I've followed this guide https://github.com/libgdx/libgdx/wiki/Gradle-and-NetBeans. When I try to run it right-clicking the HTML project, then Tasks/superDev, NetBeans compiles everything without errors and gives me the link to click. I click the link but the browser says "The web page is not available".
Here are the last log lines from the NetBeans compilation output:
Invoking Linker Cross-Site-Iframe
Ignoring the following script tags in the gwt.xml file
soundmanager2-setup.js
soundmanager2-jsmin.js
Link succeeded
Compilation succeeded -- 30,218s
Compile completed in 31349 ms
2014-10-15 17:07:19.171:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2014-10-15 17:07:19.529:INFO:oejs.AbstractConnector:Started
SelectChannelConnector#127.0.0.1:9876
The code server is ready.
Next, visit: http://localhost:9876/
I feel your pain. Try uploading the files to Mozilla Thimble or some other fancy code-edit system. That way it will show if it will correctly execute or not.
<a class = "Squirrel Tech">Need more help? Just reply.</a>

MessageChannel class is inaccessable

I am trying to create a MessageChannel between two workers in a Flash project, but when I attempt to debug or publish I get an error stating "VerifyError: Error #1014: Class flash.system::MessageChannel could not be found.". I am using Flash Pro, and, as far as I know, have correctly added and selected Flash Player 11.4 as a publishing target. Does anyone know what could be causing this error?
Finally figured out the issue - I was unaware that the debugger needed to be updated separately. Since the debugger has been updated, everything seems to be working properly.

Flash Builder - Internal Build Error / Classes Must Not Be Nested

I've been working on a Flash Builder project for about a week and occasionally encounter one of these two errors when I build:
An internal build error has occurred. See the error log for more information.
1131: Classes must not be nested.
A quick Project > Clean fixes things up. When I opened my project this morning and tried to build it, I received the internal build error again. This time, however, Project > Clean results in 5 separate "Classes must not be nested" errors, all pointing to my main class declaration.
Running Project > Clean again leads back to the internal build error. If I Clean again, I get the 5 class errors again, and so on.
I'm using Flash Builder 4.6, Flex 4.6, and AIR 3.5. I haven't made any changes to my codebase since yesterday. Any ideas what might be causing this?
I had the same problem with flashb uilder 4.6,
when i try to compile the app out of the blue it says
"flash builder internal build error has occurred see the error log for more information"
to resolve this you have to check the compiler arguments
when this happens you wont be able to go to compiler argumnts GUI, you have to edit it in .actionScriptProperties file
remove -local and local names save the file and try to compile you would not get the error
to put back the local you have to rephrase the local as follows
-locale=en_US,us_EN
What worked for me was to remove all swc references from the project's compiler settings, then re-insert them.

ZIP Embedding throws error

I want to embed a ZIP-file into my AS3/Air-application (with Flash Builder) and open it via FZip. For embedding, I use this code:
[Embed(source='../bin/art/resources.zip', mimeType="application/octet-stream")]
public static const rsClass:Class;
When I try to save the project the program chrashes and throws an error:
"Workspace is being build" has encountered a problem. During "Workspace is being build" an internal error has occured. (this is just a bad translation, not original) Java heap space
I click OK, the internal error appears:
The error "Disc space too low" has appeared. Look into the Readme-File at "Run Eclipse" you will find information [...] It is recommended to end the workbench. Do you want to end the workbench? yes/no
In an earlier version of this post I said, that the program doesnt start. That is not true. Only saving causes this error. Because of the saving errors, an earlier version of the program is started, but without errors. When I try to make a bytearray out of the zip, it causes an error (initial content not found), but I suppose the zip doesnt load, so this is not unusual.
you should NOT embed this ZIP but load it instead, you can add to the AIR package any files/folders.
To do it:
in Flash IDE go to "AIR for Android Settings" or "AIR for iOS Settings" and at the bottom of the dialogue box you have "Included files:" field then add folder or file you need,
for FlashDevelop what ever will be in bin folder will be packaged in air as described here
In Flex it will be the src folder and in the export wizzard you can select which files to include like described here.
Edit also you should consider for very large files following idea:
don't include big files (or just basic elements) and download big files and save on user device e.g. on sdcard, and then load it from there.
best regards