On the first frame of the maintimeline I have the following code…
First I declare a variable…
var course_name = “language_arts”;
Then I define a function with 1 parameter…
function teaching_question_button(problem_number) {
loadMovie(course_name+"/problem"+problem_number+".swf", “_root.problem_movie_clip_holder”);
}
On a button on the main time line I call the function and pass a parameter…
on (press) {
_root.teaching_question_button(001);
}
This wont work any ideas?