CSS Tools: Reset CSS

http://meyerweb.com/eric/tools/css/reset/

Posted in CSS | Tagged | Comments Off on CSS Tools: Reset CSS

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

Hi,

today I’ve come across the “Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.” error, but becuase (as always) the Flash Player errors are really stripped from any information that might help to pint point the problem I couldn’t find it. After doing some searching I’ve found that the img tag on the html enabled textfield will cause this error when image will not load properly.
Continue reading

Posted in actionscript, flash | Tagged , , , , | Comments Off on Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

The parseCSS of StyleSheet silently fails

Hi,

when you use the parseCSS method of the StyleSheet, you will have no indication about success of the invocation. When passed string contains invalid CSS text then this method will silently fails. The workaround is to compare the lenght of the styleNames property before and after the call to parseCSS, if both values are equal then parseCSS has failed.

		protected function parseCss(stylesheet:StyleSheet, cssText:String):Boolean
		{
			if (!stylesheet)
			{
				Log.f(TAG, "Invalid argument, stylesheet can't be null.");
				return false;
			}
			if (!cssText || cssText == "")
			{
				Log.f(TAG, "Invalid argument, cssText can't be null nor empty.");
				return false;
			}
			
			var _nStylesLength:int = stylesheet.styleNames.length;
				
				stylesheet.parseCSS(cssText);
				
				
				if (_nStylesLength == stylesheet.styleNames.length)
				{
					Log.f(TAG, "There has been an error while parsing css string.");
				}
				
			return _nStylesLength != stylesheet.styleNames.length;
		}

best regards

Posted in actionscript, bugs, flash | Tagged , , , | Comments Off on The parseCSS of StyleSheet silently fails

How to reset Motorola XOOM

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:)

Posted in android, Uncategorized | Comments Off on How to reset Motorola XOOM

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

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

Posted in actionscript, bugs, flash | Tagged , , , , , | 1 Comment