Passing variables to flash
As part of my site deign I was after a method in which I could have a reusable banner. This banner was going to be a flash program and would be cached for every page. I wanted to pass a variable to the flash program, and that would be the title for that page.
There are several methods of passing variables to a flash program. The first method that I used, passed the variables via the HTML tag value.
Below is an extract of the code that I use for the navigation bar:
<body onLoad="PassFlash()" >
Extra bits have to be added in the code that loads the swf plugin. They are the id=mndbanner in the codebase tag, the NAME=mndbanner and swLiveConnect=true in the embed tag. The movie name ( name of the swf file), in this case mndbanner has to be the same as shown.