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
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.
Copy link to clipboard
Copied
how are you changing the color? code? the ide?
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?
Copy link to clipboard
Copied
the object is an instance of what? movieclip, shape, something else?
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
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);
Copy link to clipboard
Copied
Copy link to clipboard
Copied
does your code work? ie, does zeitleiste have an instance name of swf?
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
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.
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
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:
after clicking once:
after clicking again:
clicking again:
and again:
which looks just like frames 0,1,2,3,4 on this.swf's timelne.
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
first click goes to frame 2
click to frame 3
click to frame 4
click to frame 5
so where is the difference ? - i work with animate 2021 and the newest firefox
 
 
Copy link to clipboard
Copied
do you have javascript enabled in firefox?
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...
Copy link to clipboard
Copied
how are you testing?
are you opening your fla in animate>clicking control>test movie>in browser?
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....
 
Copy link to clipboard
Copied
i tested on windows, though i have a mac if you want me to test there.
Copy link to clipboard
Copied
yes please - i would appreciate it - so nice of you
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.
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?
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
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 ???
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.
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
 
are there other possibilities to influence it?