I'm rebuilding this embedable player for a client of mine, the video file URL and a couple of other variables are in the HTML as Flashvars. I suspect something is wrong with the code that looks for the flashvars.
Link to test page: http://dev.howdini.com/embed.html
The top part showing the green box is where the player didn't load because it was unable to obtain the Flashvars form the HTML. The player below has the Flashvars string hardcoded into the player so it works.
I believe the problem lies somewhere below Perhaps something wrong with the way I'm trying to pull in the Flashvars?
// LIVE Embedded
//vidURL = stage.loaderInfo.parameters.fvar;
vidURL = this.loaderInfo.parameters.fvar;
fvarText.text = "vidURL = this.loaderInfo.parameters.fvar"
vidSplit = vidURL.split(".flv")[0].split("/");
varVid = vidURL.toLowerCase().split("&vid=")[1].split("&")[0];
varChid = vidURL.toLowerCase().split("&chid=")[1].split("&")[0];
// Hardcode Testing
//(This creates the player that works at the bottom of the test page)
/*vidURL = "http://howtoevery.vo.llnwd.net/o18/Pantene_TaylorSwiftUpDo_H_828-640x360.flv&VID=690&CHID=999";
vidSplit = vidURL.split(".flv")[0].split("/");
varVid = vidURL.toLowerCase().split("&vid=")[1].split("&")[0];
varChid = vidURL.toLowerCase().split("&chid
I get this error when I export from Flash:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.howdini.HowdiniPlayer::Embed/init()
at com.howdini.HowdiniPlayer::Embed()
I expect this error however since obviously the Flash isn't embedded yet, but could this error shed any light on why my player isn't able to get the FlashVars link and then render itself?
The HTML embed code:
<object width="640" height="395" border="0">
<param name="flashvars" value="fvar=http://howtoevery.vo.llnwd.net/o18/Pantene_TaylorSwiftUpDo_H_828-640x360.flv&amp;VID=1273&amp;CHID=4" />
<embed src="http://dev.howdini.com/embed.swf" width="640" height="395" flashvars="fvar=http://howtoevery.vo.llnwd.net/o18/Pantene_TaylorSwiftUpDo_H_828-640x360.flv&amp;VID=1273&amp;CHID=4">
</embed>
</object>