ok so I have had this lil problem posted on another site and it stumped them so I figured I would bring it here.
I am using the mdm extension to build a skinable browser for Brym’s desktop hud application (http://www.desktophud.com)
I am loading variables from a text document to get the folder name and image type of the skin.
I use this code to load the variables
config = new LoadVars();
config.load(“Browser skins/config.txt”);
config.onLoad = function(success) {
if (success) {
// trace(success);
[COLOR=Black][COLOR=#0000FF]skin_output.text = this.selected_skin+", "+this.skin_method[/COLOR];[/COLOR]
}
};
I know it works cause I see the vars info in my text box.
What I am having trouble with is the next bit
if (this.skin_method == png) {
//skin loading
//nav and overlays
loadMovie([COLOR=#0000FF]“Browser skins/”+this.selected_skin+"/navbar/navbar.png"[/COLOR], navbar);
^ were selected_skin = default-skin
and I have also tried
if (this.skin_method == png) {
//skin loading
//nav and overlays
loadMovie([COLOR=#0000FF]this.selected_skin+"/navbar/navbar.png"[/COLOR], navbar);
^were selected_skin = Browser skins/default-skin.
I also tried things like
var skinFolder = this.selected_skin;
if (this.skin_method == png) {
//skin loading
//nav and overlays
loadMovie([COLOR=#0000FF]skinFolder+"/navbar/navbar.png"[/COLOR], navbar);
all of which give me this error were the variables return undefined.
file:///C|/Documents%20and%20Settings/Jaden/Desktop/hud/huds/undefined/navbar/navbar.png’
I am really stumped here and would be grateful for some pointers.