How to reset Motorola XOOM

Posted in android, Uncategorized on February 10th, 2012 by Łukasz Grela – Be the first to comment

Hi,

for some time I am a happy owner of Motorola XOOM tablet, it is great and I would recommend it to anyone, the battery life is great, 3 days of using it (playing, browsing web, music, youtube) for over 14 days(!) when you just need to check email daily:) All great but when there is some app that will freeze system then you are stuck. With phone I could just take out the battery but with the tablet it is not possible. The leaflet that comes with tablet doesn’t explain how to do it either but search engine is always handy:) so following link describes how to soft-reset the tablet:)

The String’s replace method and ArgumentError: Error #1063: Argument count mismatch error

Posted in actionscript, bugs, flash on December 8th, 2011 by Łukasz Grela – 1 Comment

Hi,

recently I have upgraded flash player (11.1.102.55), and suddenly found that one of my components was throwing following error:


ArgumentError: Error #1063: Argument count mismatch on Main/removeLinkStyleClass(). Expected 0, got 6.
at String$/_replace()
at String/http://adobe.com/AS3/2006/builtin::replace()
at Main/init()[...\bugs\string_replace\src\Main.as:27]
at Main()[...\bugs\string_replace\src\Main.as:16]

I was surprised as the code wasn’t changed and it was working earlier. When I have opened the problematic function I’ve noticed that it is the one used in replace function as the second parameter AS3 function replace(pattern:*, repl:Object):String. As I was creating this method following up the documentation I was using the arguments object, however after the flash player update this error appeared. At first I was lost with that, but then I’ve tried with …(rest) parameter, and it worked!

So if you will have the same problem try to modify your method to include the …(rest) parameter:

function replaceFunction(...args):String
{
//do what ever you need with args and return string
}

p.s. I will try to find the FP version when it started to be a problem, maybe it was announced?:)

best regards

MAX 2011 Envision – Flash Player 11 and Adobe AIR 3: Changing the Game | Adobe TV

Posted in flash on October 27th, 2011 by Łukasz Grela – Be the first to comment

MAX 2011 Envision – Flash Player 11 and Adobe AIR 3: Changing the Game | Adobe TV.

Comparing Strings in JAVA

Posted in android, JAVA on August 31st, 2011 by Łukasz Grela – Be the first to comment

Hi,

for last few weeks I am doing JAVA programming for Android, and as my background is mainly with ActionScript I wasn’t aware of JAVA nuances with String comparison, I thought that the equality operator will work i.e. a == “a”, but it isn’t. The String class (java.lang.String) offers comparison methods for that, the ones that I like are: equalsIgnoreCase and equals as they in result returns boolean value.

best regards

JSFL – copy filters stack from Flash IDE into ActionScript 2 or 3 code

Posted in actionscript, flash on July 21st, 2011 by Łukasz Grela – Be the first to comment

Hi,

working with designers one will always get into a problem of replication IDE based filters via code, it’s not a pleasant task nor quick as well, but what about if we could actually make it quick and pleasant? Well, that would be something.

read more »


Switch to our mobile site