Regards Random generate and create duplicate movieclip

Hi,

I have knowledge in articulate studio 09 and other products but i am new in storyline.

How to generate random number

i used following code, when i am publish its not work.

var randomnumber = Math.floor((Math.random()*10)+1);
var player = GetPlayer();
player.SetVar(“randnum”,randomnumber);

and how to create duplicate object ?

Please advice.

Thanks  & Regards

Venkatesan.V

2 Replies
venkatesan jayant

Dear Cool Sai,

Thanks. its working fine.

and

1. How to create multiple duplicate object in stage.

2. How to control timeline using button (for eg.,  When timeline starts its not play automatically,  when i click the button or object then only it will continue next frame or jump some frame and starts play.)

Please advice.

Thanks & Regards

Venkatesan.V