[as2] FlashVars and FLVPlayback

[FONT=Verdana]SOLVED: sorry to waste your time. I forgot to put the flashvars in the javascript. D’oh! I really woke up on the stupid side of the bed this morning…

I’ve done this before, but I’m missing something this time. I have an FLVPlayback getting the path and filename of the flv to be played from flashvars (or it should be). But I can’t even append these to the url or in the object and embed and get my swf to read them. What am I missing?


You can see the text fields at the top displaying the variables it’s looking for before it assigns default values. You can view the source to see my flashvars, but here’s the short of it:

<param name=“FlashVars” value=“mediapath=media/&krnt_title=broadcasters”>[/FONT][FONT=Verdana]

[FONT=Verdana](I have url-encoded the chars / and _ with no change.)

debug = "ON LOAD: mediapath = "+ mediapath + " " + "krnt_title = " + krnt_title;
if (mediapath != undefined) {
debug2 = “Found outside vars.”;
_global.mediapath = mediapath;
krnt_title = krnt_title;
}else {
debug2 = “No outside vars found; using default.”;
_global.mediapath = “media/”;
krnt_title = “webcasts”;

[/FONT]Thanks for any help pointing out the idiot button I forgot to push. :slight_smile: