Hey P. Everything I said in my first answer was of course a little fuzzy and speculative. Specifically I haven't done anything like this in the Animate/Canvas/Javascript context. But it should work nevertheless, somehow, the precise setup will be a bit of a challenge, though. Firstly, in order to get some canvas-specific resources, the first place to go is always CreateJS, and here in particular the Easel.JS API. Perhaps you knew that already. This is the stuff which drives the code-related output when you export an Animate/Canvas concoction. Secondly here is a simple code exercise I made this morning. I made two movieclips, one is a green circle, the other a yellow bar. I left them in the Library without having them on Stage. In the Library I gave them names in the column Linkage. One is circle1 the other bar1. On the stage I put an empty movieclip instance-named container. Now in frame 1 I've put this code: var circle1 = new lib.circle1(); var bar1 = new lib.bar1(); bar1.x = 40; bar1.y = 30; this.container.addChildAt(circle1, 0); this.container.addChildAt(bar1, 1); published it and got this view in the browser: It works! Now of course we need an opportunity to randomize the selection process. Assuming we'd have numerous movieclips in our library (the sub-animations) and we want to roll the dice on which one is the next in sequence. Best in my opinion is to have all Linkage names in a hat and we fish one blindfolded. The hat in coding terms becomes an Array and the index (which one?) the random element. Hence in a simple setup with only two [and here without Math.random() for now]: var selLink; var linkArr = ["circle1", "bar1"]; selLink = new lib[linkArr[0]](); this.container.addChildAt(selLink, 0); selLink = new lib[linkArr[1]](); selLink.x = 40; selLink.y = 30; this.container.addChildAt(selLink, 1); makes the same figur upon export as the one above. The bold numbers (Indexes) of course need to be randomized. You have to look into these methods addChild or addChildAt, removeChild or removeChildAt or removeAllChildren. good luck Klaus
... View more