Converting Flash Actionscript to Animate Javascript
Hi, I'm starting a somewhat daunting project of converting a Flash file to HTML5 Canvas. I'm taking it line by line, but I've run into my first issue I can't figure out.
It's pretty simple. On my main timeline, I set a variable called startX:
var startX = 10;
Then I bring in a movieclip from the library:
var arrow1 = new lib.arrow();
this.addChild(arrow1);
Works just fine. arrow1 is there, and the code inside it runs. I just can't reference startX:
this.parent.tracer.text = this.parent.startX;
The tracer is a text box, and that line works fine with something like this.parent.tracer.text = "arrow clip"; so that connection is fine.
Why can't I reference a variable I set in the main timeline from within the movieclip?
