Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

transform a movieClip AND play a movieClip at same time #110

Open
JoTack opened this issue Jul 14, 2017 · 0 comments
Open

transform a movieClip AND play a movieClip at same time #110

JoTack opened this issue Jul 14, 2017 · 0 comments

Comments

@JoTack
Copy link

JoTack commented Jul 14, 2017

I can't transform a movieClip AND play a movieClip at same time. What can I do? How can I play a movieClip AFTER the command "comp.stop()"? Is "comp.stop()" a global command and prevent the playing of nested movieClips?

function handle_AJAX_Complete() {
	if (AJAX_req.readyState == 4 && AJAX_req.status == 200) {
		json = JSON.parse(AJAX_req.responseText);
		comp = new SVGAnim(
				json,
				width,
				height,
				fps
				);
		
		comp.stop();
		
		var myMovieClip1 = comp.mc.mc_Test1;
		var myMovieClip2 = comp.mc.mc_Test2;
		
		myMovieClip1.play(); // this doesn't work
		myMovieClip2.el.transform("t" + [0, 100]); // This work
		
		comp.play();
		
		myMovieClip1.play(); // this work
		myMovieClip2.el.transform("t" + [0, 100]); // This doesn't work
	}
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant