What is FLASH?
Flash 8 is a powerful tool created by Macromedia that has overcome the best expectations of its creators.
Macromedia Flash was originally created in an effort to realize colorful animations for the web as well as to create animated GIFs.
Designers, web professionals and amateurs have selected Flash 8 by many reasons. Further we will see why Flash 8 is interesting.
Why should I use FLASH 8?
The possibilities of Flash are extraordinary, each new version has outstripped the previous one, and the present Flash 8 is not an exception. Although its common usage is to create animations (during this tutorial we will see how easy it is) it has far more applications. They are so numerous that all web designers should learn how to use Flash.
Flash has been made up in order to fix the great lack in the Internet: that is, Dynamism. This dynamism does not imply only animations but rather interactive animations, which allow users to see the web as something attractive, not static (unlike most of the pages that are made by the use of the HTML language). With Flash we can easily and quickly create animations of all types.
It is easy to learn how to handle Flash, it has a friendly environment that invites us to sit down and spend hours making whatever our imagination suggests, but that is not sufficient to be preferred by professional designers. Then what is it?
From Flash MX 2004 to Flash 8
There are companies that improve their products just by the economic necessity. When it happens, users promptly notice this by the few improvements in the newer version. That is not the case of Flash 8, which continues considerably improving the new versions of its products following the Macromedia tradition.
If we thought that Flash 8 MX was already insuperable, do not miss the improvements that Flash 8 provides. These improvements consist in: easy handling, higher graphic potency and integration with programs of image edition, in having ability to import video, possibility to emulate your mobile devices video oriented, and for the beginners, the Action Script wizard has come back. Let us analyze these advantages in more details:
Attractive Designs: Flash 8 allows the using of visual effects that will ease the creation of animations, presentations and forms more attractive and professional. Moreover, it supplies a new set of tools that will help you doing this easily and faster, such us filters and blend modes, added in this version.
Font Optimization: It also includes some readability options for small sized fonts, what makes our texts more comfortable to read. Also you can edit this optimization, allowing you to select the configuration pre established for dynamic and static texts.
Consolidated Libraries: Now you can search any object existent in our movies faster, browsing our open libraries from a single panel.
More powerful animation: Flash 8 allows much more control of the interpolations setting a new edition mode form which you will edit the velocity the rotation, shape, color and movement are applied.
More powerful graphics: Avoid the unnecessary representation of vector objects setting an object as a bitmap. Although the object is converted to a bitmap, the vector data remains the same, so, in every moment, you can convert it again to a vector object.
Improvements in video importing: To ease the working with video formats, Flash 8 provides high-quality new independent codec, completely skinnable.
Metadata Compatibility: Include your SWF files in searching engines defining a title, description and/or keywords.
Mobile devices Emulator: Preview your Flash Lite compatible mobile devices movies oriented with the new emulator Flash 8 includes.
ActionScript Wizard: The ActionScript Wizard has come back Was deprecated in the last version, but now it has been retrieved and improved. Now ActionScript is at your reach.
The alternatives to Flash 8. Javascript
For a long time, the language HTML has shown important shortages in all the aspects. The HTML creates static web page, pages in which all the movement that we can find is due to the animated images (GIFS) or to videos inserted in them... This language, revolutionary then, quickly demonstrated its insufficiency in all the fields. Alternatives started to appear soon:
Javascript was created in an effort to create actions or short programs that could be inserted in the web to animate it. Javascript, is not a programming language in the strict sense, since only creates "actions" that will be executed later in the browser, we can never create a program in Javascript, but only complements to the web. This language presents various inconveniences; first, its execution can be dangerous for someone who accesses the web, so many people decide to deactivate "Javascript" from their browsers. If our web page contains many Javascript code, the browser simply does not see it. Secondly and as usual, there exist browsers (each time less, that is true) that do not support it and it will be useless to seek to execute a Javascript code if the browser does not recognize it. Moreover, Javascript does not fit to create web pages, only complements them, that is why its general use is usually focused on some small "helps" in the interactivity of the web, as for example to verifying in the formularies, effects in the state bar...)
We should also emphasize that Flash can work together with javascript and execute codes and Javascript functions without problems, because Javascript is converted in a help for all users of Flash 8.
The alternatives to Flash 8. CSS
Although it is not widely noticed, HTML has a very limited power in the treatment of texts. In fact, the principal problem of HTML is the lack of precision rather than the incapability to show and distribute texts throughout screen (the possibilities that are usually more than sufficient for any ordinary user). So far, it is practically impossible to assure that the text is going to appear in the desirable form in the browser of another person, or for example, that HTML does not allow creating justified texts or just leave a margin to the left of the document... For this Cascading Style Sheets (CSS) were created.
CSS is very powerful, and has a number of advantages that have turned into a standard
(although one will always not be able to visualize a content, which is used a style sheet).
In addition, they allow to administrate texts and images for our web page in the desired way, "Style Sheets" is a magnificent form to simplify the code of the web page and to accelerate its creation, as its name indicates. Once the treatment to apply to one type of text (for example, to the titles) is created, then all the titles that we create and identify by it will have that treatment (color, font size, font type...). Thanks to the CSS we have gained control over our web pages, and perhaps in brightness and design, but these are not helpful for creating animations.
Why do not use the Style Sheets within Flash?
For it was not contemplated in previous versions of Flash. From the version 2004 (Flash MX 2004) the style sheets are perfectly compatible with Macromedia Flash, just because they can be associated with texts used in our movie by mere assigning the style sheet that we want to apply. Moreover, the CSS have ceased being an alternative to the use of Flash and have been integrated within it. That is one more reason to use Flash.
The alternatives to Flash 8.DHTML
We have seen how the main problems of HTML are solved, but it is still unknown how to eliminate this "static" feature of the HTML pages. The first solution comes from HTML itself. It is called DHTML (or Dynamic HTML) and as its name indicates that it was made to create contents in movement in the web pages. Its functionality brings up to moving objects through the web, and moreover, it is used to create animated menus. For sure, that you had seen a lot without noticing. It usually appears as:
In fact the DHTML is nothing but, a combination of HTML and Javascript (so that, we will leave this to the end), although it is a good solution to create bright menus without extraordinary animations.
What is about its inconvenience? There are too many browsers that have problems with the DHTML and its download can be slow or delayed...
The Eternal Deal
First and foremost. What does Flash offer to us? Since Flash is the most powerful tool of the market to create multimedia content for the web, but it presents two important inconveniences.
The first problem is the compatibility with FLASH. Along with some browsers that do not support javascript or cannot see contents of DHTML (or including CSS), in order to see, FLASH has to have an special PLUGIN of Macromedia. A PLUGIN is an special program that let's your browser identify the FLASH movies, download and visualize them correctly. This PLUGIN is free. You can download it here. Fortunately, each time more browsers have incorporated it and each time more people know what it is and are not afraid when it is offered to them. So far, each time more people have this PLUGIN.
The second problem is the size of the movies and their download time. Whereas an HTML page can size about 10 KB on the average, a FLASH animation sizes much more. Evidently it depends on the contents, but usually it easily exceeds the 100 KB, and in addition if it incorporates sounds it is obvious that the number drastically increases. So the time that it takes to make the Flash contents visible is still greater and not all the visitors are ready to wait ... they just go to another page.
On the other hand, the wide bandwidth connections each time become more numerous. That eliminates the problem of the downloading time. But the day when all the people are connected to the high-speed internet is still far away so the debate will continue being open for a long time.
Here you have some interesting pages made with FLASH
- 2Advanced Studios
- NRG
- Ikea
To resume, nowadays it can be questionable: to insert or not Flash contents in a web page, although it depends on many things, for example, just like to insert DHTML. Still, keep in mind that Flash has much more features (the fact that has made other companies try to get "clones" of Flash). For example, the creation of interactive CDs (as those that are included in the informative journals, for example), the creation of advertising banners or the creation of animated cartoon using Flash 8 (you will be surprised to learn the quantity of well known animated cartoons created or animated by Flash). Moreover, Flash has an industrial use, since it is used for optimizing plans, creating designs of interiors and working with vectored images in general. Do not fail to learn handling the perspective program ... (at least with respect to web design).
Advanced. Javascript Examples
To proceed, we can see code of a web page example that is very simple and includes Javascript code, the outcome, try yourself pushing the bottom :
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"> // Javascript Code
function Hello() {
alert("That is Flash!");
}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<INPUT TYPE="button" NAME="Boton" VALUE="Press me" onClick="hello()">
</FORM>
</BODY>
</HTML>
Here you have the code in running order (you will be able to see it if your browser supports Javascript)
Finally, another example, to have an idea about Javascript power, as you have already seen that does not use neither to create web pages no animations... That is the code:
function Question() {
var answer = prompt("What is your name?", "");
if (answer)
alert("Enjoy the Flash Tutorial, " + answer);
}
And here you have it running