ActionScript 2.0 :: [FMX2004] Resize Images In Flash To Fit The Masked Area But Proportionately?

Jan 24, 2006

Basically I'm trying to resize images in flash to fit the masked area but proportionately....

My mask area is:

Code:
width = 478;
height = 420;

now consider that the the max width I want my pictures to be. This doesn't have to be exact. Now what I came up with to resize proportionatly is:

Code:
//width & height are my mask deminsions ( which i wanna resize my pics to)
//width_orig & height_orig are the deminsions of each new loaded pic.
height = (width / width_orig) * height_orig;
width = (height / height_orig) * width_orig;

That does scale them proportionatly but some of the times it will resize a lil bit smaller than the image area which I don't really want. Like I said this doesn't need to be exact. I would prefer it to be a lil bit bigger than the masked area. I just need to make sure the pics are scaled proportionatly.

View 1 Replies


Similar Posts:


Flash :: Determining Visible Area/invisible Area Of A Masked Object?

Sep 29, 2011

I have a movie clip named circle_mc(see the image on the link below) and a mask object(movie clip) which determines visible area of the circle. User can change the portion which is visible (extend the red area and make it red+blue, gray area is invisible). I need to find proportion of visible area to invisible area (red+blue/gray) so that I can calculate angle.

View 1 Replies

ActionScript 2.0 :: [Ask] Object Moving In Limited Area Or Masked Area

Jun 15, 2011

I have Particle animation like this this PHP Code:

[Code]...

But i want that Object moving in limited area or masked area. I add masked area like this PHP Code:

[Code]...

But it still not working. Any advice ?? or correction in my script code?

View 1 Replies

ActionScript 2.0 :: Resize And Image And Scale It Proportionately

Aug 21, 2006

Ok so for a while now I had this tiny chunk of code that would resize and image and scale it proportionatly. However I just realized there is an issue and I'm having some trouble fixing it - which should be a joke to fix but I can't.

[Code]...

View 3 Replies

ActionScript 3.0 :: Resizing Images With Stage Proportionately

Dec 14, 2009

I have done resizing and liquid flash sites in AS2 before. I have recently started to learn AS3. I have a project where I need to scale an image proportionately when the user resizes the stage. This is what I have so far. I kinda just stole my AS2 code and tried changing it a bit.

//Include tween actions
import caurina.transitions.Tweener;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
[Code] .....

View 1 Replies

Flex :: Get The Width And Height Of A Masked Area?

Dec 14, 2011

I am loading an external swf using the SWFLoader component. The swf that is being loaded is masked so that only a portion is being shown. However, when it's loaded the actual size of the swf (loader.content.width/loader.content.height) is the complete swf including the masked area. Therefore, the loaded swf does not display properly in the itemrenderer Is there a way to to grab the size of the just the masked area as opposed to getting the size of the entire swf's contents? also i need to re size the masked area

View 1 Replies

Flash :: Professional :: CS4 Publishes / Previews With Missing Masked Images

Apr 3, 2011

This has me stumped and frustrated! I have some simple bitmaps that I've masked with graphics. When I use the playhead to watch the movie, it looks fine. When I preview or publish, the masked images are missing completely. What could I be doing wrong? A couple additional notes - the layer with the graphic (symbol) is rotated and the layer above it (mask) is also rotated at an angle. I don't see how that should matter at all...

View 3 Replies

Javascript :: Make Flash Movie To Scale Proportionately To Div Width?

Jun 20, 2009

My website is going to have a main wrapper that is set to a max-width property for compatible browsers. It will stretch to 940px across at max. When scaled down I would like the swf to scale proportionately with it. Like an image with width percent applied. The flash movie has the dimensions of 940 × 360 pixels.

I can't seem to figure out the correct attributes to add to the embed tag to get it to do this.I am currently using jquery flash embed, but am open to other options, though this is my ideal.In the example I have set the flash background to black.

When resize the browser window the flash movie doesn't scale proportionately to the div, only the photo does, leaving a blank canvas (black), while the div height stays the same. I can't add a height value in the CSS.How do I make this scale correctly? Adding a noscale param only crops the image. The swf's height doesn't scale also.

View 3 Replies

ActionScript 2.0 :: Making A Full Screen Flash Site To Scale Proportionately?

Sep 3, 2009

I am making a Full Screen flash site and I need my BG to scale proportionately. Currently I am using:

Code:
_root.attachMovie("bg3","bg3",_root.getNextHighestDepth());
bg3._x = Stage.width/2;
bg3._y = Stage.height/2;[code]...

View 1 Replies

ActionScript 3.0 :: Resize Images In Flash To Fit Stage?

