• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Movieclip not working when adding camera layer

Explorer ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

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?

TOPICS
Import and export , Product issue , Publish package , Timeline

Views

185

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 01, 2022 Sep 01, 2022

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.

Votes

Translate

Translate
Community Expert ,
Aug 24, 2022 Aug 24, 2022

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 24, 2022 Aug 24, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 25, 2022 Aug 25, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

Let me explain step by step.

harisahmed_0-1661941103902.png

(i). I opened a new Animate HTML5 Canvas file.

(ii). Layer_1 contains Yellow Square classic tween animation, moving from Left to Right and rotating.

(iii). Layer_2 contains Red Oval Simple basic Button.

(iv). Layer_3 contains Green Polygon which is a movieclip which is placed over button. Inside movieclip, it is a 3 keyframe animation in which on the middle keyframe, polygon is smaller in size.

(v). Action_Layer. At the end is STOP COMMAND. And on the 59th FRAME, it GO TO AND PLAY (Frame 5).

PROBLEM:

This animations works fine which i publish it on HTML/JS. When the animation reaches the end, it stops there but movieclip (Green Polygon) keeps playing. and when I click on the button it replays from Frame 5.

harisahmed_1-1661941761447.png

Problem begins here,

When I simply Add a Camera Layer without even making any changes on that layer or even when creating a zoom-in effect. Once i publish it with same default settings, and when the Animation reaches at the end it stops there, and the MOVIECLIP (Green Polygon) just play once and then stop playing in repitition. 

Problem is, When adding camera in animation, movieclips stop working at the end. and once I remove the Camera layer, it starts working again, as it is supposed to do.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

the explanation is good (though it doesn't make sense to have anything beyond frame 59 if there's no way to get beyond frame 59).

 

then you have a "problem" section and a "problem begins here" section and those don't make sense.  explain those more carefully.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

 

harisahmed_0-1661967928223.png

In this file, I hope you understand and you can see that in Layer_3, I have placed a Green Polygon Movieclip in which Polygon is supposed to keep animating repeatedly, even thou animation stops at the end on the main scene using action script "STOP". but movieclips keeps playing.

 

Problem is that when I add "Camera Layer" on the timeline, that movieclip "Does not Play Repeatedly". It just play once and becomes static. But when I delete camera layer from timeline, that movieclip starts playing repeated again at the end as it should be. 

I don't unederstand the issue as why camera layer is affecting movieclip and stops it from playing repeatedly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

any movieclip in layer_3 will play for 2 or 3 frames and then disappear because of the gotoAndPlay(5) on frame 59.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

Sorry .. I didn't mention it completely ... That gotoAndPlay is linked with button (Red Oval Button) using this command:

this.button_1.addEventListener("click", fl_ClickToGoToAndPlayFromFrame.bind(this));

function fl_ClickToGoToAndPlayFromFrame()
{
this.gotoAndPlay(5);
}

 

So the animation stops at the end and movieclip is suppose to keep playing repeatedly, unless I click on the button and then it will go to Frame 5 and play again..

There is the issue that without camaera layer, movieclip keeps playing and If I add camera layer, movieclip does not play repeatedly, it just stops at the end and everything is static.

I think there is some issue with Adobe Animate, some glitch. because difference between both files is just Camera Layer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 31, 2022 Aug 31, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 01, 2022 Sep 01, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 01, 2022 Sep 01, 2022

Copy link to clipboard

Copied

Reported. Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 01, 2022 Sep 01, 2022

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines