Naudotojo vadovas Atšaukti

Using Components in HTML5 Canvas

  1. Adobe Animate User Guide
  2. Introduction to Animate
    1. What's New in Animate
    2. Visual Glossary
    3. Animate system requirements
    4. Animate keyboard shortcuts
    5. Work with Multiple File Types in Animate
  3. Animation
    1. Animation basics in Animate
    2. How to use frames and keyframes in Animate
    3. Frame-by-frame animation in Animate
    4. How to work with classic tween animation in Animate
    5. Brush Tool
    6. Motion Guide
    7. Motion tween and ActionScript 3.0
    8. About Motion Tween Animation
    9. Motion tween animations
    10. Creating a Motion tween animation
    11. Using property keyframes
    12. Animate position with a tween
    13. How to edit motion tweens using Motion Editor
    14. Editing the motion path of a tween animation
    15. Manipulating motion tweens
    16. Adding custom eases
    17. Creating and applying Motion presets
    18. Setting up animation tween spans
    19. Working with Motion tweens saved as XML files
    20. Motion tweens vs Classic tweens
    21. Shape tweening
    22. Using Bone tool animation in Animate
    23. Work with character rigging in Animate
    24. How to use mask layers in Adobe Animate
    25. How to work with scenes in Animate
  4. Interactivity
    1. How to create buttons with Animate
    2. Convert Animate projects to other document type formats
    3. Create and publish HTML5 Canvas documents in Animate
    4. Add interactivity with code snippets in Animate
    5. Creating custom HTML5 Components
    6. Using Components in HTML5 Canvas
    7. Creating custom Components: Examples
    8. Code Snippets for custom Components
    9. Best practices - Advertising with Animate
    10. Virtual Reality authoring and publishing
  5. Workspace and workflow
    1. Creating and managing Paint brushes
    2. Using Google fonts in HTML5 Canvas documents
    3. Using Creative Cloud Libraries and Adobe Animate
    4. Use the Stage and Tools panel for Animate
    5. Animate workflow and workspace
    6. Using web fonts in HTML5 Canvas documents
    7. Timelines and ActionScript
    8. Working with multiple timelines
    9. Set preferences
    10. Using Animate authoring panels
    11. Create timeline layers with Animate
    12. Export animations for mobile apps and game engines
    13. Moving and copying objects
    14. Templates
    15. Find and Replace in Animate
    16. Undo, redo, and the History panel
    17. Keyboard shortcuts
    18. How to use the timeline in Animate
    19. Creating HTML extensions
    20. Optimization options for Images and Animated GIFs
    21. Export settings for Images and GIFs
    22. Assets Panel in Animate
  6. Multimedia and Video
    1. Transforming and combining graphic objects in Animate
    2. Creating and working with symbol instances in Animate
    3. Image Trace
    4. How to use sound in Adobe Animate
    5. Exporting SVG files
    6. Create video files for use in Animate
    7. How to add a video in Animate
    8. Draw and create objects with Animate
    9. Reshape lines and shapes
    10. Strokes, fills, and gradients with Animate CC
    11. Working with Adobe Premiere Pro and After Effects
    12. Color Panels in Animate CC
    13. Opening Flash CS6 files with Animate
    14. Work with classic text in Animate
    15. Placing artwork into Animate
    16. Imported bitmaps in Animate
    17. 3D graphics
    18. Working with symbols in Animate
    19. Draw lines & shapes with Adobe Animate
    20. Work with the libraries in Animate
    21. Exporting Sounds
    22. Selecting objects in Animate CC
    23. Working with Illustrator AI files in Animate
    24. Applying blend modes
    25. Arranging objects
    26. Automating tasks with the Commands menu
    27. Multilanguage text
    28. Using camera in Animate
    29. Graphic filters
    30. Sound and ActionScript
    31. Drawing preferences
    32. Drawing with the Pen tool
  7. Platforms
    1. Convert Animate projects to other document type formats
    2. Custom Platform Support
    3. Create and publish HTML5 Canvas documents in Animate
    4. Creating and publishing a WebGL document
    5. How to package applications for AIR for iOS
    6. Publishing AIR for Android applications
    7. Publishing for Adobe AIR for desktop
    8. ActionScript publish settings
    9. Best practices - Organizing ActionScript in an application
    10. How to use ActionScript with Animate
    11. Accessibility in the Animate workspace
    12. Writing and managing scripts
    13. Enabling Support for Custom Platforms
    14. Custom Platform Support Overview
    15. Working with Custom Platform Support Plug-in
    16. Debugging ActionScript 3.0
    17. Enabling Support for Custom Platforms
  8. Exporting and Publishing
    1. How to export files from Animate CC
    2. OAM publishing
    3. Exporting SVG files
    4. Export graphics and videos with Animate
    5. Publishing AS3 documents
    6. Export animations for mobile apps and game engines
    7. Exporting Sounds
    8. Best practices - Tips for creating content for mobile devices
    9. Best practices - Video conventions
    10. Best practices - SWF application authoring guidelines
    11. Best practices - Structuring FLA files
    12. Best Practices to optimize FLA files for Animate
    13. ActionScript publish settings
    14. Specify publish settings for Animate
    15. Exporting projector files
    16. Export Images and Animated GIFs
    17. HTML publishing templates
    18. Working with Adobe Premiere Pro and After Effects
    19. Quick share and publish your animations
  9. Troubleshooting
    1. Fixed issues
    2. Known issues

 

