Category Archives: Coding faults collection

as3 error 1180: call to a possibly undefined method

I met this error several time, and it was pretty hard to fix, cause I didn’t know why this error was raised at all. The reason was this: I used a local var name identical to some namespace name. Let’s say … Continue reading

Posted in Adobe Flash, as3, Coding faults collection | Comments Off on as3 error 1180: call to a possibly undefined method

pseudo-problem: js function undefined

well often you have an external js file you load and keep some functions in it; and eventually it can appear broken or missing some of the functions while you code your site, or they could work improperly.. My guess … Continue reading

Posted in Coding faults collection | Comments Off on pseudo-problem: js function undefined

Tiny tip for NaN use

Use case: //you have a number in text format and you want to convert it to number format //and also to make sure there is no character inside var nTemp:Number = Number(someStringWithCharactersInsideProbably); if (isNan(nTemp)) { //aha.. there are some characters … Continue reading

Posted in Adobe Flash, as3, Coding faults collection | Comments Off on Tiny tip for NaN use

“Include Hidden Layers” in flash drove me insane several times

When you sell a sitelock of your game to some game portal, it usually gives you branding files and its custom loader in a .fla file. I had met same simple, yet confusing problem for several times. Here’s what it … Continue reading

Posted in Adobe Flash, as3, Coding faults collection | Tagged | Comments Off on “Include Hidden Layers” in flash drove me insane several times

MyFaults: Document class not working, as3

Well, I should have omited the “.as” extension when setting the document class Spent half an hour)) http://www.adobe.com/devnet/flash/quickstart/external_files_as3.html

Posted in Adobe Flash, as3, Coding faults collection | Comments Off on MyFaults: Document class not working, as3

MouseEnabled “not working” in flash as3. Solved

Spent half the night fighting that issue, I wanted to disable mouse clicks for TextFields on my gui HUD panel. So that I could click units beneath those text fields. tf.mouseEnabled = false;//didnt work for me as well as tf_parent.mouseEnabled … Continue reading

Posted in Adobe Flash, as3, Coding faults collection, Game development | 4 Comments