Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Crop Image


Let's say I have one tile map 200x200 with 100 images(20x20).
I know there are software's where I can crop the images and then import all of them to flash.
Is it possible to have the same feature using flash mx 2004 with the power of the new actionscript 2.0?
Thanks in advance.




FlashKit > Flash Help > Flash ActionScript
Posted on: 12-22-2003, 10:33 AM


View Complete Forum Thread with Replies

Sponsored Links:

Image Crop
i want to crop an image of 1000pixels wide in to three parts.. using actionscript.. how shall i do it... i heard a merge command in flash 8.. i don't know how to use it.. can any one help me with this along with the code...

or do any one know other ways to crop the image dynamically using actionscript.

View Replies !    View Related
Dynamic Image Crop
Hi,
besicely I am a java game developer and did morethen 25games for http://www.funschool.com , now days I am shifting to flash game programming and looking for some help in flash to crop the image in different size. I want to devide images into 4x4 or 5x5 for different game levels, and also want to display different image for every time games load. It must be very easy for you flash doctors.. so please help me reagarding that as soon as possible. Thanks in advance...
Prashant

View Replies !    View Related
Crop Image With Actionscript
i have a large image that i want to load into flash and crop into 16 smaller images. i need to do this using actionscript because the image is dynamic. i know how to use a variable to load a jpeg into an instance of a movie clip, but how do i crop the movie with actionscript?

View Replies !    View Related
Crop Image Actionscript
Hi,
I am building a small application to teach students how to Crop their images. I load an image using loadmovie and I would like to apply a mask that would "grey out" everything except the area I selected. Any ideas?

-D

View Replies !    View Related
Crop Image Actionscript
Hi,
I am building a small application to teach students how to Crop their images. I load an image using loadmovie and I would like to apply a mask that would "grey out" everything except the area I selected. Any ideas?

-D

View Replies !    View Related
Crop A Circle Out Of An Image (MX04)
I am trying to make little circle-shaped thumbnail buttons of images that I want the buttons to load. I imported my image the way I want it to look when clicked on and loaded. What I can't figure out is how to crop that same image in Flash MX to make the little button. I don't really want to make the cirlcle button in photoshop and import it since it will add more files and more Kbs to the swf. I just want the imported image to be an image instance and also a circular button instance. Is this possible? Thank you!

View Replies !    View Related
Image Upload, Resize And Crop
Hi

I need to make an application where I shud be able to upload an image, resize and crop the image. The image which is cropped shud be sent to the next frame where i will add filters in flash.

Please give references

View Replies !    View Related
Crop Image And Reflect The New _width & _height.
After searching the boards, I'm not so sure that this is possible... but I thought I'd ask anyway!

So I have a movieclip named "mainclip". The _width is 50, and the _height is 100.

Within it is a picture on layer 1, and a mask layer above that. When I shrink the size of the mask layer, the _width and _height of "mainclip" remain the same, even though most of the picture inside is now invisible.

Is there a way to make the _width of the "mainclip" be identical to the mask and forget about what we cant see? If not with a mask, can it be done a different way?

Thanks!
Ralgoth <- a newb of many sorts

View Replies !    View Related
Crop Image Based On Bounding Box Area
I was wondering how one would go about uploading and image and having a gray box that indicates the crop area able to be moved around. Once the user selects the position/crop area it save that as a new image.

I understand the save/upload would require a server side script but couldn't the cropping the image and moving it around and then generating a new image be done with the bitmap data class or something?

Any help would be greatly appreciated? I know this was done may of times in flash 8 with the GD libraries and stuff but i need this done in AS3.

Any idea how to go about it, urls, suggestions, etc?

View Replies !    View Related
Make A Lasso Tool To Crop An Uploaded Image?
Greetings!

I'm trying to create a photoShop type lasso tool so users can crop out their heads in an image they uploaded. I have all the problems solved except for how to make the lasso so they can crop their head out. I figure lasso tool is the best way. I made a mask with curveTo but that only makes a circle. A lasso tool would be rad. Is there a way to like draw a line with a mouse around an image and then fill it and make that the mask? I figure you can createEmptyClip and then fill it up with draw but how do I make the lasso??

If any of you can point me in the right direction towards how to make a cropping/mask lasso tool i'd be very happy indeed

View Replies !    View Related
How Can I Crop An Image With Out Having White Space In The Final Product
I am trying to create a crop component or Class so that I could use a live video feed to create an ID Card Picture application.

For example> I have a live video feed(Camera) with a rectangle shape on top of the video feed, so that the user can drag the rectangle around the live video and select what he would want to be in the preview window.

