transition script and button script won't work together

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • papalazarou78
    New Member
    • Mar 2007
    • 4

    transition script and button script won't work together

    Hi

    I've been experiementing with actionscripting transitions between sections... this is the first site I have tried this with (last 3 had swf loaded in one after another rather than transitioned between). I used some code from kirupa.com which works for loading movies in and out, but I also have some code for my movie buttons. I can get one or the other working, but not together, so I guess I'm clashing code somewhere, I could do with some help please to find what I'm doing wrong...

    The transistion code and calling-up buttons is;

    Code:
    Menubar.b1.onRe lease = function() {
    if (_root.section != "about.swf" ) {
    _root.section = "about.swf" ;
    _root.transitio n.gotoAndPlay(" closing");
    }
    };
    Menubar.b2.onRe lease = function() {
    if (_root.section != "portfolio.swf" ) {
    _root.section = "portfolio.swf" ;
    _root.transitio n.gotoAndPlay(" closing");
    }
    };
    Menubar.b3.onRe lease = function() {
    if (_root.section != "contact.sw f") {
    _root.section = "contact.sw f";
    _root.transitio n.gotoAndPlay(" closing");
    }
    };


    and the code I have on my movie buttons is;
    Code:
    on (rollOver) {
    gotoAndPlay("ro llover");
    }
    on (releaseOutside , rollOut) {
    gotoAndPlay("ro llout");
    }


    Is there a way to combine them???

    Thanks. Wayne.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    I think the problem is that both pieces of code are using gotoAndPlay();
    You may have better luck using the built in button object for the buttons.


    Originally posted by papalazarou78
    Hi

    I've been experiementing with actionscripting transitions between sections... this is the first site I have tried this with (last 3 had swf loaded in one after another rather than transitioned between). I used some code from kirupa.com which works for loading movies in and out, but I also have some code for my movie buttons. I can get one or the other working, but not together, so I guess I'm clashing code somewhere, I could do with some help please to find what I'm doing wrong...

    The transistion code and calling-up buttons is;

    Code:
    Menubar.b1.onRe lease = function() {
    if (_root.section != "about.swf" ) {
    _root.section = "about.swf" ;
    _root.transitio n.gotoAndPlay(" closing");
    }
    };
    Menubar.b2.onRe lease = function() {
    if (_root.section != "portfolio.swf" ) {
    _root.section = "portfolio.swf" ;
    _root.transitio n.gotoAndPlay(" closing");
    }
    };
    Menubar.b3.onRe lease = function() {
    if (_root.section != "contact.sw f") {
    _root.section = "contact.sw f";
    _root.transitio n.gotoAndPlay(" closing");
    }
    };


    and the code I have on my movie buttons is;
    Code:
    on (rollOver) {
    gotoAndPlay("ro llover");
    }
    on (releaseOutside , rollOut) {
    gotoAndPlay("ro llout");
    }


    Is there a way to combine them???

    Thanks. Wayne.

    Comment

    Working...