ActionScript 2.0 :: Image Doesn't Rescale To 50x 50

Jun 1, 2006

The images i load into the flash website must be 50 x 50 pixels in the flash website. But if i'm uplaoding an image with for example 100X100 or 300x 92 the image doesn't rescale to 50x 50 i tried and i tried but i can't find the solution. I started with a mask, but because the whole news part uses a mask for the scroll content the image will not appear when using a mask 50x50.

Does someone have any clue what i can do? To have a view so you can see the result i mean see [URL] And then the option "nieuws" The first record got a image with the wrong idea the second one is how it's suposed to be. I'm using a xml/php file wich get all the records from my database..

View 7 Replies


Similar Posts:


Rescale Image At Design Time?

Nov 3, 2009

I cant seem to find a single thread on the internet on "howto enlarge/scale an image when selected".Please could someone direct me to a thread/link or some actionscript that could help?

View 5 Replies

ActionScript 2.0 :: Get Dimensions Of Loaded Image And Rescale

Jan 13, 2010

I have a site that allows a user to upload an image, modify the image, and then save the image to their computer. This works fine, or at least it suits me so far. This is done by uploading an image to an empty movie clip, failcont_mc, and then exporting it as a jpeg once the user is done editing the image. The empty movie clip seems to be dimensionless, which isn't a problem.

The problem lies when the user uploads a photo that has very high dimensions. I'd like to be able to upload the image, then scale it down and keep it's aspect ratio if it's too large. I only want to be able to do this if the image is too large. For example, load an image sized at 800x600 and scale it down to fit into an area that is 500x400 while keeping it's proportions in tact.

Here is an idea of what I want in steps:
1. Upload the image into empty movieclip
2. Check dimensions of the occupied movieclip (previously empty)
3. if the dimensions are above 500x400
4. then scale the movieclip down while keeping proportions in tact
5. display movieclip

The code is made up of snippets from here and there on the internet, so don't be surprised if you see something that looks familiar. On a side note, I'd like to give credit to those who have allowed their code to be used openly. All of the code works fine, I would just like to add steps 2, 3, and 4.
Imageholder: failcont_mc
In the code, I have a big white space to give an idea of where I'd like to place the code. I assume the code is executed as it is read by the flashplayer. What I have tried so far was grabbing the width and height of the "occupied" movieclip and setting them as variables. I used these variables to determine if the width or height was the larger number. Then I used the variables to make a proportion to make sure the end dimensions of the movieclip stayed within the area.

Code:
//Allow this domain
System.security.allowDomain("http://localhost/");
import flash.net.FileReference;
// The listener object listens for FileReference events.
var listener:Object = new Object();
[Code] .....

View 6 Replies

Professional :: How To Rescale All Objects On A Stage

Apr 27, 2010

I am using Flash CS4 and need to resize my Flash stage and all objects therein.

To do that I activated onion skin tool, selected all objects and all frames and resized by using the transform tool.

However, masks and some motion paths are not scaled proportionally.Is it yet another bug in CS4? Here is a video illustrating the [URL]...

View 5 Replies

Professional :: Rescale Correctly A .flv Videoclip?

Oct 4, 2010

How to rescale correctly a .flv videoclip? I installed the Adobe MasterCollection CS4.I rendered a video with 3dsMax2010 at this resolution: 1024x576pixels, progressive scan, pixel aspect ratio 1,0 square.I want insert this video on a website, initially small, and after, by clicking the FullScreen button, I want that this become large at maximum resolution...

I imported the .FLV file in Flash:ImportVideo> *.flv > Added SkinBarMenu with FullScreen Button > Replaced the remote address instead of local address: http:[url]......I rescaled the video at 720x405pixels and also the Flash Document to fit it.I included the video in the webpage with Dreamweaver, with FullScreen playback properties.When I playback the video on the website, it appears at 720x405pixels;

- When I click on FullScreen button, the video become up-scaled from 720x405px and loose the resolution?- Or at FullScreen, I can view it at the original resolution of 1024x576pixels, in the same manner as when it is imported in Flash?

