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

Publishing a certain part of the video

Contributor ,
Jan 13, 2023 Jan 13, 2023

Is there a command in AS3 the limits the duration of a video in a swf file? I have a scene with a size of 200 frames. When I want to play it in a swf file, I don't need to see the whole scene (200 frames), but a certain part (20-60 frames).

TOPICS
ActionScript , Code
454
Translate
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

Valorous Hero , Jan 13, 2023 Jan 13, 2023

I use a simple label and a 'go to' script which loops the desired section when I press Ctrl+Enter.

Here it is: https://drive.google.com/file/d/1btzJtQwKgHqxLlAt2SoKO1hS3P75HEUb/view?usp=share_link

 

Translate
Valorous Hero ,
Jan 13, 2023 Jan 13, 2023

I use a simple label and a 'go to' script which loops the desired section when I press Ctrl+Enter.

Here it is: https://drive.google.com/file/d/1btzJtQwKgHqxLlAt2SoKO1hS3P75HEUb/view?usp=share_link

 

Nick - Character Designer and Animator, Flash user since 1998
Member of the Flanimate Power Tools team - extensions for character animation
Translate
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
Contributor ,
Jan 13, 2023 Jan 13, 2023

Thanks it works. Is there a way to do it also when exporting a swf file, for example using jsfl? Your method works only if you press Ctrl + Enter, and when exporting a swf file, the playback restriction disappears.

Translate
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 ,
Jan 14, 2023 Jan 14, 2023

you can make the goto's unconditional, but that makes no sense unless you want to edit your project and export a swf that contains only frames 20-60.

Translate
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 ,
Jan 14, 2023 Jan 14, 2023
LATEST

This is good stuff Nick. 

Translate
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