Highlighted

Images are loaded with hardcoded randomizer

Community Beginner ,
Jul 02, 2019

Copy link to clipboard

Copied

Hello everybody.

When compiling to a HTML5 canvas locally, the javascript-file contains links to the spritesheets.

If it's done, using CTRL-Enter, it adds a hardcoded randomizer at the end of each spritesheet link like this: index_atlas_NP.png?328372920 which causes problems for a certification function to validate correctly.

When publishing, it does not add a randomizer.

Is it possible to force Animate not to add a randomizer when using CTRL+Enter?

(I know, it comes with the expense of nocaching...)

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

No. This is a literal PEBCAK. If you don't want the cache-busting digits that are added when testing a page (Ctrl-Enter), then publish it instead (Shift-Alt-F12).

TOPICS
Discussions

Views

132

Likes

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

Images are loaded with hardcoded randomizer

Community Beginner ,
Jul 02, 2019

Copy link to clipboard

Copied

Hello everybody.

When compiling to a HTML5 canvas locally, the javascript-file contains links to the spritesheets.

If it's done, using CTRL-Enter, it adds a hardcoded randomizer at the end of each spritesheet link like this: index_atlas_NP.png?328372920 which causes problems for a certification function to validate correctly.

When publishing, it does not add a randomizer.

Is it possible to force Animate not to add a randomizer when using CTRL+Enter?

(I know, it comes with the expense of nocaching...)

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

No. This is a literal PEBCAK. If you don't want the cache-busting digits that are added when testing a page (Ctrl-Enter), then publish it instead (Shift-Alt-F12).

TOPICS
Discussions

Views

133

Likes

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
Jul 02, 2019 0
Adobe Community Professional ,
Jul 02, 2019

Copy link to clipboard

Copied

No. This is a literal PEBCAK. If you don't want the cache-busting digits that are added when testing a page (Ctrl-Enter), then publish it instead (Shift-Alt-F12).

Likes

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
Reply
Loading...
Jul 02, 2019 1
Community Beginner ,
Jul 02, 2019

Copy link to clipboard

Copied

Yes, I know it's a PEBCAK - just wanted to make sure, there were no other way than relying on the developers being careful to publish after testing, each time.

Likes

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
Reply
Loading...
Jul 02, 2019 0
ClayUUID LATEST
Adobe Community Professional ,
Jul 02, 2019

Copy link to clipboard

Copied

If you can't trust your developers to press the right keys when doing their jobs, you could always develop a Perl or Python script to scan the generated HTML files and, if necessary, strip the digits.

Likes

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
Reply
Loading...
Jul 02, 2019 0