Jan 7, 2010

I am starting flashagain after a long time and found a good simple flash slide show action script.

the only problem is i have images that are bigger than the stage that i would like it to resize proportionately and than fit the stage

eg the stage is 542x175 and the images are 823x220

here is the code

Code:
// set random # variables - each must be 0 for first 'while' loop below
var randomNum = 0;
var randomNumLast = 0;

[Code].....

View 1 Replies

ActionScript 2.0 :: Resize Uploaded Images In Flash Or Php?

Apr 8, 2006

I am creating a website where people can upload images to my server.

These are then downloaded by a seperate flash file.

Is it better to resize the images using Flash or PHP?

I have tried a php resize script, but the images seem to lose quite a lot of thier quality.

Where as flash it looks a bit better, when I just resize them using _xscale

Also I have the problem, it would be nice it people could upload whatever size (memory or dimensions) image they want then php resizes it and it's all good.

As in Flash I may have to be downloading huge image size, which slow down the transfer..

However I don't want to lose the images quality and I suck at PHP but I'm okay in AS.

View 3 Replies

ActionScript 3.0 :: Preloader + Stage Resize + Hide Area

Aug 26, 2010

i insert a preloader in a timeline of the fla , and move the movieclip for the stage resize and hid area menu in the second frame but i have the error #rror #1009: Impossibile accedere a una propriet o a un metodo di un riferimento oggetto null.

[Code]...

View 0 Replies

ActionScript 2.0 :: Make Buttons Load Text Or Images Into A Set Area On A Flash Site?

Mar 5, 2005

how make my buttons load text or images into a set area on a flash site.

View 3 Replies

Jquery :: Flash - Looking For Plugin That Resize Images Before Upload?

Feb 11, 2010

i'm looking for a jquery plugin that can upload multiple images.I've tried uploadify and it works well.But with huge images it's very slow

View 5 Replies

XML :: Flash Gallery - Load Images Through XML And Resize For Thumbnail

Aug 25, 2011

I have a flash image gallery that loads images through xml. Images have to be croped for thumbnails. So u have to have two folders, one for the thumbnails an another file for the big size images. I would like to know if there is a way to load only one image ( and not this image's thumbnail too) and with a script or something, to resize this image to get the thumbnail. To make my self clearer here is the xml code:

image../gallery_flash/imageGallery/images/watches/i1005.jpg image
thumb../gallery_flash/imageGallery/thumbs/watches/i1005.jpg thumb

(For some reason it doesnt show the xml right...) I dont want to have the line (thumb>../gallery_flash.), but only load one image and get the thumbnail also.

View 1 Replies

ActionScript 3.0 :: Resize Sprite To Stage Including Filters Area?

Apr 21, 2009

I want to dynamically resize and align a Sprite with a DropShadowFilter so it fits all Stage but in a way that the Shadow keeps visible.
 
The problem is that when I resize the Sprite it fits the Stage but it doesn't take the filter in consideration and the shadow is drawn outside the stage.

For example:

imageSprite.filters = createFilters();  // this method creates the DropShadowFilter
var s : Sprite = new Sprite();

[Code]....

Resizing Sprite 's' has the same effect as resizing 'imageSprite' and I couldn't find a way to get the size of the image+shadow.

View 7 Replies

Flash :: Resize Loaded Images When Switching To Full Screen?

Nov 2, 2009

I have a swf that loads images from my server and resizes them to fit the 800x600 stage size. The original images are stored at 1024x768 max pixels. The user can press a button to go into fullscreen mode. What should I do to show the images at the best quality?

a) should I resize the loaded images to their max size (1024x768).

b) do I need to reload the entire image if it has been resized to 800x600 or is the original image still accessible and I can replace the 800x600 image with the original?

I am using AS2 and Flash 8 (but require users to have Flash Player 10 for fullscreen)

View 1 Replies

JavaScript :: Flash - Resize / Rotate And Crop Images Then Save Online

Dec 3, 2009

Which is a better approach for this?
ActionScript3 or JavaScript+PHP?
Any open source tool?
After a long search, the only good example I found was this [URL] but I'd rather have a flash alternative.. Also I don't need all the extra functions such as filters.

View 2 Replies

ActionScript 2.0 :: [fmx2004] Passing Variables From Html To Flash

Jun 7, 2005

I want to have links on several pages of my website which, when clicked, take the user to an html page called "portfolio.htm" which has a flash portfolio on it. This portfolio is set up with a series of buttons which load external .swf files for each project. How do I tell flash which .swf to load when the flash file opens.

ex: user clicks on "project x" on a web page called print.htm. The user should then be taken to portfolio.htm where a flash file resides and loads "project x" into a movie clip called "content_mc".

