Flash :: Resizing User Selected Image?
Aug 24, 2010package com {
import flash.display.*;
import flash.net.*;
[code].....
package com {
import flash.display.*;
import flash.net.*;
[code].....
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 Replieshow 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]
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 RepliesSo 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.
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 RepliesHow should I go about matching the selected row of a sorted DataGrid to its source data row within its associated data provider?
For example, once a user sorts a DataGrid by clicking on one of the column headers, the target.selectedIndex from the CHANGE event (generated next time a row is selected) represents the index of the sorted row and not the index of the data as supplied by the data provider. Is there a simple way to map the index of the user selection back to the index of the original data?
Im working on CMS for a site I made for a client, for gallery they have separated projects , where are 10-30 photos on each of them.
For the moment I only know how to make an upload on 1 preset folder. Here is AS2 code and PHP code i am using right now.
I have a PHP code to scan all directories and files, so that part shouldnt be a problem.
How do i make an upload on folder that user Selects ??
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.
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 RepliesI'm working on a flash site, but I want the site to resize to the user's screen resolution...I'm new at actionscript and flash, but what is the most efficient way to accomplish this?
View 3 RepliesGallery in DataGroup, How can i Call selected image(MouseClick Image) this is my Sample code
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[code].....
'i am doing a game for children where users can drag and drop resize and scale movie clips on stage! The drag and drop is not an issue...however im not quite sure how to do all the rest... is there a way or a tutorial to do this?
View 1 Replies'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!
The drag and drop is not an issue...however im not quite sure how to do all the rest.
I need to do some updates to components after a user has resized the browser window. Is there a good solution to determine when a user has completed resizing? I wasn't able to find any flex events that would cover this case.
View 1 Replies'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!
The drag and drop is not an issue...however im not quite sure how to do all the rest..
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.
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]....
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]
I am looking at all the various Flash detectors and am a bit overwhelmed. Most of the info I find is from 2008 and before so I am afraid it is outdated. I want to be able to detect if a user has flash plugin and if not then display a still image. I am concerned that I-phone users are not seeing the flash embed in my site.
View 1 RepliesI see flash has a save call to do this job, but it requires user interactive.
How to save it automatically?
how you can make it so that the user can press a button to save a specified area as an image so that they could email the image to someone?
Background... the user will be able to change and create their own picture and then they want to save the image they have created.
i'm doing a school project of mine and i am having trouble doing the changing color objects. here is an axample of the script that i;m using:
on (rollOver) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
}
For this script it does change color, but how do i make it to stay the same color that user selected after going to another scene?
I am looking to change the background color of a input textField when the user selects that testfield to start populating it. I have done a bunch of searching and I keep coming up with this type of answer...
Code:
myTextField.onSetFocus = Set(evt:Event){
// Change color
}
Problems...
1) Is onSetFocus/onKillFocus still available? From what I can tell it is not.
2) I have my text objects encapsulasted in a class so I do not believe I am able to do it like I have been suggested.
Am working in a wordpress project. It uses many fash images. When right clicking on the flash image, the first option takes the user to another website. How can i remove it?
View 1 RepliesI have an image on the stage which is bigger than the stage itself:
The stage is 700x550
The image is 2100x1650, and it's registration point is at its center, if I remember correctly.The initial location of the image on the stage is 350,75.I want to make sure that the user will be able to drag the image, as long as the edges of the image doesn't show.here's what I did:
mapRect = new Rectangle(0-mapMC.width/2, 0-mapMC.height/2, mapMC.width, mapMC.height);
and later on:
mapMC.startDrag(false,mapRect);
The the top and the left of the image are bounded well, but as far as the bottom and the right side of the image.
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].....
I am working on this image scroller, where thumbnails of images are displayed.[code]...
So is there anyway I could use any of the above code to load the big image associated with the small image? If event.target points to the current thumbnail being picked up, could i do something like event.target.url to point to its name or something?
I want to create a custom video like the videos on jibjab, i.e allow a user to upload an image of their face and superimpose this onto a video of a character's face.
View 1 RepliesDoes anyone know how to resize and move an Image with ObjectHandlesI need it to be as simple as possible.
View 2 Replies