Baltimore Squirrels

here squirrely, squirrely

Having trouble with FlashVars and CS3?

Apparently there was some kind of mixup when they put together the Flash CS3 documentation because there is no mention of editing AC_FL_RunContent to get FlashVars to work.

I’ll state it here for anyone who is searching for answers after 2 hours of confused testing. To use FlashVars you have to (in addition to what the CS3 docs say) add two arguments to the AC_FL_RunContent call in your HTML, specifically 'FlashVars' and 'key=value&key2=value2&...etc' (you know, the actual vars).

Granted, to any seasoned Flash developer this gotcha is probably known, but as this is the first ActionScript I’ve touched in a long time I was bitten.

Written by Tom

February 13th, 2008 at 1:58 pm

Posted in Web Development