ActionScript 3.0 :: Bitmap Screenshot Of Dragged Image

Nov 17, 2010

I have an masked image that is externally loaded onto my stage that the user can drag and position. I then need to be able to record or save where and how the user has positioned the image by either

-taking a bitmap copy of where the user has positioned the image (my first and easiest thought of how to do this)
-or is it possible to get X and Y co ordinates of where they have positioned it

I have a movie currently set up but when the user clicks 'save and continue' it takes a copy of the original position of the image - not from where you have last dragged it to. Full code and attached fla file below:

Code:
stop();
// Loader
var imageP1:Loader = new Loader();
var request:URLRequest = new URLRequest('XXXXXXX/image.jpg');
imageP1.load(request);
addChild(imageP1);
[Code] .....

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Bitmap Screenshot Of Dragged Image?

Nov 17, 2010

I have an masked image that is externally loaded onto my stage that the user can drag and position.I then need to be able to record or save where and how the user has positioned the image by either -taking a bitmap copy of where the user has positioned the image (my first and easiest thought of how to do this) -or is it possible to get X and Y co ordinates of where they have positioned it I have a movie currently set up but when the user clicks 'save and continue' it takes a copy of the original position of the image - not from where you have last dragged it to?Full code and attached fla file below

Code:

stop();
//--------------
// Loader
//--------------
var imageP1:Loader = new Loader();

[code]....

View 1 Replies

Flash :: Use The CS4 Tool's On A Bitmap Image After Tracing The Bitmap Image And Applying My Settings?

Aug 7, 2009

Use the flash CS4 tool's on a bitmap image after tracing the bitmap image and applying my settings?

View 10 Replies

Professional :: Image Layers - Icons Are Dragged BEHIND The Image Uploaded

Sep 26, 2011

I have a script that loads an image and inside this swf document, I have a few icons such as glasses, hats, etc.. However, when I try to drag and drop these icons over the uploaded picture, the icons are dragged BEHIND the image uploaded.

View 3 Replies

Sending Image (Screenshot Of Stage) By Email

Sep 5, 2009

I would like to take a "screenshot" of the stage within flash and send it as an image by email. I have tried AMFPHP and the method described here - [URL]. This is saving a jpg of a movie on the server, but no email function. I know how to setup a very simple php email file but without attachment. So my problem is I have no idea how to "connect" all those parts together and make it so that when you click the button in flash it'll send the jpg by email directly.

View 2 Replies

Web Development :: Save Screenshot Image To File In Flex 4

Jun 22, 2010

I need the user of my Flex application to be able to save a snapshot of part of the UI to a local jpg file. I got the screenshot part down - can generate an image out of any given control. However, the only way I see to let the user save the image locally is to send to my server which would return it with the appropriate Content-Disposition.

View 2 Replies

ActionScript 3.0 :: Using Flash To Take A Screenshot And Attached Image To An Email?

Jun 3, 2010

I have a button, when you push it I want:

1. Flash to take a screen shot of the current Flash window

2. Open up the computer's default mailing client and automaically attached the screenshot that I took

View 3 Replies

ActionScript 3.0 :: How To Generate Image That Will Be Dragged

Jan 29, 2012

So I am using actionscript 3.0, not FLEX so I had to make my own drag and drop code. The only thing I now need is a way to create a copy of the datagrid row that follows the mouse when dragging. How would I make a 'semi-transparent image' of the row to drag along with the mouse when I drag? It would seem like there would be some way to render a row as an image, but as of now its unknown to me. I would use a MOUSE_MOVE event in combination with knowing that the drag is initiated, but how to I generate the image itself that will be dragged?

View 0 Replies

ActionScript 3.0 :: Stop Mask Being Dragged Outside The Bounds Of The Image?

May 13, 2010

I wish to stop my mask being dragged outside the bounds of the image. The current set up I have is as follows. I created a circle and added a blur; I then exported it for action script setting its class as a sprite with the class name "Circle". I also made my image i was going to mask a Movie clip with the isntance name "mc_bee". In the actionscript I added it to the stage, positioned it and cached it. I tried to add in actioscript to create the bounds the image the mask is making with the code below:

[Code]...

View 1 Replies

Professional :: Dragged Image Jumps On Visibility Change?

Sep 1, 2010

