Skip to main content
grammar corrections, fluff removed as per https://meta.stackexchange.com/q/2950/295232
Source Link

I dontdon't really know why - maybe you guys can spot the code issue but iI backtracked to an earlier version and this one works-:

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the targeted MC timeline and has the expected button behaviour - so happy days iI guess! IfIf you know why please still let me know:) thanks and have a great day!

I dont really know why - maybe you guys can spot the code issue but i backtracked to an earlier version and this one works-

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the targeted MC timeline and has the expected button behaviour - so happy days i guess! If you know why please still let me know:) thanks and have a great day

I don't really know why - maybe you can spot the code issue but I backtracked to an earlier version and this one works:

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the targeted MC timeline and has the expected button behaviour - so happy days I guess! If you know why please still let me know!

added 9 characters in body
Source Link

I dont really know why - maybe you guys can spot the code issue but i backtracked to an earlier version and this one works-

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the targeted MC timeline and has the expected button behaviour - so happy days i guess! If you know why please still let me know:) thanks and have a great day

I dont really know why - maybe you guys can spot the code issue but i backtracked to an earlier version and this one works-

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the MC timeline and has the expected button behaviour - so happy days i guess! If you know why please still let me know:) thanks and have a great day

I dont really know why - maybe you guys can spot the code issue but i backtracked to an earlier version and this one works-

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the targeted MC timeline and has the expected button behaviour - so happy days i guess! If you know why please still let me know:) thanks and have a great day

Source Link

I dont really know why - maybe you guys can spot the code issue but i backtracked to an earlier version and this one works-

class Game{
    constructor(exportRoot, stage){
        this.root = exportRoot;
        this.stage = stage;
        this.init();
    }
    
    init(){
      
        this.root.play_btn.on('click', function(){
            this.root.tester.gotoAndStop(2);
        });
    }
}

It moves the MC timeline and has the expected button behaviour - so happy days i guess! If you know why please still let me know:) thanks and have a great day