Content

File: Others

I’m not sure how serious it is, but this may affect many sites especially flash websites. In safari 3 when you call window.open(“url.html”,”window_name”,”width=”+screen.availWidth+”,height=”+screen.availHeight), being different from other browsers, safari sets the inner document width and height to the screen availWidth and availHeight. This means, the popup window is actually bigger than availWidth and availHeight because [...]

2 comments  » Read the rest

2007-09-11 :: 5566 // Others
Okay, I’m an IT Nerd

3 comments  » Read the rest

This script adjust the coordinates (x,y) of all elements on the stage and in the library into integers.

2 comments  » Read the rest

2007-06-06 :: 5566 // Others
Update on VIM for Actionscript

I’ve updated _vimrc and the syntax file to solve the following two issues: Disable pasting using mouse middle button: added “map ” at the end of _vimrc. Turn syntax to be case sensitive: commented out “syn case ignore” You can download these two files here >>vimrc<< >>actionscript.vim<<

 » Read the rest

From time to time I get the problem that the compression type of imported images in the library is set to “Lossless PNG/GIF” (especially when using Mac) which blows up the swf file size a lot. It’s easy when there are just a few of them. You can manually click and change. But sometimes there [...]

2 comments  » Read the rest

After trying SEPY, SciTE 1.53, SciTE 1.61 (meychi website down) and FlashDevelop, now I’ve moved to Vim (Vi improved). The nice thing about Vim is that it’s built for programmers and it can greatly improve your editing speed. You can do everything without touching your mouse or moving your hand to the arrow keys. And [...]

9 comments  » Read the rest

2007-04-26 :: 5566 // Others
Future of Flash Websites?

I’ve slowly developed some negative feelings about Flash websites. “I’m pretty sure there’s a lot more to life (web) than being really, really good looking.” When I saw the get the glass website, my jaw fell off. But after I played for half an hour, I didn’t get any idea of what the product is [...]

7 comments  » Read the rest

2007-03-22 :: 5566 // Others
Issues with Internet Explorer 7

getURL fails to open new window in a popup window If the flash is held in a popup window, getURL with a "_blank" target fails to open a new window in IE7, e.g. getURL("http://www.google.com", "_blank", "GET"). You need to call "window.open" function in javascript, getURL("javascript:window.open(‘http://www.google.com’)", "_self","GET"). http://localhost makes IE7 behave strangely As one of Microsoft’s [...]

2 comments  » Read the rest

Last time I suggested deleting DOCTYPE line to solve the problem that full browser Flash not working in Firefox. A lot of people said it wasn’t a good practice. The problem can be solved by setting body height to 100% or using loose.dtd DOCTYPE. After Firefox 2.0 was out, removing the DOCTYPE line became the [...]

4 comments  » Read the rest

If you define a variable name as “private” in Javascript, Safari will terminate your code from there. It doesn’t give any error message. This only happens in Safari. IE/IE7, Mozilla Firefox and Opera don’t have this problem. I think the keyword “private” and “public” is conserved for some function in Safari, some OOP thing? Wasted [...]

2 comments  » Read the rest