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

canvas html5 - change color of instance in seperate timeline of a movieclip

Community Beginner ,
Oct 10, 2021 Oct 10, 2021

Copy link to clipboard

Copied

If I change the color of an instance on the main timeline it works perfect in html5.

If I change the color of an instance on the timeline of a movieclip, which is not on the main timeline - then it does not work anymore.

does anybody know why? and what I can do, that it works again?

thanks for a hinch

Views

1.4K

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 , Oct 20, 2021 Oct 20, 2021

i've had the previous versions and never encountered that, and i've not seen anyone else report that issue.  my guess is a clean install of that same version would have fixed the problem, too.

 

but there's not need to test that.  all's well that ends well.

Votes

Translate

Translate
Community Expert ,
Oct 11, 2021 Oct 11, 2021

Copy link to clipboard

Copied

how are you changing the color?  code? the ide?

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 Beginner ,
Oct 11, 2021 Oct 11, 2021

Copy link to clipboard

Copied

no not by code - by using the properties field on the right side - i don't have any idea how i would have to change it by code - would this work?

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 ,
Oct 11, 2021 Oct 11, 2021

Copy link to clipboard

Copied

the object is an instance of what? movieclip,  shape, something else?

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 Beginner ,
Oct 12, 2021 Oct 12, 2021

Copy link to clipboard

Copied

its an instance of a grafic symbol in the timeline of a moviclip which is on the main timeline.

it seems as if the color would be transported by click

first picture ist how it looks in the fla - second picture is how it looks when it is published in the browser...

definitively not the same an i wonder why

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 ,
Oct 12, 2021 Oct 12, 2021

Copy link to clipboard

Copied

when that movieclip (zeitleiste) is on frame 3 (4th frame), that graphic should be orange.  but i don't see anyway to get the movieclip to stay on frame 4 and evaluate the graphic color unless there's code somewhere.  eg,

 

on main timeline:

 

this.Zeitleiste_instance_name.gotoAndStop(3);

 

on zeitleiste timeline,

 

this.gotoAndStop(3);

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 Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

yes sure there is a code - sorry - i forgot to post it - here it is 

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 ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

does your code work?  ie, does zeitleiste have an instance name of swf?

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 Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

yes it works - but not correctly concerning the changing of color properties of the grafic symbols which are in the timeline of the zeitleiste with instance name swf

 

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 ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

this almost certainly user error, but i can't determine what that error is without downloading and checking your fla.

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 Beginner ,
Oct 13, 2021 Oct 13, 2021

Copy link to clipboard

Copied

you have to click 3 times on the button until you see a change with the lines - its mysterious

 

strange - i cannot send you the fla within this forum.... i have no idea why

here is a link to download the file https://www.quark.arts.ch/animate/test-farbe.fla

 

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 ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

i don't see anything mysterious.  it works just like you would expect (except when getting to the end of this.swf's timeline, it restarts.)  i didn't expect that.

 

here's the start before anything is clicked:

 

kglad_0-1634229137628.png

 

after clicking once:

 

kglad_1-1634229166588.png

 

after clicking again:

 

kglad_2-1634229201146.png

 

clicking again:

 

kglad_3-1634229231396.png

 

and again:

kglad_4-1634229260259.png

 

which looks just like frames 0,1,2,3,4 on this.swf's timelne.

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 Beginner ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

??? my script ? html5 canvas? i don't believe it !

i opend the file in animate and this is, what i get (to make it clear i added numbers for the clicks)

it is mysterious !

 

startpicture on frame 1

1.png

 

first click goes to frame 2

2.png

click to frame 3

3.png

click to frame 4

4.png

click to frame 5

5.png

so where is the difference ? - i work with animate 2021 and the newest firefox

 

 

 

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 ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

do you have javascript enabled in firefox?

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 Beginner ,
Oct 14, 2021 Oct 14, 2021

Copy link to clipboard

Copied

yes - otherwise, i guess, i would't see anything at all

i checked it with command about:config and javascript.enabled - it's on true

so the problem is not the browser (i also tried safari and chrome - same problem) the problem must be in the fla while publishing - it writes a javascript - i think the problem could be here? but i have no idea, how this javascript is generated and how i could affect it to do some funny things...

 

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 ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

how are you testing?

 

are you opening your fla in animate>clicking control>test movie>in browser?

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 Beginner ,
Oct 16, 2021 Oct 16, 2021

Copy link to clipboard

Copied

i work with a mac - an i test with cmd enter - or about the menu

both ways make the same result

the problem must be elswhere....

Bildschirmfoto 2021-10-16 um 14.36.29.png

 

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 ,
Oct 16, 2021 Oct 16, 2021

Copy link to clipboard

Copied

i tested on windows, though i have a mac if you want me to test there.

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 Beginner ,
Oct 16, 2021 Oct 16, 2021

Copy link to clipboard

Copied

yes please - i would appreciate it - so nice of you

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 ,
Oct 16, 2021 Oct 16, 2021

Copy link to clipboard

Copied

it works the same on my macbook os 10.15.7 (catalina).  i'm going to upgrade to big sur and see if that makes a difference.

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 Beginner ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

i work with big sur version 11.5.2 and with animate cc 2021 - maybe this is the difference. but i rather guess the problem is to find in the javascript-file which is created by animate. unfortunately it is not possible to send a javascript-file - i puted it on the same link as the fla-file is placed, togehter with a html with the same name. there you can find it and could have a look at it, if it is different to yours? or does that make no sence?

 

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 ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

i updated to big sur 11.6 and same result: everything works, as expected.

 

i'm using animate 2021 v21.0.9.

 

and there are differences.  i'm not they're the problem, but you can test using my js fiile:

 

https://shared-assets.adobe.com/link/46014a7b-5765-4dae-56f5-adee27adf880

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 Beginner ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

thanks for sending me your js - it works correct when i test it with safari.

i compared yours and mine - there are quite a few differences between yours and mine - my question is - how is this possible??? as far as i know, i can't influence how the js is created - or can i ???

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 ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

you can influence the js file (indirectly) with the publish settings.  i don't know how you could pick settings that would cause the problem you saw, but i could do some testing. 

 

to start, now i'm wondering if i use your js file will i see the same problem you reported.

 

in the meantime, you should create a nee folder and save your fla to that foldet.  then test.

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 Beginner ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

i guess you will have the same result as me, if you test it with my javascript, because they are really different.

i already did create a new folder, saved the fla in there and tested - same result...

here are my publish settings concerning the creating of the javascript

 

 

Bildschirmfoto 2021-10-18 um 02.11.43.png

 

Bildschirmfoto 2021-10-18 um 02.11.43.png

are there other possibilities to influence it?

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