ActionScript 3.0 :: Capturing BitmapData While In FullScreen?
Jun 23, 2009
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off. The document size is 100x700, and the stage is aligned to bottom. I've been able to capture the right size, however it always seems to capturing the image from the wrong start x,y position. There is some elements out of bound but I am just trying to clip them.In the source files you will see a few of my attempts commented off. Is anyone willing to help me troubleshoot this?
Here is a live link :
[URL]
If you right click you'll see the save as wallpaper option. It works properly while in normal display but everything gets offset in full screen mode.
View 3 Replies
Similar Posts:
Jun 25, 2009
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off (see images below). The document size is 100x700, and the stage is set not to scale / aligned to bottom.I've been able to capture the right size, however it always seems to capturing the image from the wrong start x,y position. There is some elements out of bounds but I am just trying to clip them depending on the current stage width and height. In the source files you will see a few of my attempts commented off (below/attached).Fullscreen Capture :Normal Capture :
CODE :
import com.adobe.images.JPGEncoder;
///---------- [ Set Variables ] --------///
[code].....
View 14 Replies
Dec 19, 2010
I'm trying to grab the BitMapData from an Image, convert it to JPG, and send it to a server where it will be written to a file. It "looks" like it works, the resulting .jpg is the right size and displays in an image viewer, but there is no picture... just an off-white background. Here's a code snippet:
imgTemp.addEventListener(FlexEvent.UPDATE_COMPLETE , imageLoadedHandler);
...
private function imageLoadedHandler(event:Event):void {
if (imgTemp.width == 0) return;
[Code].....
Then send "ba" to the server where it's written as a .jpg.
The data "looks" right when I receive it on the server, correct length, bits look the same.
View 7 Replies
Jun 19, 2009
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off. In the source files you will see a few of my attempts commented off.
View 6 Replies
Jul 30, 2010
How do you capture the event on the Video Control Skin when the Full Screen button is clicked.
View 3 Replies
Aug 12, 2009
However I have created a colorwheel and positioned the container it resides in. They using a simple click listener
[Code]....
the issue is if I click from the centre of the colorwheel down I get the bitmapPixel value, but the other 3/4of the item returns 0.
View 6 Replies
Jan 31, 2007
I'm using Flash 8, with this code in the first frame:
import flash.display.BitmapData;
rissa._x=Stage.width/2;
rissa._y=Stage.height/2;[code].....
When I publish the file, I'm getting the following error message in the Output panel:
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 7: The class or interface 'BitmapData.loadBitmap' could not be loaded.
var plaid:BitmapData.loadBitmap("plaid");
Total ActionScript Errors: 1 Reported Errors: 1
View 8 Replies
Oct 14, 2009
I am trying to use the reflect class from "http://pixelfumes.blogspot.com/2007/03/reflection-class-v3-with-source .html" but I keep getting this error:
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at Reflect()
at Site_fla::GalleryPage_29/loadThumbs()
at Site_fla::GalleryPage_29/sortXML()
[Code]...
btw, first I used assigned thumbContainer as the mc argument (outside the loadThumbs() function) and it worked but not exactly what I wanted... because I thought it is supposed to update when the movieclip is animated but it actually didn't... when I use a scroller, only the thumbs that are first loaded to the stage get the reflection..
View 10 Replies
Dec 29, 2011
I've been using BitmapData.copyPixels() to draw graphics onto a canvas (Bitmap).I need to rotate the resulting graphics without the use of draw() because it's vastly slower.How can I rotate the target graphic? I'm assuming that there might be a formula or library that I can use which will first reorganize the pixels that make up a graphic based on an origin (point) and radians.I'm pretty certain that I'm not capable of creating such logic, so if there are any known libraries that do this, that would be awesome.I'd like to achieve something similar to XNA's SpriteBatch.Draw() method, which accepts rotation as its 5th argument.
View 3 Replies
Sep 1, 2011
how to use the bitmapData collision method. Now I'm trying to figure out if there is a way to see at what angle or coordinate of the bitmapData the collision happens? I need it in order to figure the accurate bounce angle after the collision occurs.
View 2 Replies
Jul 15, 2009
I'm currently working on a flash game and I need to know how to addChild a BitmapData or draw a BitmapData to screen. If I can't than how can I give a DisplayObject my BitmapData?
View 2 Replies
Dec 22, 2011
I've made a mobile version of my software, with low-res images and such, and I can now fully buffer all my content (including a 360 frame animation which is buffered to memory). Problem is, that everytime I update the view, more memory is used.When I write image = new BitmapData();, does it store the previously created BitmapData's in memory? Do I have to flush the memory somehow before I draw my second picture in BitmapData?Example:
ActionScript Code:
// In this example I draw using the same bitmapData several times, also
//overwriting the first image. Do I have to somehow delete the data first, to
[code].....
View 1 Replies
Apr 13, 2009
I like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I�d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.I cant, for the life of me, figure out how to do this with various settings�it should be easy! This is what I have--is there a better way to do things (without a custom movie player)? My inital settings are as follows:
Code:
stage.displayState = StageDisplayState.FULL_SCREEN;
theMovie.fullScreenTakeOver = false;
Then I have a function which should work--but my button won't appear in fullscreen--Can I apply this function to the built-in fullscreen button?:
Code:
function handleClick(event:MouseEvent):void
{
if ( !theMovie.fullScreenTakeOver )[code]....
View 9 Replies
Apr 19, 2009
I need a fullscreen scroll bar on my fullscreen flash site , i need it to function similar to this URL...
View 1 Replies
Jan 9, 2012
I am having an issue with using BitmapData.draw(stage). I am getting the following error:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:
var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.
View 4 Replies
Jul 14, 2010
I have a swf inside a html page. If I open it with IE or FF and put it into full screen I can exit full screen with the ESC button.Now if i try this with my WinForms app and WebBrowser (or ShockWave Flash Object) it's not working??
View 3 Replies
Oct 19, 2006
What I've done is created a "fullscreen SWF" by using ActionScript to stretch a movie clip (yellow rectangle) in the background to fill the whole browser frame. The navigation is positioned in the upper left using ActionScript also; when the user resizes the window, positions are adjusted so the nav always stays in the upper left. (Adapting the technique from http:[url]....
External SWFs are loaded from an XML file into a blank movie clip on a layer that is between the yellow background and the navigation (adapting the kirupa XML Photo Gallery). Here's my problem: I want to be able to create full screen backgrounds for these external SWFs so when they are loaded into the main SWF they cover up all the of yellow background of the main clip. Also if the user resizes the window, I hope like the main SWF, the background on the external SWF can also resize to match.
If you press next twice to get to item three for example, I want to be able to stretch that orange box to fill the entire background. You'll notice if you resize the window on the third item, the orangle rectangle will adjust, it's just not correct.
View 2 Replies
Feb 24, 2011
I'm hoping someone can help me with an issue I'm having.
I currently have an AIR Application that runs fullscreen.
At some point in the application, I am trying to get a video to play fullscreen as well.
[Code]...
View 3 Replies
Aug 30, 2009
I'm making a flash site, and i want it to load full browser with a "fullscreen"-button to go fullscreen. The problem, however, if i resize, the site will keep the same width-to-height ratio...But if i'm testing it using the flash debugger, everything resizes just correct...My html:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">[code]......
View 1 Replies
Dec 28, 2006
i have my photo gallery and if you push a button photo has to open in new window with fullscreen.
for fullscreen i use Stage.displayState = "fullScreen";
View 2 Replies
Dec 29, 2009
The title might be a little misleading. Look at my code and I will explain
public static function loadTile(tileDir:String = "empty"):void
{
if(tileDir != "empty")
{
tPoint = new Point(0,0);
tRect = new Rectangle(0,0,30,30);
[Code]...
I am trying to do tiling with sprites. I want my tiles to be interactive, so that is why I am using the sprite object instead of using regular bitMaps to represent my tiles. You might be wondering why I wouldnt just use graphics.beginBitmapFill(tImage); and graphics.drawRect(0, 0,tWidth ,tHeight ); to pick out the tiles I want to use. Well reason being is because it turns out that drawRect() first and second parameters actually alter the location of where the actual sprite sits at.
So if I set the x and y properties of the sprite to x = 20, and y = 20. then I set my drawRect(20,20). it actually adds an extra 20 pixels to my x and y coords of my sprite. And I know the reason why, I just need to know a better way.
View 2 Replies
Aug 18, 2011
Is there a how-to I can follow to help me in selecting technologies and in implementing my solution? the exact behaviour I would like to implement is as follows:
1) page loads
2) webcam starts recording
3) user hits button
4) webcam stops recording
5) video is stored on my server
I have an MVC3 app I need to enhance with video capture functionality. I don't yet understand all the pieces involved but it seems I may have to choose between Flash (which is not supported on iPhones and iPads) and Silverlight.it also seems I need a server-side component like the Flash Media Server. Honestly I'm overwhelmed with all the choices (having to learn ActionScript, Flex, what not).it just occurred to me: if anyone's come across a service that will manage the process for me, that too would be very cool. I'm thinking that maybe someone out there (haven't found them yet but maybe it's a matter of poor keywords) has servers and offers a url I could use in an iframe to have them capture the video for me
View 4 Replies
Nov 23, 2009
There is a way to capture the list of parameters passed to SWF? Suppose that I have the following url:
Code:
mymovie.swf?level=1&score=100&23764826347
I would like to capture:
level
score
23764826347
Not the contents, but the NAME of the parameters!
This way, I can, for instances, pass a parameter that be the value itself, such as a code, like this:
Code:
mymovie.swf?427642833467
View 2 Replies
Mar 29, 2010
I have two columns of objects on stage, one on the left side column (A) and one on the right side (column B). Each column has 3 objects in it. For this quiz I want the user to be able to draw a line from each object in column A to the corresponding object in column B.To do this I need to capture the xy coordinates of the first object that the user clicks on and then capture the coordinates of the 2nd object the user clicks on so that I can draw a line between the two of them. Drawing the line is no problem but how do I capture the coordinates of the first object selected and then the 2nd object selected? This is as far as I've got with the code.
var clip:Shape = new Shape()
var startX=0
var startY=0
[code]....
View 1 Replies
Mar 13, 2010
I have a Flash application in which I would like the user to scroll a UI element by moving the scroll wheel on the mouse. My problem is that the Flash application is embedded in an iframe that also has scroll bars. So when I use the scroll wheel, even when the mouse is above the Flash application, both the Flash application scrolls (like it should) but the webpage also scrolls, which I would like to avoid.
So is there some way to avoid this behavior? Can the flash application capture the mouse so that hte events no longer bubble up to the containing page?
View 3 Replies
Aug 17, 2010
I am currently doing Augmented Reality. I got my marker to detect my model but my problem now is how to screen capture the content that is in swf. (As in capture the dae model shown in the comp not from webcam.)
& also i just want to capture the swf window not the whole desktop.I read online, they say its impossible?
Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
(Moreover, does anyone know how to detect multiple dae models with different markers?)
View 4 Replies
Apr 3, 2012
This question was posted in response to the following article:[URL]
View 10 Replies
May 1, 2009
There is a site with an image gallery that uses Adobe Flash.Is there a way I could capture the images? ( Apart from print screen)Softwares like Orbit do well with .flv videos, but don't work with images.Is there something that will help me getting a direct path to the images?
View 3 Replies
Mar 19, 2010
i am using this code below to dynamically capture the name of the button pressed and then playing the related balloon movie clip animation.
[Code]...
View 2 Replies
May 6, 2010
I'm trying to capture key events in a mx:Image and I can't get it to work.
<?xml version="1.0" encoding="utf-8" ?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" />
<mx:Canvas width="100%" height="100%">
[code]....
When I press a key when the mouse is over the image I expect the label text to change to "Something", but nothing happens. I've done all sorts of combination of enabled and putting the keyDown on the canvas and the label as well.
View 2 Replies