Code Snippets to stop frame using buttons

New Here ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

Hello, I'm having some trouble with animate and creating a button. 

 

Step 1: Stop the Animation in frame 1 – using code snippet
• Open your controller.fla file
• Create a new layer, move it to the top of the layer stack
• In frame 1 of the new layer
• Select window/code snippet/HTML5 canvas/timeline navigation
• Select the first option (stop at this frame)
• It inserts the following code into your file: this.stop() NOTE: this tells the browser to stop at this frame and wait for further instructions
Step 2: How to name our buttons
• In Animate, in your controller.fla file
• On the stage- one at a time- repeat the process (click on button- give it a name)
o Click on a button
o In the “object” properties panel, assign it an instance name (no spaces) ex: btn_face, btn_photo, btn_poster,……

Views

138

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
community guidelines
Adobe Community Professional ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

LATEST

what's your question, if any?

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
community guidelines