Skip to main content
Known Participant
August 23, 2022
Answered

Movieclip not working when adding camera layer

  • August 23, 2022
  • 1 reply
  • 1086 views

I am creating simple animation in HTML5 Canvas. I have placed a simple classic tween animation and placed a STOP script after 50 frames. there is a button at the end to replay the animation. I have placed a movie clip over button to keep it playing until replay button is clicked. It works perfectly fine. 

As soon as I add CAMERA LAYER and publish it again, Movie clip at the end stops working. Once I remove the Camera layer, it starts working again.

What would be the issue?

This topic has been closed for replies.
Correct answer kglad

I have attached 2 videos to make it easy for you. 

  1. In file "Without Camera Layer", you can see that movieclip keeps playing at the end.
  2. In file "With Camera Layer", you can see that movieclip becomes static at the end.

 

In both files, difference is just the camera layer. Everything else is same


report the problem here, https://www.adobe.com/products/wishform.html

 

though the issue should be simplified:

 

create a multiframe movieclip and put on the main timeline at any frame other than frame 0.

add a this.stop() to the main timeline after the movieclip is instantiated

test

 

movieclip continues to play even after main timeline stops play, as expected.

 

add a camera layer

test

movieclip returns to frame 0 and stops when main timeline stops.

1 reply

kglad
Community Expert
Community Expert
August 24, 2022

what does this " I have placed a movie clip over button to keep it playing until replay button is clicked." mean?

 

does it mean you added a movieclip to the over state of your replay button?

Known Participant
August 24, 2022

no no ... I placed a hand movieclip above the layer of the button on the main scene, which indicates to click on the button. but that movie clip stays static and does not play when I add camera layer. Once I remove camera layer, it works perfectly fine.

kglad
Community Expert
Community Expert
August 25, 2022

there's still ambiguity in your explanation of what you did, and i don't see a problem when testing what i think you did.  however, it's very unclear what you actually did.

 

eg, what you now mean by

 

1. I have placed a simple classic tween animation and placed a STOP script after 50 frames

where is that placed? is that tween and stop on the main timeline?

 

2. I have placed a movie clip over button to keep it playing until replay button is clicked.

i know understand there's a movieclip overlying the replay button. but what do you mean by "to keep it playing"?  what's "it"?

 

you're trying to describe what you did, so it can be duplicated by someone else (eg me).  one way to do this is:

 

start a new fla

recreate the steps needed to duplicate the problem

explain those steps carefully so they can be duplicated.