Flash MX 2004 - Tutorial

CSS & Context.menu

Let's use CSS with Flash MX 2004!
At least with Flash we can better manage text formatting , for player 7 currently supports some CSS (Cascading Steel Sheet) options, and that's not all...
We can import CSS and contents externally, as you can read in this tutorial, and you can dinamically change contents and style.
Let's use two code lines to store by using SO (Shared Object) our preferred style, so that the visitor will find his customized style when he comes back again.
Let's associate Context-Menu customization (right-click mouse to check it out) and the possibility to load in our movie a HTMLpage, embedding itself also swf movies, and here it is the result!



Let's customize right mouse menu!
Considering that with Flash MX 2004 we can, thank the object ContextMenu, also modify right mouse button menu , here it is the right chance!
We can add names in Context-Menu and assign it a function one by one. Then we can modify menu items, according to the movie zone where you click, and assign that menu to a MovieClip, a TexTField or a Button, creating thus several and different menus.

Contents & Styles completely dynamic!
You can load dinamically contents from external files (html, xml, asp, php, cf, ect), and apply dinamically a style avoiding reload of contents.
In this page there is nothing about the movie but the code!
Page contents are externally loaded from body.html page, formatted by style.css file. In resulting page we'll find embedded photos and swfs!




Over the Flash

And that's not all, folks...!

Here on the left you can find a movie that is embedded as a pic, and that we can play clicking over it or by menu item itself. To play or stop the movie click here!
We linked page language to the Operative System one, too.
To switch to Italian version click here.

Well, that's a good starting point, isn't it? Now it's up to you!

To insert a comment or for taking part to a discussion about this tutorial, we wait you in our Forum!





Credits: thanks to Macromedia General Italy NG for testing and Widus for English translation.
Complete tutorial will be available on Ingenium or on line sooner.