tags:

views:

5

answers:

0

Hi to all,

I am working on flash action script.

In this flash i have a 7 animated buttons. each of them i give a instance name which is "item1", "item2", "item3", "item4", "item5", "item6", "item7",.

on each button i use this this script.

on (rollOver) {
    if (_root.link<>1) {
        this.gotoAndPlay("s1");
    }
}
on (releaseOutside, rollOut) {
    if (_root.link<>1) {
        this.gotoAndPlay("s2");
    }
}
on (release) {
    if (_root.link<>1) {
        _root.menu["item"+_root.link].gotoAndPlay("s2");
        _root.gates.gotoAndPlay("s1");
        _root.link = 1;
    }
}

Now when i am trying to give a link on this buttons then its give me a error. which is "Syntax Error"

Now how can i solve this problem.

Please Reply.

Thanking You & Kindly Regards