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 you have a namespace vk, and you declare a local var vk:Object and then are trying to call some method on it. To as3 compiler vk is not a local var but a namespace, woala)) The solution is just select another name for you local var šŸ˜‰ Cheers!

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 is that the js file just got cached and you load old version which is missing funcs or having old versions of them šŸ˜‰ In this case you could do it this way:

<script src=”/js/yourjsfile.js?604” type=”text/javascript”></script>

where 604 is just the number of your edit) so you edit js file and inc this by 1 for example so that client loads it anew..
Cheers, hope this helps someone, also let me know if there is something you can add, comment on this

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

Crop tool in photoshop CC not working (solved “problem”)

Well if you drag some photos to your photoshop CC canvas, scale, rotate, position them as you need and select crop tool it could fail. Or better say perform no visible action, the outer parts of images remain where they were i.e. no cropping occurs. This could be because these layers are smart-objects (whatever it is) )) and have special icon on the layer list. The solution is to rasterize those layers before cropping. THat’s it, thanks, bye!)

Posted in Art & drawing | Comments Off on Crop tool in photoshop CC not working (solved “problem”)

Chrome cleanup-tool

Recently, my mom caught a browser hijack malware.. forcing its search-engine to get default in all browsers. The name(and related names) of it was this:Ā Smartbar, sonic-search, ReSoft, Websearch, snapdo.com

Well, in order to remove it use a tool created by Google, thanks to them, which is called:

Chrome cleanup-tool.Ā ItĀ cures (removes) this search-tool from all browsers: firefox, chrome…

https://www.google.com/chrome/cleanup-tool/

Posted in Personal | Tagged , , , , , | Comments Off on Chrome cleanup-tool

Can’t sleep in the night?? draw some dumb stuff))

turok_mhehe

Imagine Turok with graphics such as I’v just made)) uber realistic special effects)

Posted in Art & drawing | Tagged | Comments Off on Can’t sleep in the night?? draw some dumb stuff))

Bought one more tablet. Wacom ctl-460

IMG_20150624_013123

This one is not too large, but is quick and responsive. It doesnt have an eraser on top of the pen, but since I only draw in adobe flash, I dont need it anyway)

Posted in Personal | Tagged | Comments Off on Bought one more tablet. Wacom ctl-460

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 inside
}

//and what I wanted to point out..
//This won’t work

/*
if (nTemp == NaN)
{
//aha
}
*/

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