ActionScript 2.0 :: Image Resizing In Flash MX?
May 25, 2004
I have a little problem regarding resizing in flash. I dont know if it is possible in Flash MX, since the image size is too large to fit in to my target MC, say 800x600 px pic, loaded into an MC which has a size of 160x130 px.in my MC, i want to load an image (pic1.jpg [800x600 px])loadMovie("pic1.jpg","holder")it loads into the holder MC(instance name), but in the end resizes the MC which destroys my design.All i wanted is to load an image into a "holder" MC which is located at the root, without resizing it. Say, if an image is 800x600 px, will resize depending on the MC where it is loaded. From 800x600 px to 160x130 px.
View 2 Replies
Similar Posts:
Jun 8, 2010
I was wondering if anyone knew how to scale pictures when doing a website in FLASH. I am creating a flash based website for a friend. I have done all the links and it works greatThe only thing is that the images increase as the web browser is maximised.I would like it to decrease as the web browser is decreased, but to increase to a certain size 900 x 651, and stay that size no matter how big the browser is increased by.
View 1 Replies
Jun 8, 2010
how to scale pictures when doing a website in FLASH.
I am creating a flash based website for a friend. I have done all the links and it works great. The only thing is that the images increase as the web browser is maximised.
I would like it to decrease as the web browser is decreased, but to increase to a certain size 900 x 651, and stay that size no matter how big the browser is increased by.
This is what I am trying to create: [URL]
View 9 Replies
Aug 13, 2010
So I'm having difficulty with this one, basically I am working on an XML image gallery.
Load XML - with Image and Thumb paths in it Load thumbs When you click a thumb it loads corresponding image etc.
When I load in the image I need it to load proportionally into a MC.
This is the basics of how I have it at the moment
Code:
box_mc.addchild(Image) // so it's loading into the box_MC which is H:300px W:500
if (Image.height > 300){
Image.height = 300;
[Code]....
So BASICALLY I would like to be able load in any size image and always make sure it resizes to fit H:300 W:500 but keeps its proportions.
View 3 Replies
May 25, 2004
I have a little problem regarding resizing in flash. I dont know if it is possible in Flash MX, since the image size is too large to fit in to my target MC, say 800x600 px pic, loaded into an MC which has a size of 160x130 px.[code]...
View 2 Replies
Aug 24, 2010
package com {
import flash.display.*;
import flash.net.*;
[code].....
View 2 Replies
Jun 17, 2011
I have a SWF file which is on suppose [URL] and I have an cross domain file
[Code]...
I dont know that happend. When I user Firebug, the swf is looking for [URL] it is present there. But [URL] is not there(I can't put any corssdomain file there, because I dont have any access). The issue is image from (SESSION 1) is resizing and image from (SESSION 2) is not resizing on the COMPLETE Event.
View 1 Replies
Jun 6, 2010
How to scale pictures when doing website in FLASH. I am creating a flash based website for a friend. I have done all the links and it works great. The only thing is that the images increase as the web browser is maximised. I would like it to decrease as the web browser is decreased, but to increase to a certain size 900 x 651, and stay that size no matter how big the browser is increased by. This is what I am trying to create: [URL]
View 3 Replies
Apr 22, 2010
I can;t figure out how to do this. Someone selects and image after calling FileReference.browse(). I take that image and make a thumbnail in flash. Then I upload that image like so:
[Code]...
All this does it upload the original image. How do I change the fileRef to upload the new thumb? I have traced out the size of the "myThumbImage" and it is correct. I have placed it visually on the stage after creating the thumb, and it seems like it works. But when I upload it to an aspx page (that basically just throws it into a folder), it uploads the original larger image.
View 1 Replies
Apr 26, 2011
I have created a image cropping tool in flex using core copyPixel method.croppedBitmapData.copyPixels(croppedBitmapData, clipCan, new Point(0, 0));I have to crope area of dementions 20*20 and show this cropped area in an image of demention 250*350. Every thing going well.My problem is image distortion.Even i am using this method for smoothing image contents on complete.
private function smoothImage(event:Event):void
{
var bitmap: Bitmap = ((event.target as Image).content as Bitmap);
[code]....
View 2 Replies
Jun 6, 2010
how to scale pictures when doinga website in FLASH.
I am creating a flash based website for a friend. I have done all the links and it works great. The only thing is that the images increase as the web browser is maximised.
I would like it to decrease as the web browser is decreased, but to increase to a certain size 900 x 651, and stay that size no matter how big the browser is increased by.
This is what I am trying to create: [Url]
View 2 Replies
Aug 13, 2010
So I'm having difficulty with this one, basically I am working on an XML image gallery.Load XML - with Image and Thumb paths in itoad thumbsWhen you click a thumb it loads corresponding image etc.When I load in the image I need it to load proportionally into a MC.This is the basics of how I have it at the momentCode: Select all box_mc.addchild(Image) // so it's loading into the box_MC which is H:300px W:500
if (Image.height > 300){
Image.height = 300;
Image.scaleX = Image.scaleY;
[code].....
View 1 Replies
Oct 17, 2010
Does anyone know how to resize and move an Image with ObjectHandlesI need it to be as simple as possible.
View 2 Replies
Jan 26, 2009
I have been racking my brains trying to figure out how to do this but I can't! The two pictures I have given are different sizes to represent different browser sizes. The 'menu' stays the same size in the same position and the image/ greyblock scales proportionally to the browser keeping the same border sizes around the image.
View 2 Replies
Feb 9, 2009
I have a flash file that is pulling images in dynamically from a PHP page. The images will come in all different sizes so I need to resize them once they are loaded to fit in the containers that they are being loaded into...I thought onEnterFrame was the best way to do this? So I have the following:
Code:
onEnterFrame = function (){
for (i = 0; i < 9; i++){
[code].....
View 1 Replies
Nov 18, 2009
I know that one of the most frequently asked questions is on how to resize a movieclip to fit the dimensions of an image.
My question is similar, but kind of inverse;
I need to resize an image to fit in an empty mc.
Code:
loadMovie("image/imageTest.jpg", mc_appImage);
mc_appImage._width = 190;
mc_appImage._height = 225;
There's my current code... the image loads fine, but does not rezie :/ What am I doing wrong? What do I need do to make this work?
View 2 Replies
Jul 27, 2011
I prepared a galley for my client that should load an external image, re-size it and appear while it fades in smoothly from alpha 0 to 100 (motion tween).
The thing is that it looks like the re-size interferes with the fade in action (motion tween from alpha 0 to 100) and as a result, it stuck in the middle of the fade in action. If I load it directly to a single key frame (without any motion) it works properly.
I have attached the code I am using below and attached the FLA so you can see it in your own eyes (change the fla.txt to fla.fla so you can open it with you flash app)
ActionScript Code:
//
//set stage for FBF
var loader2:MovieClipLoader = new MovieClipLoader();
[code]...
View 0 Replies
Oct 20, 2009
I am trying to display a bytearray as a resized image. The Image is displaying correctly, but the sizing is off. Let me explain.
First I have the image data encoded so I need to decode the image data
// Instantiate decoder
var decoder:Base64Decoder = new Base64Decoder();
// Decode image data
[Code]....
This works. The image is displayed correctly. However, if I hardcode the image (img) height the resized image is shown correctly, but within a box with the original image's dimensions.
For example, if the original image has a height of 300px and a width of 200px and the img.height property is set to 75; the resized image with height of 75 is shown correctly. But the resized image is shown in the upper left corner of the img container that is still set to a height of 300px and a width of 200px. Why does it do that? And what is the fix?
The best way to illustrate the problem is by placing the image inside a VBox and show the borders of the VBox. From the code block above, if I change the image height and set the image to maintain aspect ratio (which by default is set to true but I add it here for completeness). the problem becomes clear.
// Display image
var img:Image = new Image();
img.height = 75; // Hardcode image height (thumbnail)
img.maintainAspectRatio = true;
[Code].....
View 1 Replies
Aug 26, 2011
I have a UIComponent and inside it I put a loader (which loads an image file).
THE PROBLEM: Even though I resize the UIComponent(to a square), it will still follow the size of the image in the loader. But when I resize the image in the loader, it will become stretched. What I want to do is have a container(UIComponent) that has a fixed square size and after the image has been loaded it will just fit in the dimention of the container without being stretched.
View 2 Replies
Oct 14, 2010
I'm trying to resize a .jpg file that I'm loading in the loader class, and I can't get it to work. Here's the code I'm working with. (Note: I had to cut the URL to the jpg out because the forum blocks me from posting URLs with images!)
ActionScript Code:
getURL = new URLRequest("*URL to a jpg goes here*");
// Load slide image from URL
[code].....
View 2 Replies
Mar 8, 2011
I need to re-size the imgx attribute in the code below,at the moment image only covers half screen, I want to use to my desired size (full size)[code]
View 2 Replies
Oct 17, 2011
I just need to know how to resize and reposition my jpg image that I loaded in with this code...
import flash.net.URLRequest;
import flash.display.Loader;
var myFileRequest:URLRequest = new URLRequest("image.JPG");
[Code]....
Right now it is sitting in it's default spot of the upper left hand corner.
View 4 Replies
Feb 17, 2006
Code:
max_height = 500;
max_width = 500;
_root.picture.loadMovie("[URL]");
function size() {
[Code] .....
It resizes the first picture perfectly, but after I click the button, the new image comes out way too small, I cant find the error anywhere
pilt2 is 1952*2608
pilt3 is 500*375
View 2 Replies
May 4, 2006
Is flash capable to resize images in clients computer and then upload them?
View 6 Replies
Aug 4, 2007
I have a row of images and need to resize the height of the image to a specific value and then scale the width of the image to maintain the dimensions - so I end up with a row of images all the same height but different widths. I've only ever scaled an image by a scale factor.
View 1 Replies
Nov 3, 2007
I am trying to make one of those Resizing borders for an image gallery ... Is there an Actionscript 2.0 function that whilst Loading in an external jpeg, Flash can be told the dimensions of the picture it is currently loading > before it has loaded it fully.? ie: getWidth (as a guess). Thus, preparing the size of the border, whilst the image is loading. Or, does it have to initiate that once the jpeg has loaded 100%.
View 3 Replies
Feb 6, 2009
This code works. It puts my external image on the stage:
Code:
var pngurl:URLRequest=new URLRequest("image.png");
var pngloader:Loader=new Loader();
pngloader.load(pngurl);
this.addChild(pngloader);
This code works to, but not completely. It stores the same image inside of a movie clip that I've named "panel". However, the image is bigger than "panel":
Code:
var pngurl:URLRequest=new URLRequest("image.png");
var pngloader:Loader=new Loader();
pngloader.load(pngurl);
panel.addChild(pngloader); //panel is the name of my movieclip
I almost fixed my problem by changing my code. My image is smaller than "panel" now, but its width and height should be the same as "panel":
[Code] .....
(Original image size= 350width and 250height) (Panel size=100width and 100height)
View 3 Replies
Feb 18, 2009
I have a big image 676 * 340 dimensions and I want to re size the same image down to 200* 150 without destroying quality does any one know a way of achieving this.
View 1 Replies
Nov 6, 2009
Using AS2 and Flash 8.I'm currently looking for a way to display a image file that is outside of the .swf in my Flash program,including a way to resize it.I just looked through the options of using the Loader component with the .contentPath function. Even though this method displays the image perfectly, I can't for the life of me figure out how to resize the Loader.
Code:
image_number = 0;
initialization={autoLoad:true,contentPath:"",scaleContent:true};
image_number++;
[code]....
This basically dynamically creates the "Loader" component with all of it's settings initialized. Then, using .contentPath, it displays my "banner.jpg" which is in the same directory as my .swf file.
View 1 Replies
Mar 1, 2010
how to make image resizing galleries using AS
View 2 Replies