The problem is this: The rectangle tool creates a white space around the top and left side of the preview window(which is a bitmap). In other words the rectangle is only acting as a mask of the orginal video.

For example> Original video/camera feed has width:320 and height:240. I then use the draw method with a rectangle element as a paramenter. The rectangle has coodinates of (x:20,y:20,width:50,height:50). So yeah that seemed to work fine. But actually it only creates a masked image of the original video. In other words 0 to 20 pixels at the top of the preview bitmap is white an the 0 to 20th pixel on the left side of the priview windows is also white......So I essentially just created a masked image. What I actually want the draw tool to do is to have the rectangle area be a cropping tool. The final bitmap would have a width and height of 50. I could then stretch out the bitmap and have it appeared to of zoomed the image.

What is up with the whitespace?
===============================
AS3 code reference
var myRectangle:Rectangle= new Rectangle(30,30,150,150)
// render the player as a bitmapdata
myBitmapSource.draw ( myVideo,null,null,null,myRectangle,false );
=======================================I am also starting to investigate the transform methods, maybe I need to transform the original feed somehow. I aslo saw a read only property named PixelBounds?

Any help would be appreciated:

Doug Lubey of Louisiana (DougLubey.com)

View Replies !    View Related
Crop The Dyanmically Loaded Image Using Action Script
hi can anyone help me to crop the exact image through the flash action script. if anyone has smaple page please share with me ...Thanks

View Replies !    View Related
Display Part Of Loaded Image (crop/resize Without Mask)
Ok. My first thread... Hope someone can help.

I'm trying to display thumbnails in an image gallery. The new thumbs I create are 37x37 pixels large and I load these dynamically into the movie using loadMovie().

I would like to be able to use the thumbs I've created for previous galleries (larger non-square thumbs). I know how to resize the thumbs to fit the area (37x37) but I don't want them to get stretched or squeezed. I would simply like to show the part of these thumbs that fits within the area.

I know I could use a mask of 37x37 pixels and apply it to the thumb but I would like to avoid this as I have a lot going on... Anyone know an easy/another way to do this?

/erik

View Replies !    View Related
Flash Component: Image - Crop, Resize, Rotate Zoom In/out
Hi, We've got a photo contest and we need an image manipulation tool that will allow users to import image, crop, move, resize, roate and zoom in/out to align their photo within a frame for example. Any one know of a component like this? I would appreciate and advice or links to other sites.

Thanks in advance.

Dan

View Replies !    View Related
How Can I Crop The Top?
My client says my movie sits too low on her 15" monitor. I have a 17" and so it looks just fine to me. Anyway she wants me to remove the whitespace at the top. I already used marginheight=0 and topmargin=0 in the html portion.

When I try to change the height in Flash MX properties it crops from the bottom -> up. But I need it to take off some of the white part at the top, not the bottom. Does this make sense to anybody?

Help, if you can.

Thanks,

Shawn

View Replies !    View Related
How To Crop The Top ?
Im in a serious fix !!! after doing all the designing/animation in my flash movie, exporting it and putting it in my html page, i feel the swf has too much blank space on top. I tried reducing the movie height, but the movie reduces only at the bottom and not on the top. Can someone pls tell me how to reduce space on top, without having to rework on all the frames one by one (moving it up)

View Replies !    View Related
How Do You Crop An SWF?
I need help. Im trying to crop a swf file. When I go into modify/doc/ props and resize the files it always takes from the bottom. Is there anyway to reverse this so that it crops the top or even the side? Kinda of like resizing a canvas in photoshop.

Thanks?

View Replies !    View Related
Crop The Top Of A *.swf Or *.fla
i want to crop a *.fla file so that the top margin is reduced instead of the bottom. Is this possible?

View Replies !    View Related
Crop
sup guys, I need to make my .fla a smaller canvas size but I need to crop the top out, how do I control where the document will be cropped.?
Noir.

View Replies !    View Related
Crop Command
Hi folks

i just created an anim lying on top of a layer with an imported screenshot from my photoshop design. now i am looking for a command that is similar to the crop command in photoshop to cut out my animation and save it as swf.

thx

View Replies !    View Related
Crop To Stage
Hi,

I'm creating some flash documents and sometimes I have extra stuff outside the document (stage) size. When I load this movie into a web page I see the extra stuff that was outside the document size. I've searched and searched but can't seem to find any crop features.

How can I crop the flash document to the document size?

Thanks!

View Replies !    View Related
Movie Too Big.... How To Crop?
So..... I'm using MX 6.0 .... First time project. I built my animation (movie) with sound on a document that was 40" by 40" . When finished I only used about 7" x 20" . Now when I launch the swf file, it plays very small in the browser, and I have to zoom in to see it.

I tried to make the document smaller, but because I built it in the center of the 40" height, when I make the document smaller... it crops out all my stuff.

If I move my beginning images closer to the zero,zero point... it only stays for the first keyframe.... then POOF - gone.

Is there a way to get this smaller, so it will be bigger when it plays in the browser?

Sidebar question. The music starts abrubtly (Frame 1 ) . Is there a way to add silence, or space before everthing in the beginning?

Much thanks in advance!

Grabster

View Replies !    View Related
Crop Movie Afterwards?
Hey there,

I have a simple question, I hope..

I made my flash movie to big for browsers, and I can't change everything..
So I'm wondering if there is a way with either actionscript or html to crop it to a certain size, but keep it all centered in my crop space? Any help would be awesome. Thanks in advance!

View Replies !    View Related
Crop The Stage?
I have a complicated flash movie and I would like to cut off the left 100 pixels of the stage. Is there any way to do this? Perhaps using actionscript (if there is no more straightforward way to accomplish it)?

G

View Replies !    View Related
How To Crop Photo?
Surely you can crop a photo in Flash 8 Pro, right? if so, I can't figure out how. Please help.

View Replies !    View Related
How To Print A Crop Of A Map?
How can I print a crop of a generated map with a headline and footer
stretched to the whole page size?

View Replies !    View Related
Lasso Or Crop?
I'm trying to figure out how to crop images smoothly, I know I can use the lasso tool but I don't know how to smooth out the edges, can somebody tell me how?

View Replies !    View Related
Flash Crop - Nearly There Just Need A Little AS Help
Hi,

I have a slightly ammended working version of www.sephiroth.it Flash Image cropping tool. However I was wondering if someone could help me figure out how to change part of the flash interface.

http://www.colourjam.com/dev/crop/

Upload a picture then draw a box on the image when it appears. What I would like is to be able to constrain the proportions of the drawn box so I can get a perfect square.

My version of the .fla is here:
http://www.colourjam.com/dev/crop/imageCrop.fla

Thanks for any help.

View Replies !    View Related
How To Crop The Stage?
Hi there, I got a swf file called 'NW_site_4_diap.swf' centered in my browser with html. At the moment, anything that sticks out from the stage to the surrounding area get's displayed in the browser. Now I'd like to crop the swf file at its stage size. How do I get flash or html to crop all elements to the exact stage size? Thanks!
Here's the html code I used:


HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Nationale Waarborg</title>
<style type="text/css">
<!--
body {
height: 100%;
width: 100%;
margin: 0;
background-image: url(ONLINE%20070201/pattern_156.gif);
}
-->

</style>
</head>
<body bgcolor="black">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="myfile" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="NW_site_4_diap.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<embed src="NW_site_4_diap.swf" quality="high" scale="noscale" bgcolor="black" width="100%" height="100%" name="myfile" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>
</body>
</html>

View Replies !    View Related
Crop Movieclip
Okey. the title is not as describing as it should be.
What I want to do now is to "crop" a movieclip that has several moviclips placed inside.. Meaning I want to move all moviclips so that their placed up in the corner of the main movieclip. x=0 , y=0. and I want to do this programaticly. (the movieclips must have the same placements between theme..)
are there a quick and easy way to do this?

http://home.no.net/thor918/cropped_moviclip.fla

If anything is unclear please ask
and thank you all for your help!

Edit,Edit:
Here are some work in progress

finding the x and y that I want to crop from.

finaly something that works. but since I want the change the visabilitys later on some of the movieclips, that it would be best to revert the changes from the crop and then crop again. hmm how do one do that the easiest way? I'm thinking loud here that perhaps I have to loop trough all objects and save the old x,y cordinates before I crop.


