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

    Basically, there are two ways to display video: interlaced scan or progressive scan. Interlaced scan can be found in standard television formats or in analog televisions (non-digital) and signals can be picked up using an old-fashioned “rabbit-ear” antenna. Interlace only displays half of a horizontal line at a single time to display a picture. Progressive scan, used in computer monitors and is becoming a standard format now in flat-screen televisions, displays the horizontal lines of a picture in a single frame.…

    • 328 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
  • Powerful Essays

    Action Lab Simulations

    • 1622 Words
    • 7 Pages

    This article is investing the effects of speed of the action potential across many neurons through investigating two diseases and performing related lab simulations. Multiple sclerosis and epilepsy are the two disease which are investigated and through the use of Neurons in Action lab simulations, we saw the effects that demyelination and channelopathy can have. As my hypothesis guessed, demyelination is the main cause of multiple sclerosis and channelopathy is the main cause of epilepsy.…

    • 1622 Words
    • 7 Pages
    Powerful 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
  • Good Essays

    The type of theatre that was used was a picture fame stage. The stage was fairly small but perfect for the production that was being put on. It was a simple theatre with a older look to it. The stage sat directly in front of the audience seating. The play space was also a little small but worked out great for the performance. The production was perfect the way it was setup.…

    • 724 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

    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
  • 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
  • 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
  • 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
  • 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