I'm dragging a movieclip that has the visibility set to false.  I can trace the x and y of the clip and it is definitely where the mouse is.  However, when I toggle the visibility to true, occassionaly it flashes on at the last location it was visible, just for a brief instance, before teleporting to the mouse location. 

View 2 Replies

Distorting A Bitmap Image?

May 27, 2009

Okay, I know this is a stupid question but, if you bring in a jpg or png image and either convert it to a graphic or a movie clip, or just leave it as an image, is there a way to distort the image other than scaling, rotating and skewing it. For example, I want to change the perspective of an image the way I do in photoshop.Let's say the image is a house, in photoshop, you can take the house and make it look like a trapezoid shape, you know, wider at the bottom than at the top  Is there a way to do this using flash tools? Envelope distorting, if you break the image apart doesn't really work.

View 1 Replies

ActionScript 3.0 :: Cut Up A Bitmap Image Into Pieces?

Mar 9, 2011

I'm trying to cut up a bitmap image into pieces, and then tween each piece away sequentially. Cutting up the pieces and placing those pieces in an array is where I'm at. But to tween each piece on a timer is where I'm stuck; here's the code:

package
{
import flash.display.*;

[code]....

View 6 Replies

Flex :: Load More Then One Image In Bitmap?

Oct 8, 2010

i can't download more then one image from url

function processXML(e:ResultEvent):void
{
myXML = e.result as XML;

[Code].....

View 1 Replies

Create An Image Control From Bitmap?

Apr 12, 2011

I need to create an Image control from a Bitmap because I have an ItemRedender to use in a List control.

I'm trying to show a list of images (Bitmaps) in a List control and I couldn't by now.

View 2 Replies

AS3 :: Instagram-like Image (bitmap) Filters?

Oct 12, 2011

I'm wondering if there is some library (or maybe tutorial?) which can produce Instagram-like color tweaks for Bitmap/BitmapData objects in AS3. Color Matrix/ColorMatrixFilter will not be probably able to achieve such as results or yes?

View 1 Replies

ActionScript 3.0 :: Replacing A Mc With A Bitmap Image?

Nov 16, 2010

I am trying to replace a movie clip image with a bitmap image and now the code to fire the image(missile) doesn't work. I get these errors:1119: Access of possibly undefined property dx through a reference with static type flash.display:Bitmap.1119: Access of possibly undefined property dy through a reference with static type flash.display:Bitmap

package {
import flash.display.MovieClip;
import flash.events.Event;

[code]....

View 1 Replies

ActionScript 3.0 :: Image Loader To Bitmap

Apr 10, 2012

I'm loading a list of urls of pics from an fql query, then loading those urls with the loader class using this function:_loc is a MovieClip that holds the picture,[code]In onMyPictureLoaded I would like to get the bitmapdata out of loader.content and scale the image (smooth it too) that way, and then reattach it to the _obj MovieClip, but I'm having trouble reattaching that new bitmap to the object.It seems the problem is more to do with events and not having the ability to pass information (_loc, for example) from:loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,onMyPictureLoaded); to the onMyPictureLoaded function.

View 11 Replies

ActionScript 3.0 :: Overlaying 1 Bitmap Image On Another On A 3d Sphere?

May 24, 2009

The basic concept: I want to at runtime overlay (or paste or whatever) one bitmap image asset onto another. The original image asset is a texture on a 3d sphere.Example:3D Sphere with earth texture applied to it. Put a cloud on the earth texture and have cloud move along the earth.

Caveats:Can't use any composite materials because I take a serious perf hit. Want to try working only with bitmaps to see if it is faster.I've gotten this far but don't know how to fill rectangle with jpeg file and certainly have no idea where to go from here..earthBitmap= new BitmapData( 256, 256, true); fillRect will only do a color ... I need what fills a rect with jpeg image and how to edit a bitmap on the fly.

View 2 Replies

Professional :: Using Bitmap For Texturing Vectorial Image

Feb 21, 2011

How can I use a bitmap tile for texturing a vectorial image ?

View 2 Replies

ActionScript 3 - Possible To Distort Bitmap Image In Flash?

May 10, 2010

What I would like to do is to take a loaded GIF file as a Bitmap and then distort it by stretching and shrinking parts of it, so it would look like it got squished up against the screen. I'm pretty sure that there's no easy way in Flash to go beyond scaling and shearing, but I wonder if there might be some simple techniques to accomplish this kind of effect. By the way, I've also thought of pre-deforming the images in GIMP and saving them there, but I can't find a simple way to do it without learning their scripting language.

View 1 Replies

Actionscript 3 :: Set Bitmap Image In Canvas Background?

Nov 18, 2010

I have image as Bitmap:

var bitmapImage:Bitmap=getDefaultImage();

I need to set this bitmap as canvas backgroundImage.

I find method myCanvas.setStyle("backgroundImage",url); But i dont need url. Whent i do this:

myCanvas.setStyle("backgroundImage",bitmapImage); I have an error.

How to set bitmap image in canvas background?

View 1 Replies

Actionscript 3 :: Itarating Each Pixel Of A Bitmap Image

Mar 11, 2011

Is it possible to iterate each pixel of a bitmap image? Eventually what I'm trying to achieve is that I need to get the coordinate values of each pixel of a bitmap image and change the color of those pixels according to their coordinate values. As I see it, I need to use the getPixels() method but I still did not understand exactly what I should do.

View 3 Replies

Actionscript 3 :: Image - Slice A Bitmap Into Tiles

Aug 9, 2011

I have the Bitmap data from a Loader object and I would like to slice it up into 32x32 squares to use as tiles. What is the most efficient way to do so?

View 2 Replies

Flex :: Display An Image Using A Bitmap As Source?

Aug 25, 2011

I would like to display an Image using a Bitmap as source. I've looked at many websites and most suggest something akin to this but somehow it still doesn't work....img1 works fine... But img2 doesn't load for some reason.

private function onComplete(event:Event):void{
bytes = event.target.data;
img1.source = _bytes; /*this last bit works*/[code]....

View 1 Replies

Actionscript 3 :: Change Bitmap Image In Flash?

Nov 15, 2011

I've been tasked to write a chat engine in actionscript3 (AIR) and every chat message has an image of the poster associated with it. So I have 5 chat messages on the screen at any one time but it will be obvious that the images associated with message e.g. #1 changes all the time because the last person posting is different.

What I believe is wrong is to use the .addChild method every time I need to replace the image because it will just keep creating more stuff on the stage. What I tried to do is the code below but it refuses to update the image. The way I thought it should work[code]...

View 1 Replies

ActionScript 3.0 :: Bitmap Image & Shape Object Into One?

Feb 11, 2009

I have an image, that will be dynamically loaded. I have some graphics drawing tools with which a user can draw something, which is saved on a shape object. Now what i want to make the uploaded pic & drawing pic into one pic. Actually it will be better if i can draw on the uploaded pic.

View 1 Replies

ActionScript 3.0 :: Image Loader With PNG Bitmap Mask?

Aug 27, 2009

I'm trying to create a AS3 image loader with the possibility of a PNG (transparent) mask...

Tried and searched for hourse, but I won't get it right...

View 9 Replies

ActionScript 3.0 :: Array - Explode A Bitmap Image

May 11, 2010

I want to explode a bitmap image. so I created some Array but I can not go ahead. Her is the code:

[Code]...

ok when i say Tweener.addTween(arrayOfBitmaps[i]. the animation is just made from the last part o fthe array and not by the whole group.

View 1 Replies

ActionScript 3.0 :: Bitmap Image Flickering When Animated

Sep 3, 2010

I've put together an example of the problem I am having and I've also attached my 2 x 2 image I'm using. The image is linked with the class name of ContentTexture which is referenced in my code below:

ActionScript Code:
import com.greensock.TweenLite;
import com.greensock.easing.*;
import caurina.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
[Code] .....

I've tried using different tweening engines (greensock's TweenLite, Tweener, and flash's built in Tweening engine) so I think it's more of a general flash issue...maybe a bug? I'm using Flash CS4 on a PC and I've tried 24fps and 30fps with no difference. Is this a rendering issue/flash bug? or is there another setting I'm missing?

View 4 Replies

ActionScript 3.0 :: Bitmap Object - How To Scale Image

Jul 30, 2009

When I created a Bitmap object from drawling the pixels of an image and then scale that Bitmap too large (or even too small) the image disappears or in some cases distorts in what appears to be random pixels barfed all over my screen.

In order to show you this I have made an example: [URL]
(click the plus button any more than 8 times and poof! the bitmap disappears)
And source: [URL]
(Flash CS4)

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved