View Full Version : xml.onLoad = // please help
Nothing007
07-05-2005, 03:50 PM
Hi all,
please help this function.
my_xml.onLoad = function (success)
{
If (success)
{
parseXML; // this function not same frame, how to call this function?
}
}
// this function not same frame
function parseXML ()
{}
Thank You ALL
Nothing007
07-05-2005, 03:55 PM
Hi all,
please help this function.
my_xml.onLoad = function (success)
{
If (success)
{
parseXML; // this function not same frame, how to call this function?
}
}
// this function not same frame
function parseXML ()
{}
Thank You ALL
Slowburn
07-05-2005, 05:40 PM
you must make sure that your parseXML() function has been declared before it is called.
Example:
If your onLoad() is in frame 2 of your movie, then the parseXML() must be decalred before (frame 1) or on the same frame (frame 2).
Nothing007
07-05-2005, 07:27 PM
OK...
main.mc ---- root animation
//my_xml.onLoad = function (success)
//{
//If (success)
// {
// parseXML; // this function not same frame, how to call this function?
// }
//}
|----- site.mc
|----- myXmlMenu.mc
// function parseXML ()
// {}
my_xml.load - root site
function 'parseXML' no root site
How to call this 'parseXML' function next next frame next next mc?
Than You all
CyanBlue
07-05-2005, 11:27 PM
Howdy and Welcome... :)
You have to add '()' at the end of the function name to execute the function...
parseXML();
You should be able to call the function as long as it is initialized before your onLoad handler gets called... If you have that function defined in the frame after your onLoad handler, you should move it cuz there is no point of defining a function at the later frame...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.