Summary of how to control Flash player with JavaScript

Source: Internet
Author: User
Javascript| Control

Description: I have already tested the method of containing examples.
  
Playing animation: Play ()

Example: (The Flash ID in a Web page). Play ();

Stop animation: Stopplay ()

Whether the animation is playing: IsPlaying ()

Jump to A Frame: Gotoframe (frame_number)

Get total frames of animation: Totalframes ()

Return the current animation frame number: Currentframe ()

To return the animation to the first frame: rewind ()

Enlarge the specified range: Setzoomrect (left,top,right,buttom)

Change animation size: Zoom (percent)

To make the animation pan in x,y direction: Pan (X_position,y_position,unit)

Returns the percentage of animation that is loaded: percentloaded ()

Load Animation: Loadmovie (Level_number,path)

Example: (The Flash ID in a Web page). Loadmovie (0, "***/***.swf");

Movie_clip jump to a specified number of frames: Tgotoframe (Movie_clip,frame_number)

Example: (The Flash ID in a Web page). Tgotoframe ("_root. Instance name", number of frames);

Movie_clip jumps to the specified label: Tgotolabel (Movie_clip,label_name)

Example: (The Flash ID in a Web page). Tgotolabel ("_root. Instance name", "label name");

Postback Movie_clip Current frame: tcurrentframe (movie_clip)

Postback Movie_clip Current tag: Tcurrentlabel (Movie_clip)

Play Movie_clip:tplay (Movie_clip)

Stop Movie_clip Playback: Tstopplay (movie_clip)

Get variable: getvariable (variable_name)

Variable assignment: setvariable (variable_name,value)

CALL Specifies the Action:tcallframe on the frame (movie_clip,frame_number)

CALL Specifies the Action:tcalllabel on the label (Movie_clip,label)

Gets the specified property of the Movie_clip: Tgetproperty (Movie_clip,property)

Set the specified properties for Movie_clip: Tsetproperty (Movie_clip,property,number)



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.