Archive for September, 2008

Actionscript 3 stage origin.

Hi there, it’s been a while.

So, what’s about AS3 stage origin? Well, I tried to use the stage with this.stage.scaleMode = flash.display.StageScaleMode.NO_SCALE; associated with this.stage.stageWidth; and this.stage.stageHeight; to work with a non-scaled, just-in-time dimensioned stage; but I had a nasty problem: when I used this.stage.stageWidth; and this.stage.stageHeight; to get the stage dimentions, and set them to my objects (movieclips, sprites, layouts, etc.), with X = 0 and Y = 0 coordinates; they were stuck at some given coordinates, but not in the top left of the browser viewport.

Actually, the 800×600 stage was centered. It’s quite simple, you just have to set this.stage.align = flash.display.StageAlign.TOP + flash.display.StageAlign.LEFT; but if you don’t know that; you could waste a lot of time wondering why the stage origin is not in the top left.

, , ,

1 Comment

The end of time

The Large Hadron Collider is not gonna kill us all. At least for now and the next weeks. The last night was the very first time of my life I seriously considered the possibility of a sudden collapse of our world. And I have to say that it’s a bit disturbing. But today’s experiment was nothing more than a little warming round. The real threat (if it exists) will be in the next weeks. :)

Indeed, I do not know enough about physics and science to correctly estimate the risks with this experiment; but nevertheless, I think that a problem could be possible, since even if it is not the very first experiment of this kind, it’s the first one which will be that important, with that-near-to-light-speed speeds.

By the way, if Swiss aren’t so dangerous, we will stay alive longer. ;) And there is some nice photographs of the LHC on the official website. And, if you like jokes, I found a nice music clip about the LHC. :D

No Comments

Google Chrome

Yeah, It was obvious that sooner or later, I’d come to speak about the attempt from Google to do a browser. Actually, I just tried Chrome. And after a short time of use, I know that this browser is not yet for me: ok it’s fast. But, it has too many lacks. Even if it could be skinned easily by replacing a dll file, it doesn’t support extensions, and has many missing features. I found a related google project, but the code is hosted there. If you want to compile it yourself, here are instructions.

Finally there are two bills on the subject, one by Lennart Regebro, and the other from “the independent”.

Note: for those who want to change the theme, just rename the file default.dll. I saw a theme changer on a forum, but it seems to be done in vb6, so you’d better get away from it if you don’t want to screw your Chrome up.

,

1 Comment