Use this article to learn more about using customizable components.

Component provides a function or group of related reusable customizable components that enhances productivity for ad creators. Previously, Animate supported flash components used with flash-based targets. From this release onwards, Animate supports HTML5 Canvas. 

  1. Select File > New.

    Choose an Advanced from the tabs at the top of the screen in the New Document dialog and then select HTML5 Canvas option.

    New Document
    HTML5 Canvas

  2. Select Window > Components.

    Default Components

  3. Select Components > Video. Drag-and-drop the associated components to the canvas. 

  4. Select the Video component Instance on stage, and view and modify parameters in the Property Inspector. The Source parameter allows you to select video file from a local location or provide any URL to play the video (mp4, ogg, ogv, or webm formats). 

    Drag-and-drop the Components

  5. Select “match source dimensions” to resize the video player to match the input video dimensions. This feature only works for mp4 videos. For other video types, manually resize the video instance on stage to ensure that the aspect ratio remains the same.

  6. Press Ctrl + enter (cmd + enter on MAC) to preview the movie. The video plays in your default browser. Since the controls are visible by default, you can view the controls when you hover over the video in a browser.

    You can use the same procedure to use other components.

    Preview component output

 Components are added to HTML document as DOM elements, so refer to Component code snippets (Code Snippets > HTML5 Canvas > Components) to add interactivity to Components.

Adding interactivity to components using code snippets

  1. Select Window > Components.

  2. To add interactivity to the components, select Window > Code snippets panel. You can view the mapping of the various available component behaviors.

  3. In the Code Snippet screen, select HTML5 Canvas > Components.

    Default code snippets

  4. Based on the component you have selected, double-click the corresponding code snippet to display the snippet in the Actions panel. For information on adding interactivity to code snippets, see Add interactivity with code snippets in Animate

Example

Use the following example to learn how to use code snippets where the playback of the video is controlled through code.

  1. Select the video instance on stage and disable the AutoPlay setting in the Property inspector. 

  2. Double click the Button component twice in the Components panel to create two instances on stage and place the buttons. You can also drag-and-drop them directly from the components panel on stage.

    Place the buttons

  3. Select the first button instance and change the label to Play in the PI and the second button to Pause. 

  4. Open the Code Snippets Panel by clicking Window > Code Snippets. Navigate to HTML5 Canvas > Components and expand the User Interface Section. 

  5. Select the Play button on stage, double-click on the Button Click Event in Code Snippets Panel, and click Ok. Animate assigns an instance name to the selected button. You can view the newly added code in the Actions panel.

    Adding code snippets

  6. Select the Video on stage and expand the Video section in Code snippets. Double-click Play a Video. The code required to play the video is added to the Actions panel.

    Code added to the Actions panel

  7. To play the video when the button is clicked, move the code between  <Start your custom code> and <End your custom code> section. 

    Move the code within the tags

  8. To add a code to pause the video, select the pause button, assign the new button click handler and add the pause video code.

  9. Preview the movie. Click the play button to play the video and click on the Pause button to pause the video. 

 You can view the className attribute for each component in the Property Inspector. Use these class names to skin the components using a CSS. Use the CSS component to load your custom CSS. The CSS component allows you to select any local CSS file included in the movie.

Interesting HTML5 components

Adding interactivity to your content is interesting and includes a lot of feature with HTML 5 components. Want to learn how to use these HTML5 components on Animate? Watch the tutorial at the end of this example and follow these steps.

  1. Click Windows and select Components.

  2. Expand the Videos folder, click and drag the video icon to the stage.

  3. In the Properties, expand the Positions and Size tab and set the required values.

How to enhance your Animate compositions Using HTML5 Components

Watch the video to know how to include more components to your composition.

Install distributed components

Animate designers or developers can install the distributed ZXP file component by using the Manage Extensions utility. For more information, see Install extensions.

Prerequisite

Installing components

To install distributed components, you can perform the following steps: 

  1. Double-click the ManageExtensions.exe file. The Manage Extensions dialog appears.

  2. Click Install an extension and select the extension (.zxp file) that you want to install. For more information, see Install extensions.

  3. To view the installed component in Animate, click Window > Component. Components pop-up dialog appears. 

  4. Click hamburger icon at upper-right corner and click Reload Components.

 Adobe

Gaukite pagalbą greičiau ir lengviau

Naujas vartotojas?