j0se
June 4th, 2002, 07:34 AM
hi again,
i'm trying to execute the following from a function:
===
function play_scene (scene_name) {
        _root.scene_name.play("start");
}
===
scene_name is a variable that i'm passing from a button
e.g
'about us' button code:
on (release) {
        _root.play_scene("about_us");
}
the about_us mc is on the main time line and has the instance name: about_us, so i'm assuming the problem is in the function code/syntax
thanks in advance for looking at this
:)
i'm trying to execute the following from a function:
===
function play_scene (scene_name) {
        _root.scene_name.play("start");
}
===
scene_name is a variable that i'm passing from a button
e.g
'about us' button code:
on (release) {
        _root.play_scene("about_us");
}
the about_us mc is on the main time line and has the instance name: about_us, so i'm assuming the problem is in the function code/syntax
thanks in advance for looking at this
:)