How to change video resolution in Flash CS5

Hi, I've made a small app that captures and displays the camera feed. But the problem i'm having is that the app only displays a fraction of what the camera is showing (top left part of the corner), is there a way to shrink the resolution in Flash CS5 so that the app can show the full picture??
Many thanks.

I think I found the solution to my problem..... but dont know how to implement it correctly.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html#SHOW_ALL
I believe I need to use the SHOW_ALL constant, but there isn't an example of how to do it
Heres my code, it compiles without errors, but when I publish it as .exe I get the 'Error 1037: Package cannot be nested':
package
          import flash.display.StageScaleMode
          import flash.media.Camera;
          import flash.media.Video;
          public class ScaleMode
                    public static const SHOW_ALL:String = StageScaleMode.SHOW_ALL;
                    var camera:Camera = Camera.getCamera();
                    if (camera != null) {
                              videoTwo.attachCamera(camera);
                    } else {
                              trace("You need a camera.");
          stop();
Any ideas??

Similar Messages

  • How to publish iPhone Apps with Flash CS5 for beginners

    After many trial/errors and with lots of support from this site, I've decided to start building some tutorials to help people get into the packager. This is the first one and, now I'll work on a usual erros handle tutorial.
    Any comments and/or critics are welcome.
    http://www.chrisid.com/blog/2010/10/how-to-publish-iphone-app-with-flash-cs5-for-beginners /
    cheers,
    Chris.

    It helped me a lot, exept I hav this little problem ..
    I can't select the .p12 file .. it's disabled..

  • When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object?

    When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object? The clip color turns purple and it only allows me to add motion but not change the clip duration and speed anymore.

    Thanks for the reply and as a work around method I used the Photoshop to do all the adjustments then export the video to iMovie to finish the final cut. I also have a problem to paint or clone on a blank video layer created in Photoshop. It tells me the time is beyond the target frame time, I don't understand the message. Can you explain to me what did I do wrong? Thanks a lot!
    John Wang
    801-3618742
    [email protected] 
    http://johnwanggallery.shutterfly.com  

  • How to change screen resolution on touchpad

    how to change screen resolution on touchpad ?i was working on my tp and out of the blues  my screen looks like it is at 800*600
    or is this the screen itself that went bad?
    can someboby please tell me the procedure to use the 12 mt warranty..
    tia
    Post relates to: HP TouchPad (WiFi)

    Sorry to say reloading WebOS did not help this issue on my TP. contacted Support and was told to send it.Even sorrier to say that my TP is now lost. My tracking number reports it as delievered on Dec 5, but HP has no record of it.When I got back on Chat they  are now also telling me that my TP serial number is a EU model, even though my box clearly states HP Touchpad ,US, 1.20,32gb,Wifi.
    Not sure what that even has to do with it being lost now..if it is as they say and no warranty on it in US I just want it sent back.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How to easily get an Adobe Flash CS5.5 Professional project into Flash Builder 4.5?

    Hey all,
    I am new and trying to do the following, can you please guide/help me do it:
    I have a video chat application that is done on Adobe Flash CS5.5. I had the problem of "echo" so I wanted to use "getEnhancedMicrophone()". When I replaced "getMicrophone()" with "getEnhancedMicrophone()", Adobe Flash CS5.5 Professional didn't recognize it. I knew I need Flex, so I installed Flash Builder. And then got lost. What I simply want is just import my "FLA" file (or if I need to convert it to something else using a specific tool, let me know.. I have Adobe Flash CS5.5 Professional and can install other required applications if needed) done on Adobe CS5.5, into Flash Builder, and then "support Flex" so that I compile with the flash-version argument required.
    I am totally new to MXML and Flash Builder, and even Flex. I don't know how to import a FLA and add "Flex" libraries into it simply to make "getEnhancedMicrophone()" work without the need to recreate the whole thing on Flash Builder. Can you guide me please? The output is for a web SWF file, not a desktop application.
    Thanks!

    I have the same problem here. I'm trying to do a stick animation on cs6, but to be more precise, i need to actually draw with a larger brush size. I suggest using the pen tool with the smooth option on. You can't see exactly where the stroke will be, but its better than nothing, and it more or less acts like the brush anyway.

  • Cannot Change Video Resolution in Youtube

    When I try to change the video resolution in YouTube, the screen goes black and it automatically goes to 240p regardless of the resolution that I choose. It will play the video so long as it remains in its default resolution i.e. 360p or 240p. I also have Chrome downloaded and it has no issue changing between video resolution so I am assuming it is an issue with Safari. I reinstalled Flash and I tried resetting the computer but had no success with either of those attempts. Any ideas?
    Thanks!
    Dan

    Thanks dschinkal! When I view You Tube clips on Safari and click the resolution adjuster to increase it (say, to 720), the screen goes black and I have to click refresh in order to reload the page. After which, it plays again at a low resolution.
    This has happened since I bought my new iMac 27" a month ago.

  • How to Change the Resolution on the Monitor? Model HP 2011X- (20" flat screen monitor)

    "input signal out of range, change settings to 1600 x 900 -60HZ" How to make this change?
    I have a HP desktop PC and I recently purchased a HP 2011X  (20" flat monitor). Initially, I hooked it up to the pc and it worked and I did not have to install anything. But the other day, I ran the Microsoft's Fix-it-Center and ran the resolution problem detection even though I did not have any problem with the resolution. Within 5 seconds, a dark black screen appeared with the following message:
    INPUT SIGNAL OUT OF RANGE
    CHANGE SETTINGS TO
    1600 X 900 - 60HZ
    It displays this message and then the monitor goes to sleep. I press the buttons at the bottom of the monitor and from time to time, it displays a resolution screen that shows the monitor's resolution is not 1600 x 900 but that HP recommends that setting. However, I cannot change anything and that small screen with black background disappears in a few seconds. I cannot see anything else and I have tried the following:
    - Turned the PC on and off several times and the message is still there
    - Unplugged the power to the monitor and re-plugged it and no change
    - Unplugges the video cable from the PC to the monitor and re-plugged it and nothing
    Please help. I cannot see the PC screens at all even though the PC is on. All I see is the black background screen with white text with the above message. How do I fix this when I cannot see the Windows screen or from the monitor.
    Thanks,
    Bob

    Hello IE_PC_User,
    Let's try to get your computer to the boot options and go into VGA mode to see if you can change the resolution then.
    Start up your computer and start tapping away at the F8 key.
    Once the computer presents you with the boot options choose the VGA mdoe.
    It should boot up and everything look really out of place. Set the proper resolution and then reboot.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Change Video Parameters with flash button

    Hi can anyone tell me what code I would need to attch to my
    button to change the adress of the video being played in my flash
    video player.
    Or can you tell me how i can create a playlist of videos and
    use flash forward/ back buttons to skip between them.
    So far i have a working player, i have found a way to change
    videos by tweening, but that would take me forever to tween every
    video in my playlist.
    Thanks
    Jey

    Sure. Specically what I changed from what DW automatically
    did is- delete the !DOCTYPE W3C line #1, Condensed the html tag to
    simply <html>, moved title up under head, the "Content-Type"
    bit under title, got rid of the "/" befor the ">" in that line,
    eliminated the entire style section and replaced it with the body
    tag, indented the "}" under the if line. Which one, or combination
    of which did the trick, I don't know. Several of those things I
    don't really comprehend. I was just trying to match what I knew
    worked. And then on top of that, I had to publish in Flash7. There
    is some kind of new way to do it in 8, called ExternalInterface
    which made me dizzy when I read it. Here's the final working code:
    <html>
    <head>
    <title>Melanie Harrison</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1">
    <script language="JavaScript">
    <!--
    function changeBgColor(newBgColor) {
    if (window.document && window.document.bgColor) {
    document.bgColor = newBgColor;
    -->
    </script>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body bgcolor="#d7e8eb" text="#000000">
    <div align="center">
    <p>  </p>
    <p>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','800','height','600','src','melaniehome','quality','high','pluginspage','http://www.ma cromedia.com/go/getflashplayer','movie','melaniehome'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="800" height="600">
    <param name="movie" value="melaniehome.swf" />
    <param name="quality" value="high" />
    <embed src="melaniehome.swf" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="800"
    height="600"></embed>
    </object></noscript>
    </p>
    </div>
    </body>
    </html>

  • How to debug swc files in Flash CS5

    Hi, to coin a familiar phrase "I'm new to Flash developement". My question is very simple. How do I debug .swc files (that I've created in Flash Builder 4) in Flash Professional CS5. I've incorporated the .swc file in the Publish Settings->Flash tab. But when I attempt to consume the objects in the .swc file I get an error saying it "Cannot display source code at this location."
    Can someone tell me the best pratice for debugging .swc files. Do I debug them in Flash Builder or Adbobe Professional Flash CS5?

    I think I found the solution to my problem..... but dont know how to implement it correctly.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html#SHOW_ALL
    I believe I need to use the SHOW_ALL constant, but there isn't an example of how to do it
    Heres my code, it compiles without errors, but when I publish it as .exe I get the 'Error 1037: Package cannot be nested':
    package
              import flash.display.StageScaleMode
              import flash.media.Camera;
              import flash.media.Video;
              public class ScaleMode
                        public static const SHOW_ALL:String = StageScaleMode.SHOW_ALL;
                        var camera:Camera = Camera.getCamera();
                        if (camera != null) {
                                  videoTwo.attachCamera(camera);
                        } else {
                                  trace("You need a camera.");
              stop();
    Any ideas??

  • Change Video Resolution

    Hi at all
    I want to change the resolution of my video. As far as I know this is possible with IAMStreamConfig.But all the samples I see are handling with a Webcam Input.
    What about changing the resolution of a video file?
    That's how I would do it, but it doesn't work
    Code Snippet
    Guid iid = typeof(IAMStreamConfig).GUID;
    object outPin;
    hr = cgb2.FindInterface(PinCategory.Capture, MediaType.Video, fileSource, iid, out obj);
    DsError.ThrowExceptionForHR(hr);
    IAMStreamConfig config = outPin as IAMStreamConfig;
    AMMediaType mediaType;
    hr = config.GetFormat(out mediaType);
    DsError.ThrowExceptionForHR(hr);
    try
    VideoInfoHeader vih = new VideoInfoHeader();
    Marshal.PtrToStructure(mediaType.formatPtr, vih);
    vih.BmiHeader.Width = 640;
    vih.BmiHeader.Height = 480;
    finally
    Marshal.ReleaseComObject(mediaType);

    You both understood what I wanted. Yes I want to the change the video Resolution, not the display resolution!
    But when you look at the DxLogo sample you will see this method:
    Code Snippet
    private void SetConfigParms(ICaptureGraphBuilder2 capGraph, IBaseFilter capFilter, int iFrameRate, int iWidth, int iHeight)
                int hr;
                object o;
                AMMediaType media;
                IAMStreamConfig videoStreamConfig;
                IAMVideoControl videoControl = capFilter as IAMVideoControl;
                // Find the stream config interface
                hr = capGraph.FindInterface(
                    PinCategory.Capture, MediaType.Video, capFilter, typeof(IAMStreamConfig).GUID, out o );
                videoStreamConfig = o as IAMStreamConfig;
                try
                    if (videoStreamConfig == null)
                        throw new Exception("Failed to get IAMStreamConfig");
                    hr = videoStreamConfig.GetFormat(out media);
                    DsError.ThrowExceptionForHR( hr );
                    // copy out the videoinfoheader
                    VideoInfoHeader v = new VideoInfoHeader();
                    Marshal.PtrToStructure( media.formatPtr, v );
                    // if overriding the framerate, set the frame rate
                    if (iFrameRate > 0)
                        v.AvgTimePerFrame = 10000000 / iFrameRate;
                    // if overriding the width, set the width
                    if (iWidth > 0)
                        v.BmiHeader.Width = iWidth;
                    // if overriding the Height, set the Height
                    if (iHeight > 0)
                        v.BmiHeader.Height = iHeight;
                    // Copy the media structure back
                    Marshal.StructureToPtr( v, media.formatPtr, false );
                    // Set the new format
                    hr = videoStreamConfig.SetFormat( media );
                    DsError.ThrowExceptionForHR( hr );
                    DsUtils.FreeAMMediaType(media);
                    media = null;
                    // Fix upsidedown video
                    if (videoControl != null)
                        VideoControlFlags pCapsFlags;
                        IPin pPin = DsFindPin.ByCategory(capFilter, PinCategory.Capture, 0);
                        hr = videoControl.GetCaps(pPin, out pCapsFlags);
                        DsError.ThrowExceptionForHR( hr );
                        if ((pCapsFlags & VideoControlFlags.FlipVertical) > 0)
                            hr = videoControl.GetMode(pPin, out pCapsFlags);
                            DsError.ThrowExceptionForHR( hr );
                            hr = videoControl.SetMode(pPin, 0);
                finally
                    Marshal.ReleaseComObject(videoStreamConfig);
    What do I have to do that this (also) works with a File Source?
    Because this method only works with a Live Source (from webcam etc.)

  • How to change Layer Mode in Flash CS3?

    Hello,
    I would like to know how to change the layer mode to
    "multiply" with flash.
    I usually use photoshop CS2 to color my lineart. I set the
    top layer (the lines) to "multiply" to make the white transparent,
    and then apply color on layers underneath.
    I want to learn how to color my art on Flash, but I'm still a
    noob. I imported my bitmap lineart (inked by hand) and turned it
    into vectors (modify>bitmap>trace bitmap). Then I created a
    second layer underneath for the color, just like I would do in
    photoshop.
    But, the first layer's white areas are not transparent, so
    the color is not visible.
    So basically I just need to know how to change the top
    layer's mode to "multiply" so I can see through the white areas .
    Any help will be very appreciated.

    Nicochi,
    > So basically I just need to know how to change the
    > top layer's mode to "multiply" so I can see through
    > the white areas.
    Convert the top layer's artwork (raster or vector, doesn't
    matter) into
    a movie clip symbol -- select the artwork and go to Modify
    > Convert to
    Symbol -- and you'll be set. Once the symbol exists, you'll
    see mode
    choices in the Property inspector.
    David Stiller
    Co-author, Foundation Flash CS3 for Designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • How to Change Sequence Resolution After Setting Your Sequence Resolution

    Hello, I am using premiere pro on a mac and I started a project. I set my sequence settings. After putting together my movie and prepared it for export, I noticed that I initially made a mistake in my sequence settings and forgot to set my resolution to 1080p.
    I tried going back into my sequence settings and changing the resolution but it is grey and not accessible.
    Is there a way to either change the resolution or somehow duplicate the sequence into a new one with a higher resolution?
    I spent much time on this sequence and I do not want to do it all over again due to a little mistake.
    Please help?!
    Thanks.

    Thank you for the quick response. How do you copy paste a whole sequence into a new one?

  • HP Officejet 8600 Pro - how to change scan resolution presets at the printer

    I have an HP Officejet 8600 Pro and wish to scan to email from the printer and wish to change the default resolution setting.   I would like to change the default scan resolution so I dont have to remember to change it every time I scan.  
    If I change it with the HP Windows Printer Assistant software it only seems to change the resolution for this time and only from the computer not at the printer.  
    Is it possible to change the scan resolution settings at the printer? I cant find detail in the manual or on the printer console.

    bvlusa,
    Open the Icon labeled Officjet Pro 8600 on your desktop, and then click on Scan a Document or Photo. When the Scan application window opens you can change the Resolution from the drop down menu.
    I hope this helps.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Does anyone know how to change the resolution of a bitmap in LabVIEW?

    I need to do a LabVIEW program that changes the resolution of a bitmap to different values (i.e. 640x480, 320x240, etc.). If there is a way to perform this task, please let me know.

    Discussed here
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to change the resolution of a file?

    Hi, can someone please help me. I am working with illustrator CS and I am exporting a file as a jpeg. I need to print that file so when i export it i am changing the resolution to 150dpi. When i open the file in windows picture manager edit it and save the changes the file turns black and it prints a black page. This only happens when i change the resolution to 150dpi or higher if i leave it at 72dpi and make changes i don't have problems it will save fine. I have tried many different things but no luck. Hope someone here can help me. thank you.

    Sounds like an issue with your image editor. BTW if you plan on editing the image you should use a lossless format from Illustrator to the editor then save as a jpg. Each time you save the jpg more and more data gets thrown out until it unusable.

Maybe you are looking for

  • AP of purchase order issue

    I have a PO, the goods has been deliveried, and payment has been clear by customer, Now, vendor sent a invoice to us, but the unit price is different from the po unit price. I would like to know then how to do next step. I can't change the po price b

  • Is it possible to change Overridden Qualified Table Name in code?

    Hi, Environment: Crystal Reports XI R2, 2008, Sql Server 2005 I had about 1000 reports to change. Several changes are the standard, so i had created several tools that i use to make that change in all reports. However i can't find a way to change Ove

  • Mapping to simplify structure of XML for File Adapter

    Hi everybody Here is a short question regarding the restructuring of an incoming IDoc message to an outgoing file. The IDoc has the structure: -IDoc ___-->Segment A1            ______--> Segment B1    _________-->Segment C1  _________-->Segment C2  _

  • "Shared documents" VS "document library"

    What is the different between "Shared documents" and document library? Where do I find the "Shared documents" and what page can you recommend me to read about it?

  • Adding Searx as default engine doesn't work

    Hi Running Firefox 33.0 on Android 4.4.4, and tried to use http://searx.laquadrature.net/ as default search engine. Unfortunately, when I enter terms to be searched in the awesome bar, it always leads to the search home page of searx, but no term are