flashdudette
01-31-2003, 04:07 PM
I have a question concerning returning values.
I have a as file named ManualId.as that is called in the first frame of serveral swf files with:
#include ("ManualId.as")
In the Manual.as file, there is the code:
// set contentId for the chapter.
function setContentId () {
prefix = "pit-"; // prefix corresponding to a specific manual
var contentId = prefix + cName;
}
Then in each chapter I have the code:
cName = "Nameofchapterhere";
But when if do a trace with
trace(contentId);
the contentId is not returned (just the cName, in this example Nameofchapterhere). It is important because we check the completion of the manual with an asp file that calls for the variable contentId.
How can I be sure that the contentId is filled with both the prefix and the cName variables?
I have a as file named ManualId.as that is called in the first frame of serveral swf files with:
#include ("ManualId.as")
In the Manual.as file, there is the code:
// set contentId for the chapter.
function setContentId () {
prefix = "pit-"; // prefix corresponding to a specific manual
var contentId = prefix + cName;
}
Then in each chapter I have the code:
cName = "Nameofchapterhere";
But when if do a trace with
trace(contentId);
the contentId is not returned (just the cName, in this example Nameofchapterhere). It is important because we check the completion of the manual with an asp file that calls for the variable contentId.
How can I be sure that the contentId is filled with both the prefix and the cName variables?