Help with controlling the parent timeline from inside a clip

Hi all!

I’ve figured out how to make a button that clones a clip in the main timeline (go me!) but when I put that button inside another clip and attempt to have it do the same thing via parentClip it crashes the player with ‘Cannot read propety clone()’.

Could anyone tell me the correct way to do this?

If the object your trying to clone is outside in the project, you can use:

var newEgg = project.egg.clone();
newEgg.x=60;
newEgg.y=20;

That sounds absolutely perfect! Thank you!

1 Like