So youve seen the ads the ones that crop up wherever they please, swirl all over the page as if they arent even a part of the web page that youre visiting, and then confine themselves to a nice, comfortably unobtrusive area once theyve finished getting your attention. Theyre increasingly popular these days, and if you know much about animation, then you can probably tell that theyre done in Flash. But considering that these ads obviously dont have any background other than the web page itself, while Flash doesnt allow transparent document backgrounds
you may have been a bit confused as to how this was accomplished.
The answer is a little snippet of HTML called wmode, and something known as a div layer. Rather than working with these in Flash, youll instead edit the raw HTML code. The wmode tag controls the transparency of Flash objects, while div layers let you position things with more freedom than the standard constraints of paragraph tags and tables.
So whip up a Flash file that youd like to layer transparently, publish it to an HTML file, and lets take a look at the source code. Ive just created a simple little animation using a motion tween and a motion guide.