How to make a rubber banner

How to make a rubber banner

The rubber flash banner differently still is called just "rubber". Its main feature for the website is that regardless of the browser size, the banner will remain same by what it was conceived – beautiful, accurate and bright. Need for rubber banners arose because it is necessary to consider a raznokalibernost of computers of Internet users, at someone the monitor square, at someone large-format, at some it 14 inches, at others – 21 inches. Instruction 1. Before answering the question "How to Make a Rubber Banner?", it is worth answering other not less important issue: "And why it needs to be done?" For someone it can seem strange, but unities in this question at web designers, really, is not present. As motorists have, say, no consensus – whether it is good to go by all-weather rubber or it is possible to manage summer, or to use a complete set: summer rubber + winter … If at a banner the rigid sizes, we allow 1000 on 100, then on the screen with the permission on width more than 1000 points, it will be incorrectly reflected up to that the graphic elements hidden by the developer for edges of this banner can be shown. If at placement of a banner an opportunity to make it rubber is not considered, attractiveness of the website for visitors with the large-format monitor falls at once. They visit the website and see that at the left the cap begins and reaches only the middle of the screen, etc. Actually, it is the brightest argument in favor of "rubber" - it allows to make so that everyone – everyone – the user saw that design which was conceived by the designer on the website. 2. About that how to make a rubber banner, most evident to show on an example. Let it will be "rubber" of 100% on 70 which extends from 1000 to 100%. Means, the minimum banner size will be 1000 on 70. Also it is necessary to make a start from this size. At first it is necessary to make the most normal banner. The only thing that needs to be considered – it is necessary to execute it in movie clip symbolics. It is necessary to create a new character in library and in it already to work. 3. The banner is made. Let's say in the center at it – muvik (video the image displaying an essence of any movie or a game, etc.) with an inscription. This inscription always should be on the center. It is necessary to name this muvik, we will allow – CenterText. Against the background of an inscription it is necessary to make another muvik – with graduated fill. It will also extend in all width of a rubber banner. It is possible to call it – Fon. It is necessary to call one more muvik further, to stick it to right edges of the screen. Let it will be RightText. 4. The following action on the main stage takes out a roller with a banner. It is possible to call it OurBanner. The objects which turned out during work will also need to be moved. 5. Having come on the main stage into any shot, it is necessary to stop a roller – to write Stop – and to take out on the stage an empty roller for catching of events. It is necessary to insert the code into it: onClipEvent(enterFrame) { Stage.scaleMode = ""noScale""; Stage.align = ""TL""; Stage.addListener(this); this.onResize = function () { if (Stage.width> of 1000) { this._parent.OurBanner.CenterText._x = Stage.width/2; this._parent.OurBanner.RightText._x = Stage.width - this._parent.OurBanner.RightText._width; this._parent.OurBanner.Fon._width = Stage.width; } }} The rubber banner is ready.

Author: «MirrorInfo» Dream Team


Print