ActionScript 3.0 :: Screen Capture A Particular Position In A Stage?
Jun 26, 2010
basically i would like to screen capture a part for the stage. but i got no idea how to do it as i am very new to flash programming.i am using the PNGencoder to do the process, but i cant actually screen capture the position i want. this is tje sniplet of the code for the process. It is taken from a tutorial with some changes, but it is still lacking of the position of the stage i want to screen capture.
private function export():void
{
var bmd:BitmapData = new BitmapData(216.2, 468.29);
[code]....
the code are working properly for now except it captures the point from 0 x axis and 0 y axis. I need it to be like 150 on x axis and 150 on y axis.
View 3 Replies
Similar Posts:
Jan 24, 2008
I'm looking for any information anyone may have on ActionScript 3.0 and capturing the area of the stage. I'm not interested in taking a picture of someones desktop, just the stage.
View 10 Replies
Jun 2, 2010
I have a game that allows people to arrange images however they like, but I need a way for users to take a screenshot/image of their design (stage) so it can be emailed. I've found loads of examples that use server side scripts such as php (JPEGEncoder) but this particular program I�m creating is for internal office use only and don�t have access to a server to upload it.
View 3 Replies
Feb 9, 2012
I am working on a project that requires the stage (and everything on it) to be captured, converted to a bitmap and then that data to be posted to another domain. I have looked at the .getPixel method but that creates a ridiculously long string and more often than not, will crash the swf in the browser. How I could possibly approach this. Oh, I need to do this in AS2 too.
View 1 Replies
May 24, 2010
Made a swf [URL] some viewers see and hear fine but others are having sound and size issues and I need some practical answers. SIZE: I make the Flash stage the size of the original screen capture video of 1024 x 768 and right now it is set to
[Code]...
View 2 Replies
Dec 31, 2010
i want to user print screen command in AS3 and convert into bitmap as background in fullscreen i.e.
print screen from keyboard - keycode i.e. 44 [URL]
i want to know how can i run printscreen code from flash to capture user screen as i want to have flash presentation in 600x600px with disabled desktop and flash presentation should be in center of screen.
Quote:
import flash.system.fscommand;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
fscommand("fullscreen", "true");
[Code].....
View 3 Replies
Jan 8, 2009
When I click on a button I want to capture the entire screenand make it available in the background of the new frame Idisplay.How to do this?
View 1 Replies
Jan 20, 2010
Is there a way to create a screenshot of the browser in Flash? I know that in Java this is possible, and it will popup a dialog asking for trusting the signed Applet, but is there a way to do this in Flash?
View 2 Replies
Feb 1, 2007
is it possible to capture the screen and load it into a MC on the SWF?
i saw a plugin for Mprojector from Screen Time, but dont know how to use it.
View 2 Replies
Sep 16, 2009
I have several components who's screen position depends on the resolution of the monitor on which the browser lives.The problem I'm encountering is that the flash.system.Capabilities method pulls the resolution of the primary monitor attached to the computer. In most situations this isn't a problem but on one of my computers, I have a 1680x1050 and a 1440x900. At work, I have a 1920x1200 and a 1680x1050, so if I open the page in a browser on the smaller monitor, things are not centered and my tools panel is completely off to the right of the screen.
I have a block of javascript that I've tried, both in html and through php but the problem is that if I use either httpRequest or urlLoader to grab the html file, I get the source of html and if I try the php script, I get a script block that is attempting to write a cookie. If that page has not been visited prior to loading the flash site, or if cookies are disabled, it never gets written and I'm nowhere.Is there a method that I can use, that doesn't rely on cookies, to detect the resolution of the monitor that the browser is actually on, and not just the resolution of the first monitor?
View 2 Replies
Mar 26, 2010
Is there a way to play a SWF and screen capture it in a headless environment?
View 1 Replies
Apr 3, 2011
I am looking for a way to create and display up to 200 stage screen shots. Currently I record each screen shot in a BitmapData object, then play through all of them. This approach works but it takes too much memory - crashes some browsers.
What is the best approach to solve this problem? Can I create .png's, .flv movie or somehow compress BitmapData?
View 1 Replies
Jul 28, 2011
Is there a way to take screenshot of the client's window using flex?
I found an example which uses java bridge, but i am looking for different solution.
View 1 Replies
Jun 7, 2006
I want to know any actionscripts that could work on a button that could send what it is on your screen (flash movie) to someone else. I am working on this particular project in Flash 2004 and its got some photos, illustration, and of course text and I want to make a button which could send the whole look to whoever I want to send this out to.
View 4 Replies
Feb 12, 2010
How does [URL].. capture a computer screen from a browser using Java Applet? Any suggestion or a lead in how to accomplish this? Is there other way to do using using different technology such as Flash?
View 2 Replies
Jun 12, 2010
I need to capture whats currently shown in my app and save it as a image, is a flash app running locally, without apache, just a flash app with AS3, is it possible?
View 3 Replies
May 27, 2011
Basically I have designed a flash interface which puts a moustache over the users face in real time. My lecturer has told me to add a button which will take a capture of the image of the person with the moustace and add the image to a folder.
how to even begin this project, would anyone be able to point e in the right direction or offer a little wisdom on the issue?
View 0 Replies
Sep 2, 2008
I am trying to reverse engineer this: [URL]
I have code to capture a jpg
The trouble is I cannot fugure out how to target the save to a specific part of the stage, as opposed to a screen shot.
here is the link:
[URL]
Hit the spacebar to save the jpeg.
Code: Select all//see com.adobe.images folder for information about downloading
// the adobe JPGEncoder class
import com.adobe.images.JPGEncoder;
var rect:Sprite=new Sprite();
[Code].....
View 5 Replies
Apr 7, 2009
I am trying to create a Flash movie that allows me to click a button and capture a specific moment in the movie, convert it to a JPG and send it by email.
View 7 Replies
Jan 29, 2002
I'm trying to prevent screen capture of some copyrighted images displayed in a Flash Web site. I've tried using onKeypress "prt scr", and jumping to a frame in the timeline where the image isn't displayed, as the Print Screen key is the most commonly used for capturing from image editing programs. But that key option doesn't seem to be available.
View 14 Replies
Dec 6, 2011
I build flash ads, so my swf files are just a small portion of the entire website. What I am wanting to do is somehow to take a screenshot of the entire webpage and import that into flash so that i can manipulate a live website in flash. My ads display on various pages so I can't simply fake the website in a flash file and overlay it on top of the site, i need to somehow pull in the content of the site.I've searched all over the internet for a way to do this and have yet to find a way, so i thought i'd ask for help.I understand that i may need some outside Javascript or server side scripts to do this,
View 5 Replies
Oct 11, 2011
I have read the various posts here on SO regarding screen capturing, but none seem to be answering my situation.On our website (inside a web page), essentially here is what I would like to be able to do.
User clicks on a 'capture region of screen' button.They get some sort of draggable/sizable box they can use to define the area to capture the captured area gets converted into a (preferrably) .png image is uploaded (or at least made available to upload - maybe saved somewhere).I realize this is not doable with javascript alone.So,I am open to a Java or Flash solution, and/or even a commercial solution (a drop-in java applet that I can add to our site).
View 1 Replies
Apr 10, 2008
Got round to the point where screen grabbing an image and saving it to file is too much, so what i want to do now, is take a snapshot of a live webcam image (I have webcam display working) and display the snapshot/screen grab, next to it or anywhere in the movie. This way the screen capture can be stored temporarily in the movie. once the movie is closed, all info is lost. Once another screen grab is taken, then the previous one is overwritten. The idea is simple but having problems working out how to do it in AS3!
I have got to the idea that i may need to use the Bitmap API to copy a section of the movie, and then redraw it into a new bitmap object?
View 9 Replies
Feb 9, 2011
i want to take btn1 position half wwidth of own x position on stage
View 1 Replies
Oct 23, 2010
I have done this a million times in AS but not quite getting it in AS3.. maybe my brain is just fried..i have a rectangle_MC that is moving around the stage.. inside that rectanlge_MC i want to constantly redraw the stage, well only the portion of the stage that is covered by the rectangle..o if my rectangle for instance is currently at x:60 and y:80, and its demensions are 200x200, want it to redraw just the ares of the stage that starts a x:60, y:80 and goes to x:260 and y:280..
View 4 Replies
Mar 15, 2010
I am trying to grab part of stage area using BitmapData and copyPixels method:
bmd = new BitmapData(stage.stageWidth, stage.stageHeight);
bmdRect = new BitmapData(320, 240);
rectangle = new Rectangle(360, 20, 320, 240);
bmdRect.copyPixels(bmd, rectangle, new Point());
[Code].....
The result i get is an empty .jpg I m pretty sure that the error is in the Bitmap procedure and not the saving one...
View 2 Replies
Jan 13, 2011
I have a sprite that I zoom out using the sprite.z property. Once the z property has been modified the sprite x and Y values do not match the stage x and y real value. So far so good and what I was expecting!
What I want to accomplish is that when the user clicks the stage the sprite tweens to where the mouse was clicked but I don't know what x and y position to send to the sprite. ( since stage 200,200 is something like 400,400 for the sprite depending on z value)
I tried Utils3D.projectVector using Matrix3D of the perspectiveProjection of the stage without success. (i.e. I get Vector3D(Infinity, Infinity, NaN))
I could fallback to scalex/scaley but sprites.z gives me the correct scale, perspective projection, paralax scrolling since I have sprites on different z level all for free. I would have to recode all that.
View 5 Replies
Nov 3, 2009
lets say i have a sprite on the stage and one movieclip inside it. now i want to tween or just set that movieclip x and/or y position according to stage position. so for example i want to set mc.y = - 100; (by which i mean -100 to stage, not sprite which mc is in.)
View 2 Replies
Nov 7, 2010
If I have the following code which adds an event listener to the stage, why does it not respond when the capture parameter is set to true. It works fine when it is set to Target and Bubblig (false). My understanding is that all the phases happen...
[Code].....
View 1 Replies
Mar 2, 2009
what I'm trying to do is allow the user to pick a section of the stage, click, and have the region defined be copied and show up on the other side of the stage. It may be better explained to think of it like a camera game. The player has cross hairs, can move the square (which tracks the mouse) around the stage, and click to capture that square's pixel information, store it to a new movieclip and display it on another area of the stage.
I've found many resources online about capturing BitmapData, including capturing from embedded FLV videos, but I haven't seem to be able to find anyone who has created something like this which captures from a moving region. However, I have seen it done before in a game that is no longer online from PBSkids.org.
Here is what I have so far. Right now, when I click the movieclip loads all white pixel data and I'm not sure why.
[flash=]import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
stop();
[Code].....
View 1 Replies