Hello I continue to develop a framework for working with Javascript Canvas, based on MooTools and designed to create animations, games, ui, and everything you want. And today - a very important point for this framework - the public launch of the official site.
To start with, we greedykid and Nutochka ported «Asteroids» - Eighties cult game, but with improved graphics, which works in all modern browsers (yes, about ie <9 there is nothing to be). Work on asteroids showed me the potential of this technology. I am sure that this is not the limit, I have interesting ideas and even implementation, and therefore I will continue development of this framework. Look for interesting new applications.
I never thought that JavaScripte can write pain less playable game, and suddenly there is. Although up to the flash toys JavaScript has to grow and grow, but still set off a comrade TheShock
|
In this article we rascmotrim work with such events as MouseEvent.CLICK, MouseEvent.DOUBLE_CLICK, MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_OUT, MouseEvent.MOUSE_OVER, MouseEvent.MOUSE_UP, MouseEvent.MOUSE_WHEEL, MouseEent.MOUSE_MOVE
First we'll create an empty file EventExample.fla and in the file properties will show the class that will MouseEventExample.as initsializirovatsya startup flush. This class, I'll create a package event.
Class Code MouseEventExample.as
1 2 3 4 5 6 7 8 9 10 11 12 13
|
package event { import flash.display.Sprite; public class MouseEventExample extends Sprite { private var size:uint = 100; private var bgColor:uint = 0xFFCC00; public function MouseEventExample() { var child:ChildSprite = new ChildSprite(); addChild(child); } } }
|
I continue to actively develop a flush, and in this article I will give an example of watchmaking in ActionScript 3. First, we need to create a CreatedClock.fla fla and a package for him Clock which create a class ClockName,which will be described in the language of the whole executive ActionScript code. To initialize the class ClockNamein the document properties CreatedClock.flawe indicate a class that will start when you open a document clock.ClockName
This entry indicates that the class ClockName located in the clock. The structure of the folders I get the following:
1 2 3
|
-CreatedClock.fla -clock --ClockName.as
|
First create a circle of 100X100 pixels which will move our arrows. The format of the circle does not matter, let it be normal bitmap image.
How reliable is my password? The question answers howsecureismypassword.net, a site for beginners paranoid. Speak to him favorite password and find out how the well.
Specify the password from the "Facebook" roommate. The site says that this is one of the 500 most common passwords and such accounts are cracked constantly. Look for it in the list and do not use ever.
Passwords for review are accepted only in the Latin alphabet with the numbers and now these symbols:! @ # $% ^ & *? _ ~ -. The site does not store them (at least there is so written). The main advice has not changed: do not use simple words, use a combination of numbers or signs. There is a link to detailed Manuals, how to think up a good password, what to do and not to worry.
howsecureismypassword.net
About three thousand years. Fuh, swept! Now I can sleep peacefully.
More than two years ago, in September 2004, I published an article entitled Styling. My aim in this article show that the attempt to use CSS, to make a form that would vygledela in all browsers and operating systems equally, is useless Zanati. At the moment it just can not be done. After the discussion on the use of CSS for form elements, constantly there are new versions of browsers and operating systems, as well as entirely new browsers were released in September 2004, it is time to upgrade. Because of all this I spent a lot of time to create a total of 224 screens showing the various CSS rules applied to forms of governance. Screenshots are taken from 8 browsers on 4 operating systems, a total of 14 different combinations of browser + OS.
Beautiful pictures, which can cast a spell to create different user interfaces.
CleanCSS is a powerful CSS optimizer and formatter. Basically, it takes your CSS code and makes it cleaner and more concise.
The CSS optimizer was originally developed by some awesome dudes over at CSS Tidy. They built the program and have made it free for everyone to use. I stumbled across their optimizer one day while looking for help with my CSS. I wanted to know the shortest way I could style a background of a web site without having to use all the "background-image" and "background-repeat" tags. I found some other optimizers which I tried, but none worked as well as CSS Tidy. It was actually hosted on some random CD Burning website. Why? I have no idea.
But after I posted about it on my blog, I noticed that a week later, the site no longer existed. I was bummed because I was trying to show my fellow designers at work this amazing utility. So I took the liberty and installed CSS Tidy on my own webserver and registerd cleancss.com. I also styled it up to my liking (see the grass green colors?). So now I can make sure this kick-ass CSS utility stays up forever. And gets used by web designers everywhere.
Sometimes you want to, that would be written in code on the CSS looked nice and feast for the eyes, for these purposes is ideal for service CleanCSS, which returns our CSS in a legible and pleasant way.
If you had to use PHP, then you have used and expansion. With few exceptions, each available for use by function in the PHP language is grouped into one or another extension. Most of the functions (over 400) is part of the standard extensions. PHP source code distributed with some 86 extensions, which have about 30 functions in each. Taking, we get somewhere in 2500 in the amount of functions. If this is not enough, PECL repository offers more than 100 additional extensions, even more can be found in the vast Internet.
The material presented in this article implies familiarity with the language itself as PHP, and with the language of the interpreter is written PHP: C.
To begin with, that we define the reasons for which you want to write an extension for PHP:
- The existence of some libraries or OS specific calls, which can not be made from PHP directly because of the level of abstraction adopted in the language;
- You want to get PHP to work non-standard way;
- Do you already have the solution written in PHP, but you know that it can be fast, compact and consume less memory during the operation;
- Do you have a special code that you would like to sell. However, it is important that the buyer would be able to run your code, but do not watch the source.
All of the above reasons are quite adequate, but, creating expanding, first of all you should understand that this is primarily expansion.
Always wanted to write extension to PHP, but how it broke was to seek information. But here in Russian, and even painted all very well. Definitely set off a comrade krestjaninoff
|
|
|
|
Nice Ajax Poll
Which one of my extensions is the best?
|