Preview

Flash Action Script

Satisfactory Essays
Open Document
Open Document
311 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Flash Action Script
Recipe 2.5 Scaling the Movie
2.5.1 Problem
You want to control how a movie fits in the Player, including the scaling.

2.5.2 Solution
Use the Stage.scaleMode property.

2.5.3 Discussion
The Flash Player defaults to a scale mode of "showAll" (except the test Player, which defaults to "noScale"). In "showAll" mode, the Flash movie scales to fit the Player while maintaining the movie's original aspect ratio. The result is that the movie can have borders on the sides if the Player aspect ratio does not match the movie aspect ratio. You can set a movie to "showAll" mode, as follows:

Stage.scaleMode = "showAll";
The "noBorder" mode scales a movie to fit the Player while maintaining the original aspect ratio, but it forces the Player to display no borders around the Stage. If the aspect ratio of the Player does not match that of the movie, some of the movie will be cut off around the edges. You can set a movie to "noBorder" mode, as follows:

Stage.scaleMode = "noBorder";
The "exactFit" mode scales a movie to fit the Player and alters the movie's aspect ratio, if necessary, to match that of the Player. The result is that the movie always exactly fills the Player, but the elements of the movie may be distorted. For example:

Stage.scaleMode = "exactFit";
In "noScale" mode, the movie is not scaled, and it maintains its original size and aspect ratio regardless of the Stage's size. When you use the "noScale" mode, also set the movie's alignment (see Recipe 2.6). For example:

Stage.scaleMode = "noScale";
The scaleMode property's value does not prevent the user from being able to scale the movie using the right-click/Ctrl-click menu. However, you can disable those options in the menu, as shown in Recipe

You May Also Find These Documents Helpful

  • Satisfactory Essays

    week2 quiz eng 225

    • 528 Words
    • 8 Pages

    What is the main source of light in a scene shot in the three-point lighting system?…

    • 528 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab Report Format for Separating the Components of “Panacetin” (2) and Recrystallization and Melting Point Measurement: Identifying the Components of “Panacetin” (3). Lab Notebook Title and Date Objective: Explain the purpose of the experiment and how you plan to accomplish it. Technique: Show the use of separatory funnel and evaporation of solvent setup Reaction(s): Include the main reaction for the experiment and isolation scheme Physical Data: List the molecular weight, melting point, boiling point, density, solubility, and hazards of all pertinent chemicals used in the experiment. Data/Observations: Your observations of the experiment, a. Weight of initial panacetin sample. b. Weight of sucrose collected. c. Weight of aspirin collected. d. Weight of unknown compound isolated e. Weight of recrystallized unknown compound f. Melting point range of recrystallized unknown compound. g. TLC sketches with appropriate data for Rf calculations (Clearly label each column of spots on the page so I know what it is) h. Mixed melting point based on information from TLC Final Report…

    • 436 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 3 Quiz

    • 393 Words
    • 2 Pages

    If these steps do not result in a movie being created, then I’m confident, it might be an issue with the Codec packs interacting with your system. Although I would like to exhaust all other options, before proceeding down that…

    • 393 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Video frame: A grid of pixel locations of a chosen width by height that contains the…

    • 539 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Often this is done by presenting subjects in a 3/4 view, over-the-shoulder shots, depth-of-field or off-centering the subject to create visual interest. While Wes Anderson doesn’t ignore these traditional techniques, he rarely employs them, opting instead for the planimetric approach.…

    • 1315 Words
    • 6 Pages
    Powerful Essays
  • Better Essays

    scheme of things. As well as this many of the Australian scenes are shot with a tighter…

    • 1102 Words
    • 5 Pages
    Better Essays
  • Good Essays

    William Zinsser gives very specific or memoir writers .My author gives suggestions such as “Be yourself”, “It’s your story”, and “Think Small”. These suggestions encourage memoir writers to think about how they want to tell their story as much as what they want to say.…

    • 275 Words
    • 2 Pages
    Good Essays
  • Good Essays

    The variation of camera angles and of quality angles provides the viewers with something more to devote their attention to. Sidney Lument uses this technique generously throughout the movies because it enhances the effect of what characters are saying. When a camera zooms in on an actor?s face to draw attention away for the other actors and…

    • 866 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Movies have been around since Thomas Edison’s invention of the Kinetoscope in 1894. The Kinetoscope, or peep show, was a tall, wooden box that allowed a person to look inside and see moving images. Viewing images was made possible by the film moving past a shutter over a light source. The Kinetoscope, however, had a two major flaws: the images viewed were jerky and didn’t move smoothly, and the viewing time for one show was only twenty seconds. Improvements to the Kinetoscope allowed it to hold more film and present at least a full minute of animation. Many early films had the theme of popular culture: dancers, performances, or reenactments of historical events.…

    • 1263 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    I liked the cinematography of the film they knew when to zoom in and zoom out.example would be when they zoomed on Lennie squeezing the blood out of curly’s hand. Moreover when they zoom out when George shot Lennie. In all honesty, I can’t remember all the parts when the did cinematography work, but there was one shot of the town and the camera zoom out on them, then zoomed back in, in order for us to see the town and time period.…

    • 527 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    This study will give way to the conclusions about our case of study, and we will see how the media convergence affects to the film.…

    • 3021 Words
    • 13 Pages
    Powerful Essays
  • Good Essays

    Film Techniques

    • 897 Words
    • 4 Pages

    Framing is usually set so that the top of the frame is just above the head and the bottom of the frame is just below the waist.…

    • 897 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Raising Arizona

    • 496 Words
    • 2 Pages

    The film uses camera movement by creating a mobile frame. An example of this would be when everyone is fighting for the baby towards the end of the movie. The biker is on his motorcycle and is chasing another character down to get the baby. The camera is in front of him and is very shaky. The camera shows a medium close up and has the audience go through the whole scene just like…

    • 496 Words
    • 2 Pages
    Good Essays
  • Good Essays

    The Innocence of Edie

    • 860 Words
    • 4 Pages

    “Not that this color is not important—in tales as elsewhere, white stands for luminosity and untainted sheen, thus for luminous heaven as much as for purity”(Da Silva, 2007). The thought was confusing without the paradox symbols. Edie sees the mat as cold or pure but when she walks on it, it becomes warm. Much like Edie’s innocence is warming up to passion. “First she depicts a girl, “thirteen going on fourteen, the hinge of your life, when you are . . . nor child nor woman . . .…

    • 860 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Movies are all about taking you on an adventure. They expand our minds, they bring our imagination to life, and manipulate our emotions. Directors do this in many ways, whether they are peculiar camera angles and shots, extreme lighting, or music that intensifies a scene. If a director correctly implements these within their movie, the audience’s emotions can very easily be manipulated.…

    • 1199 Words
    • 5 Pages
    Better Essays