Groups | Blog | Home
all groups > macromedia flash flashcom > july 2006 >

macromedia flash flashcom : problems with Application.config()


_Pez
7/25/2006 12:00:00 AM
Hi There,
I'm having problems with setting variables and accessing them through
Application.config. I have set custom tags within<config> tags within
<applicationObject> tags in the <JSEngine> section of my Application.xml. I've
copied that Application.xml into the registered folder for my application. and
tried to access the settings with:

application.onAppStart=function(){
trace(application.config.user_name);
}

but no joy :( . I've read the livedocs at
http://livedocs.macromedia.com/fms/2/docs/00000647.html (There seems to be an
error in the XML on this page where the closing <config> tag is missing its
'/') has anyone else got this working?

Thanks

Matt
_Pez
7/25/2006 1:16:13 PM
I worked it out.

I should have been doing "this.config" instead of "application.config"

application.onAppStart=function()
trace(this.config.user_name);
}

that fixed it.

AddThis Social Bookmark Button