- Such Flash video behavior, is the same as YouTube videos? (From small, it become hi-res at FullScreen, conserving original dimensions)?

View 5 Replies

Flex :: Align Image To Bottom When It Doesn't Fill The Space Allocated For <mx:Image> ?

Mar 28, 2011

I have an image that doesn't fill the <mx:Image> tag because it's not the exact dimensions (it is too short) and I have maintainAspectRatio set to true:

<mx:Image id="theImage"
source="{data.photo_thumb}"
horizontalCenter="0"[code]....

The <mx:Image> tag has a fixed width and height (it's 100% of the tile size--this is in an ItemRenderer). How do I get the image to sit on the bottom of the <mx:Image> tag?

View 2 Replies

Actionscript 3 :: SwfLoader Vs Mx Image - Spark Image Doesn't Load Swf Files

Sep 29, 2011

I have an application that I'm migrating from flex 3 to flex 4.5. In this application, there is some mx Image components that load a simple swf file (image). Spark image doesn't load swf files, so I was wondering, should I keep the mx Image, or should I change it to SWFLoader? Is there any advantages to using one or the other?

View 1 Replies

ActionScript 3.0 :: StartDrag And Bounds - User Will Be Able To Drag The Image, As Long As The Edges Of The Image Doesn't Show?

Jan 19, 2011

I 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.

View 1 Replies

ActionScript 2.0 :: MC To Adjust _y Position On Browser Rescale

Jun 22, 2009

I've been through all the tutorials on flash scaling and stage resizing and can't figure this one out. I have an MC in _y proportion to the Stage.height-40, so when resizing the browser I should always be able to see it.

The Problem: I know how to do this; by publishing the movie at 100% width and height - this works fine. But my flash movie is a magazine which is long, and requires scrolling in the browser to see the content.

As soon as I set the movie to publish width/height at 100% I can no longer scroll my flash magazine in the browser.

Is there a way to readjust the MC _y position as the user scrolls up and down; so the MC is always in view. So it'd look similiar to those pesky ads that follows you as you scroll away.

My code:

PHP Code:

Stage.align = "TL";
Stage.scaleMode = "noScale";
resConfig = function(){

[Code]....

View 1 Replies

Flash - Rescale An Asset That's A Hierarchy Of Bitmaps?

Jan 25, 2012

I have some FLA/SWF assets which are hierarchies of bitmaps.They have timelines which page-flip through different bitmaps.I'd like to scale these assets down in pixel-size, including the bitmaps they're composed of.I'm not a Flash Animator, but the artist i'm working with doesn't know of an automated way to achieve this. ie, that it's a long a laborious manual process.Does anyone know of a tool which can simplify the re-scaling of bitmap-based FLAs ?

View 1 Replies

Actionscript 3.0 :: Way To Rescale External Swf File To 20fps

Aug 8, 2009

i got a main scene 20 fps.i want to load an external swf movie that should run at 8fps [code]is there any way to rescale the external swf file to 20fps without having to manually move all keyframes, and without making the movie play faster?(btw i got the fla file of both so i can adjust the external swf file)

View 1 Replies

Javascript :: Agile Uploader (resizes Image Before Upload On The Server): Doesn't Work If Image Name Has Cyrillic Letters

Jan 31, 2012

I'm using Agile Uploader in my project to resize image before upload on client side.And it works fine except one thing: if image name contains cyrillic letters it fails with server error 500.

How to avoid this or if needed how to rename file with english letters "on fly" (possibly with javascript).

View 1 Replies

ActionScript 2.0 :: Rescale Browser/flash Movie Hight?

Aug 29, 2009

i want to rescale my website height after its content height, hope this makes sensei have my website with a header and menu at the top and below them the content loads. the content for the first loaded page is of about 1000 px high, and for a third page is of mb 500 px, wich when i load leaves my browser with 500 empty px at the bottom, and u can sroll it in that area, seems kinda uncool.

View 9 Replies

ActionScript 2.0 :: Rescale Movieclip Based On Browser Size?

Mar 11, 2006

im trying to resize/scale a movieclip based on the browser window.i sort of got it working. but my prob is that i dont want it to scale beyond the browser size when u just stretch the width or height.check it outif u stretch just the width of the browser the image enlarges which i dont wont it to. heres the code/formula used in a onResize

var mywidth:Number = 955;
var myheight:Number = 575;
Enlarge = (Math.round(Stage.height/myheight*100)+Math.round(Stage.width/mywidth*100))/2;

[code].....

View 2 Replies

ActionScript 2.0 :: Dynamic Height Rescale (based On String.length)

Aug 7, 2008

Okay what I after is how to detect the length of the string populated from array...then auto rescale the height of the title_mc as shown in my AS as well as the dynamic created textfield ..so the textfield will display long string + "newline" for long string...(autowrapper)..

[Code]...

View 2 Replies

ActionScript 2.0 :: Image Doesn't Appear In The Middle?

Jun 22, 2006

I'm making a gallery, everything is fine but when it loads a smaller or bigger image, the image doesn't appear in the middle.so, how to set the picture to be appear in the middle of the stage always????

View 6 Replies

Flex :: Image SmoothBitmapContent Doesn't Work?

May 10, 2011

recently I got a jagged image problem when scaling. I set my image components smoothBitmapContent true, and it works properly the first time, but if I reset the source, the images return jagged. It seems like the smoothBitmapContent property has been changed to false, but it doesn't work even if I set it to true in run time.Here's is my code:

<custom1:SmoothImage id="MJCard_3_36" x="286.5" y="56.65" scaleX="0.66" scaleY="0.83" smoothBitmapContent="true"/>
MJCard_3_36.source = seabedPicArr[index1-1][index2-1][index3-1];

I simply use a custom Image-extended class and switch smoothBitmapContent on, and I set the image's source in run time.

View 1 Replies

ActionScript 3.0 :: Preloader Doesn't Load Image?

Jul 8, 2010

this is the code of my preloader:

ActionScript Code:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest("Solar.swf"));

[Code]....

When i test the movie the background image is loaded, but when i simulate the download ( so as to check how the preloader works ) the image "NightSky.jpg" doesn't load and there is an error in the output panel.
This is the error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

All the files and the image are in the same file on my computer.

View 1 Replies

ActionScript 2.0 :: Php Resized Image Doesn't Load?

Dec 17, 2007

why this image...http:[url]....will not load in flash?

View 3 Replies

ActionScript 2.0 :: Image Movement Rollover - Doesn't Fit In The Window

Jul 20, 2009

I have a big image (1600x1200) Which obviously doesn't fit in the window. How can i have it so when i hover the mouse the image moves. Basically a Yugop scrolling effect but in all directions

View 3 Replies

Have An Image As A Backup In Case Flash Doesn't Load?

Jun 23, 2009

is it possible to have a back up image if the flash doesnt load?
 
The current code is:

<div id="mainBanner">          <div id="so1351">You will need flash to view this element<script type="text/javascript">               var so1351 = new SWFObject("/media/11695/29042009.swf", "flash", "994", "224", "8", "#FFFFFF");               so1351.write("so1351");          </script></div>         </div>  

View 4 Replies

ActionScript 3.0 :: Image Doesn't Scale Beyond Certain Height And Widths?

Oct 28, 2010

http:[url]....In my opinion, the way in which the photographs on this website scale, is perfect.I know how to load an image, dynamically, and add it as a child and in fact scale it.What I don't know, is how to scale it in the way the designer has in the example above.
The code I use to scale the Child (the image) at the moment is this:

//IMAGE WIDTH OVER HEIGHT
var ratio:Number = (1052/700);
//SET HEIGHT OF CHILD[code]......

The designer appears to have used minHeight and minWidth commands to ensure the image doesn't scale beyond certain height and widths.

View 3 Replies

Actionscript 3 :: Flash : Image Resize Doesn't Work

Aug 5, 2011

[URL]This swf object load an external xml file (generated by php script which doesn't locate on the same machine) and then display the product list (thumbnail and title). The script was tested working fine on my local machine, but when updating to the hosting, the images don't resize. At the first i thought that it's hosting performance issue, so i migrated it to amazon s3, but it still doesn't work.

View 2 Replies

Flash :: Css - Expanded Menu Doesn't Appears Over Image

Nov 9, 2011

I have a drop-down/multi-level CSS menu on a page. The menu however doesn't appear over a flash.i put <param value="transparent" name="wmode"/> I added wmode="transparent" to the EMBED tag then the expanded menu appeared but the color of flash image diaappeared also tried z-index in css.

[Code]...

View 4 Replies

ActionScript 3.0 :: Image Refresh Doesn't Free Memory?

May 14, 2008

[URL]

The movie loads in an external image and refreshes it every second. What happens, though, is the previous image seems to stay in memory. Eventually the browser will hang, because the memory footprint of the flash movie is so large. Even while testing outside the browser, I can see the memory increase by a couple hundred KB every second. You can see it at [URL]

The code I'm using is below (don't make fun, I don't claim to be a programmer).

Code:
function refresh_url(event:TimerEvent){
var url:String = "http://www.live-photo.com/asheville-east.jpg?ID="+getTimer();
var request:URLRequest = new URLRequest(url);

[Code]....

View 2 Replies

ActionScript 3.0 :: Dispatchevent Image Tooltip Doesn't Work?

Oct 20, 2009

i am quite new to Actionscriot although i have lots of programming background. My application displays an image (with glow effects) via FLEX that has a link on it. Since the user would have no idea that this image is clickable, i want to set a tooltip that should come up after the image has been displayed. Here is my code fragment :

[Code]...

View 1 Replies

ActionScript 2.0 :: Image Gallery Scroller - Doesn't Ease In Or Out

Jun 23, 2004

I followed someone's tutorial on CWD.dk and made this image gallery scroller. I have attached the file downloaded from the website. Basically, when you click the buttons, it will scroll the images. However, it doesn't ease in or out, and I would like to know how to make it ease in and out. I've been trying for the last 2 hours with no success. Anyway, the file is too large to attach, so here is the direct link. [URL]

View 5 Replies

ActionScript 3.0 :: App Doesn't Display Dynamic Image Properly?

Feb 1, 2009

I recently created a visual quiz app which asks a question and then gives 4 image answers.The problem that I'm having is that the images don't shrink the image into their quadrants, but rather, zooms in on the top left corner of the image.Can anyone tell me what I have to change in the following code to make the images display at a set width (so that they fit in the quadrants proportionally).Here is what the SWF looks like now. As you can see the images become distorted because they are being stretched. What should happen is that the images be displayed at a fixed width and variable height.

Code:
var dataXML:XML = new XML();
var arrSounds:Array = new Array();

[code].....

View 1 Replies

Image Zoom Tool Doesn't Work Properly In Firefox?

Mar 28, 2009

This is the code I use to run a swf that makes zoom on images:

<body>
<center>
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash

[Code]....

This code works properly in IE7 but in Firefox I have discovered that the images are loaded after than the swf. This swf file needs some parameters to work with the images, but if the images are not loaded previously then the swf does not work properly. In firefox, a page refresh is needed if the images are not yet loaded in the cache.

I have resolved the problem partially preloading the images in the previous page link using: <img src="imagebig.jpg" style="display:none;" alt="" width="781" height="1051"/> With this solution, the images are loaded prior to the swf loading.

View 1 Replies

ActionScript 2.0 :: Create One Image Gallery / Doesn't Work Properly

Jan 12, 2010

I create one image gallery. But it doesn't work properly.That means i want to play like slide show with using setInterval method.Once first image loaded and second image if load i want some time to display for ex:2min waiting. After that load third image. this only i want to play this sequence.[code]

View 1 Replies







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