All the other posts I've read make reference to PHP. Is it neccesary to use PHP, or can I achieve this without PHP?

View 4 Replies

Actionscript 3 :: AIR - Resizing Native Window Proportionately

Mar 8, 2011

my application launches with the stage size of 1000 x 500, 2:1 aspect ratio. the native window has system chrome, which will always be a little taller by a few pixels.how is it possible to only permit a native window to resize proportionately in order to always maintain the 2:1 aspect ratio of the stage?[code]

View 1 Replies

Actionscript 3.0 :: Full Browser Scale Proportionately

Mar 16, 2009

What I'm wanting to do is load an image into my browser dynamically at full screen. And then when the browser window is scaled the picture scales proportionately with it. (I've seen it on loads of sites, but for some reason I just can't fathom it out (which is really bugging me). I'm using the gaia framework (which is amazing) to do this by the way (not sure if that makes a difference of not?). This is what I've got so far...

[Code]...

View 8 Replies

ActionScript 2.0 :: Getting Images In Text Area From Database?

Jun 27, 2006

i am making one small cms system which is updating flash content , everything is done and working properly but image tag is not getting display in text area ( image is not comming in text area ) following is the coding

for flash ( in first frame )
---------------------
loadVarsText = new LoadVars();

[Code].....

View 1 Replies

Data Integration :: Getting Images In Text Area From Databse

Jun 26, 2006

i am making one small cms system which is updating flash content , everything is done and working properly but image tag is not getting display in text area ( image is not comming in text area.[code]

View 3 Replies

ActionScript 3.0 :: Display A Number Of Images Within A Scrollig Area?

Oct 15, 2009

I need to display a number of images within a scrollig area. I thought the easiest way of doing this was to put them inside a MovieClip and then have this MovieClip as the source of a ScrollPane.This works fine if I only use the mouse - I can select the different images and react to them.However I need to have this accessible so I need to have it tab enabled but for the life of me I can't get it working. From the documentation it should immediately tab into the first image.The closest I have gotten is to press return when I get to the scrollpane and move the focus to the first item in the scrollpane.However when I check what has focus it still says the Scrollpane so I don't think I will know when to move the scroll bar to be able to see the currently active image.
 
  public function Test() {   addChild(_scrollPane);   _scrollPane.tabChildren = true;   _scrollPane.width = 200;   _scrollPane.focusRect = true;   _scrollPane.height = 200;   fm = new FocusManager(_scrollPane);  _scrollPane.addEventListener(KeyboardEvent.KEY_DOWN, onkey);[code].....

View 2 Replies

ActionScript 2.0 :: Make Images Gallery Into Area Correct Position

Dec 19, 2011

I'm doing flash project slide images but i don't know how set images into area correct position. And textfield load file .txt.

[Code]...

View 3 Replies

ActionScript 2.0 :: Carousel Resize And Add Images

May 17, 2010

I was wondering if anyone could give me some tips on how I can resize this carousel as in the canvas size and the images. The other thing is, what do I need to do to be able to add new images to the folder so they appear in the carousel? At the moment when I do this they don't appear.[code]

View 3 Replies

Flex :: Don't Resize Images On ItemRenderer

Jul 22, 2010

Which parameter should I put not to automatically resize an Image that is put on an ItemRenderer?

Ex (in which the image gets resized):

<mx:AdvancedDataGridColumn headerText="estado" dataField="estado" width="30"
editable="false" resizable="false">
<mx:itemRenderer>

[Code].....

View 2 Replies

Flex :: How To Resize Images (Bitmap) Using AS3

Jul 8, 2011

I am loading an image using a Loader. Once loaded, I can get the bitmap data using Bitmap(event.target.loader.content).bitmapData.
However since the images I am loading are quite large (around 2000 x 1600), I would like to reduce the size and create a new smaller bitmap maybe 200 or 300 pixels wide, sort of like a thumbnail. I think it has to do with creating a new BitmapData with the new size. However I am not able to get that working properly.

View 1 Replies

Actionscript 3.0 :: Resize Images Before Upload?

Jan 7, 2009

I am creating an upload tool for an image gallery. The swf uploads the files with filereference to a php files which resizes the images. But when the images are larger than 600kb it fails, php runs out of memory and I can't edit the php.ini file on the server.

So my solution is to resize the images before uploading them, this saves also bandwidth.

View 14 Replies

ActionScript 3.0 :: How To Resize Loaded Images

Aug 11, 2009

I'm trying to import images into a movieclip [URL]. I now have the image loaded but was wondering how to resize it using actionscript 3.

View 1 Replies







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