Just in case anyone else wants to hard-code a variable and can't find a way of doing it in version 4...
Player.as says that you can change the page to hard code, however this doesn't actually hard code, it just sets the defaults.
The config object is loaded first and then the flashvars change the object in Configger.as
Therefore the easiest way to hard code (especially if you aren't greatly experienced in ActionScript 3) is to change
/** Compare and save new items in config. **/
private function compareWrite(obj:Object):void {
for (var cfv:String in obj) {
config[cfv.toLowerCase()] = Strings.serialize(obj[cfv.toLowerCase()]);
}
};To
/** Compare and save new items in config. **/
private function compareWrite(obj:Object):void {
for (var cfv:String in obj) {
if (cfv.toLowerCase() == "streamer")
{
}
else
{
config[cfv.toLowerCase()] = Strings.serialize(obj[cfv.toLowerCase()]);
}
}
};You can continue to add blank if statements for other variables.
if (cfv.toLowerCase() == "streamer")
{
}
else if (cfv.toLowerCase() == "file")
{
}
else
{
config[cfv.toLowerCase()] = Strings.serialize(obj[cfv.toLowerCase()]);
}Make sure you set your (now hard coded) config defaults in the Player.as file.
Graham
That's correct, thanks for the info!