ActionScript Code:
public function cropme():void{               import flash.display.DisplayObject ;             var LowestY:Number = this.FindLowestY();            var LowestX:Number = this.FindLowestX();                        var childMovieClip:DisplayObject;            var i:int = this.numChildren;            while(i--) {                childMovieClip = this.getChildAt(i);                if (childMovieClip is MovieClip){                    trace(childMovieClip.name);                    if (childMovieClip.visible){                        childMovieClip.y = childMovieClip.y - LowestY;                        childMovieClip.x = childMovieClip.x - LowestX;                    }                }            }                    }                 public function FindLowestY():Number{               import flash.display.DisplayObject ;             var VFindTopY:Number= 3600;                        var childMovieClip:DisplayObject;            var i:int = this.numChildren;            while(i--) {                childMovieClip = this.getChildAt(i);                if (childMovieClip is MovieClip){                    trace(childMovieClip.name);                    if (childMovieClip.visible){                        if (VFindTopY>childMovieClip.y){                            VFindTopY = childMovieClip.y;                        }                    }                }            }            return VFindTopY;        }         public function FindLowestX():Number{               import flash.display.DisplayObject ;             var VFindLeftx:Number= 3600;                        var childMovieClip:DisplayObject;            var i:int = this.numChildren;            while(i--) {                childMovieClip = this.getChildAt(i);                if (childMovieClip is MovieClip){                    trace(childMovieClip.name);                    if (childMovieClip.visible){                        if (VFindLeftx>childMovieClip.x){                            VFindLeftx = childMovieClip.x;                        }                    }                }            }            return VFindLeftx;        }

View Replies !    View Related
PrintJob Crop
yo, can anyone tell me how to crop a print image so it only shows the bounds i want it to?

i have a game where the user creates images on the stage, and sometimes the images run off of the stage, i only want it to print the image section that is viable on the screen.

i havn't done to much with PrintJob so forgive the noob question, and the "ActionScript 3.0 Cookbook" makes no mention of PrintJob.

View Replies !    View Related
How To Crop Shapes?
Hello!

I'm wondering if it's possible to crop shapes in Flash? That is, cut off its edges, accurately, by defining its new size, rather than just cutting them off with the mouse. Similar to Canvas size in Photoshop versus Image size.

Thanks,
Peace.

View Replies !    View Related
Dynamicaly Crop A Movieclip
Hey guys!

Situation. I have a jpg in my movie. I need to create a movieclip from part of this jpg. In other, and maybe even more clumsy words: coordinates are loaded into my movie from the db and dynamicly creates a new movieclip from the jpg image.. this new mc shows a smaller part of the jpg.

(or sort of like the 'crop' function in image applications..)

Please let me know if the question was badly formulated.

Any help is appreciated.

View Replies !    View Related
Is There A Way To 'crop' A Flash Movie?
Hi,

somebody made a .fla file for me, but I decided I want only the navigation part of it (10%) and leave the rest plain html.

So, I'd like to 'crop' the movie, but I can't find how to do it. Is it possible at all?

Thanks,

Harrie

View Replies !    View Related
Crop Tool Constrain
I built a crop tool, similiar in function to PhotoShop's croptool (see attached resize_crop.fla). I have one problem with its function: when using the tool and going from "resizing" mode (using the resizing handles) to "drag" mode (moving the crop tool itself over the picture movieclip), I can't keep the crop tool constrained to the underlying picture movieclip. If you play with it a bit, my bug will appear. I need for my crop tool to always stay within the boundaries of the picture movieclip (pic_content).

View Replies !    View Related
How To Crop A Flash File?
Hey all.

I recently purchased a tempalte with a flash header and I want to remove the top of the flash file and only have the bottom portion. But I cannot seem to find a crop option in flashMX. Am I looking in the wrong area?

Thanks for any help.

View Replies !    View Related
Un-CROP The SWF File - No Borders
Hello... I need help.

I've created a SWF that has the dimensions 750 x 600 when created in Flash. I created a huge box in the back layer in this SWF to be a special gradated background color and sized it at 1600 x 1200. My idea was that while the main items inside the SWF would be 100%, there would be NO BORDER (750 x 600) and the background gradation would extend as far as the user's browser would let them (that is why the huge box is 1600 x 1200).

But when I brought the SWF into Dreamweaver, I couldn't figure out how to configure it properly in HTML to allow the SWF images outside of the 750 x 600 to show while remaining at 100% (no scale).

Can anyone help?? Please!

Thanks!

View Replies !    View Related
Crop A Flash Movie
Is there any way to crop a flash movie once it is created?
After I finished it I realized that there was a little too much space on the top. When I chose to resize the work space it only gave me the option of length and width and by default it takes away from the bottom. Can I remove space from the top?

View Replies !    View Related
Crop Swf In Browser And Save?
Hey all,
Kind of a random question, and I'm thinking it's a long-shot, but I wondered if anyone knew of a way to "crop" swfs in the browser and then save them? Basically, I want to have the ability for users to send me swfs they've created, then I want to be able to change the size and crop them within the browser (if possible) and save the newly cropped swf onto the server.

I know, it's a long shot... but I wondered if anyone knew of a method or app? thanks!

View Replies !    View Related
[MX04] Web App To Crop Images
Hi all!

I'm using flash mx 2004
I am trying to create a web application to crop jpg images using an .asp web page and a flash application.

So far I have used aspjpeg to upload my jpg image and retrieve its original dimensions. Then I want to send the image to a flash app, the flash resizes to fit the dimensions and displays the picture.

Next the user can drag a rectangle over the image. I want the non selected area to grey out . Then when the user clicks a crop button, the top left coordinate and bottom right coordinate will be stored and sent back to an asp document where i can again use aspjpeg with these coordinates to crop and save the jpg.

I am fine with the asp side of things, and importing the variables into flash, however it is at that point that I get pretty stuck! Some pointers would be MUCH appreciated! So far all I've managed to do is create an empty movie clip which then loads the image...

Thanks! Anne

View Replies !    View Related
How To Crop A Flash Movie?
Hi,

How do I crop this flash movie? (Link: http://webdiod.deviantart.com/art/Habitat-11528081). I would like to cut off some of the edges and embed it into my website, but I have yet to find a program that would allow me to do this. I use Dreamweaver MX, but I don't have a strong understanding of HTML code or flash MX.

I'd appreciate any help. Thanks!

View Replies !    View Related
Define Crop Area
G'day

Does anyone know how define a crop area whithin the stage.????

thanx

View Replies !    View Related
How To Import FLV / Crop And Re-Export As FLV
I've scoured the net trying to find a program or method of importing an existing FLV and scaling it down in quality / dimensions / file size, and have found nothing. Flash Video Exporter will accept many formats, but not its own! Anybody know how to do this?

View Replies !    View Related
Crop Bitmaps After Importing?
Hi all,

is there a way to crop a bitmap after importing it in flash 8 (without
to convert it to a flash object (CTRL+B))?

TIA

tony

View Replies !    View Related
Flash Crop Tool
I'm trying to get this flash crop tool to work:

http://flashrocket.worldoptimizer.co...-released-lgpl

I was hoping someone could help me get it up and running.

I've copied these files to my localhost folder:

process.php
class.cropcanvas.php
test.jpeg
and cropsave.swf

In the cropsave.fla file I changed the address of the process.php from the url to just "process.php";

The test image appears and then once I crop it the php file loads and then nothing - just a blank screen. If I leave the original php file it shows the test image from the croptool website.

Any ideas? Any help would be greatly appreciated as this little tool is exactly what I need.
Alteratively does anyone know of any similar resize and crop tools?

View Replies !    View Related
Crop My Flash/.swf File?
so i have this flash file that's the default height/width- but i need to crop it...is that possible? i tried the change the width by modifying the document, but that didn't really work- is there a crop tool ? or a way to do it?

View Replies !    View Related
Flash Crop Problem
I have a movie i didn't made, i have the fla file. But i have to remove s black border that surounds it . It's not a question of the border per se, but the movie is too wide and too tall with that border, so i need to crop the movie. How can i do that?
Thank you in advance...

View Replies !    View Related
Crop Flash Document
Is there a way to crop flash documents and still keeps everything (action scripts and layers) working?

I need to crop the left hand side of the file which make it harder. I tried to reduce the document size but it crops from the right.

If anyone is interested to do this, I'll be happy to pay as well. Send me pm and your quote

Cheers,

View Replies !    View Related
How To Crop .mov File And Export As .mov Again?
Last edited by Lisbeth : 2007-06-10 at 05:35.
























Yes, you heard right. I just opened Flash CS3 for the first time. What I am trying to do is to get a 144 mb .mov file under 100 mb .mov and export it again. I usually would have done this in Premiere or another program, but I dont have it installed on this machine.
I want to put my 2005 music video on YouTube, and the file can be max 100 mb.
Sorry for being so stupid, but I have been using Flash MX(6) until today


Ok, I figured out how to import and export. Only problem is, now the files become up to 3 times as big as the original. Even though I resize it down, leave out audio and choose low quality...I think it´s very interesting

View Replies !    View Related
Can I Crop My Flash/.swf File?
hey there- and thanks for looking:
i have an animation that is running on the standard square white background- is there any way to crop this default background? without starting over with a defined size??? thnaks!

View Replies !    View Related
How Do I Crop The Size Of A Flash File?
I wnat to only select certain portions of the flash file and crop the rest of it out. Its hardt o adjust certain parts in the movie size window..

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved