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




How To: NOT STRETCH The Image In Movie Clip



hi,first of all let me tell you what I have done up to now.I created a movie clip and load picture in itmyPictureMC.loadMovie("someimagehere.gif");and add 4 buttons to resize the movieClip.Upto here everything was fine, but I realised that when I resize the movieClip, the picture in it stretches.Is there someway, to keep the picture as it is and NOT stretch?ThanksRomBerry



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-02-2006, 06:48 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Stretch A Movie Clip
This may be tricky. I want to have a "beam" shooting from a gun.The trick is, i want the end of the beam to be where my cursor(or crosshair is)but have the beggining of the beam stay at the gun point. I want the "beam" to be a movie clip, as it will have a quick animation to it. right now it just stays a certain length, and looks dumb when the crosshair is above or below a certain point. Any help would be great. Thanks everyone..

Image Stretch
I have an image that i imported into flash... why does it strech the image in one pixel line where its not supposed to? how do i fix this ... please help

Image Stretch
Hey, when using the fscommand to make a projector file fullscreen, it stretches the image. Is there a way to keep the swf the same size, only stretch the "background color" to fill the screen? Thanks

Image Stretch
I have an image that i imported into flash... why does it strech the image in one pixel line where its not supposed to? how do i fix this ... please help

Image Stretch Transition
Hi all,

I've always been curious how you do something like this.

http://www.podlob.com
click on Flash Research then 28. Image Stretch

Any ideas or threads?

How Did They Do This On This Site? Image Stretch
http://213loftcompany.com/

Basically, I am wondering how they have this background image fill the browser window. I have used fluid flash before, but usually it deals with colors, or patterns for the background and not an image. How does it not distort when you resize the window?

I'm curious and dying to know. Thanks.

Stretch A Background Image
Hey

Is there a script to stretch a background image

<body background="pathtothefile">

If I want to use a mix between two colors ( gradiant ) for background image what should I do then?

-Mikkel

Image Stretch Mask
Hi everyone

i’m looking to find the way the image stretch is done in ActionScript anybody have a FLA so i could test it s for a personnal project or a place where i could find informations on this?.

That we can see here:

http://www.podlob.com/flash/templat...e=image_stretch

And here:

http://www.mercuriocinematografica.it/gfx/main_en.php

http://www.ego7.com/

I will be glad to test something like this, but can’t seems to find anything on this .

Let me know

Image Stretch Mask
Hi everyone

i’m looking to find the way the image stretch is done in ActionScript anybody have a FLA so i could test it s for a personnal project or a place where i could find informations on this?.

That we can see here:

http://www.podlob.com/flash/templat...e=image_stretch

And here:

http://www.mercuriocinematografica.it/gfx/main_en.php

http://www.ego7.com/

I will be glad to test something like this, but can’t seems to find anything on this .

Let me know

How To Stretch An Image To Fit Width In FLASH MX
Hi all,

I did search my question b4 I posted and couldn't find it. So here it is.

I wanted to stretch my image to fit the width in Flash MX but it wouldn't do it. If you can go to http://www.geocities.com/tnatl/newpage.htm and view it you'll see what i'm talking about. Can you please help me? I've tried to change dimension sizes and it wouldn't work for width.

Thank you, guys
Richard

How To Stretch My Image To Fit The Width In Flash MX
Hi all,

I did search my question b4 I posted and couldn't find it. So here it is.

I wanted to stretch my image to fit the width in Flash MX but it wouldn't do it. If you can go to http://www.geocities.com/tnatl/newpage.htm and view it you'll see what i'm talking about. Can you please help me? I've tried to change dimension sizes and it wouldn't work for width.

Thank you, guys
Richard

Stretch Dynamically Loaded Image
I'm loading an image into an empty movie clip on the stage.

is there a way that if the user rolls over this image it will then increase in size (say from 50x50 to 75x75)?

any help or pointers greatly appreciated.

Stretch/Fill Image Effect
See this? http://www.afcomponents.com/comp_img.htm

It appears to no longer be on sale. Anyone know where a tutorial is for such an effect? Also, I would need to be able to adjust the speed of the effect as needed.

Thanks!

Subtle Image Stretch/blur Anomaly
Greetings everyone. I'm experincing this odd image stretch in my flash movie. The images are cut from photoshop then stored in the library and linked for export by actionscript, then they are all put together in one long line for mouse sensitive scrolling. The source clips and container clips have not been scaled or transformed in any way and the problem is inconsistent. I was wondering if you guys could go to the following site and check out "Arctic Fleece" then product 2012. Tell me if you see what I see.. cheers.

http://207.245.45.44

[F8] Swapping New Image In As Movie Clip - How To Clear Size Of Old Image?
I'm loading in a jpg with the MovieClipLoader object. After the initial load, the movie clip _width property accurately reflects the width of the jpg loaded. Subsequent reloads show the width of the initial image. i need to get the width of the jpg i just loaded so i can properly size it for display. Is there a good way to clear out the initial jpg?

Load External Movie Clip: Image Does Not Appear Where Clip Is
Trying to build the same thumbnail photo gallery I've been working on forever. I'm loading large image into movie clip, however, when the clip loads, the picture appears over to the far right and not in the place where I have place the clip on the stage. My code is for the button is :

on (release) {
if(this.mainloader == Number(this.mainloader)){
loadMovieNum("fam01.jpg",this.mainloader);
} else {
this.mainloader.loadMovie("fam01.jpg");
}
}

I know it has something to do with x and y coordinates, but I've tried everything I know with no luck. If it involves AS, where do I put it.
Thanks to all who reply.

Stretch A Movie
hi all,

how can we stretch a flash movie, without stretching the images?


thanx.

How Can I Stretch This Movie?
http://elizaldi.com/intro/intro.html

I want to scale the movie up to fill the height and width of the screen. Putting 100% for h&w doesn't just work. Any ideas maybe in AS? It's been awhile since I've had to do any Flash coding...

It's been awhile since I've been here but I still see a lot of the same ppl are around. Remember the pimp smiley was made for me yah! that rocked.

Stretch Movie To Max Size
I've developed a page that stretches to fit the browser that contains it. Is it possible to make a movie do this, but stop expanding at a certain size? This way it makes good use of space in a small browser/monitor, but won't get so big that embedded images stretch and distort to ugly porportions in big browsers/monitors.

Thanks!
Frank

Stretch Movie Out To Whole Screen
Happy New Year!

I have a question about how to stretch a swf to meet the whole browser window. A good example can be seen at www.shopcomposition.com. If you'll notice, the swf stretches to the whole browser and screen. How is this done?

Thanks!
Furpants

Loaded Movie Doesn't Stretch Down To Fit
Hi there,

I am trying to add an additional portion to a flash website inside the same html page using the loadMovie command.

I need the site to maintain the same format... so for this add on page, which is wider than the original site, I went thru great pains to make it exactly the same proportions (ratio) as the root site.

The site is now 550x400, so i made the add on page 660x480, the same x:y ratio... however when I loadMovie the larger onto the small, I don't see the bottom or right part of it... boo hoo.

I would like to keep it all on one html page if possible.

Is there any 'easy' way to shrink everything on the add on page down to 550x400?

Any help is greatly appreciated!

quazi

Stretch Movie Horizontal Across Page
hi there
would any one beable to tell me how to stretch a movie horizontally across a page so that it fits within the size of the browser an resizes as an when the browser is. Or is this done in dreamweaver??
please help, going stir crazy
p

Stretch Flash Movie To Fit Web Browser.
I can't achieve doing this simple thing :

I have a flash that resolution is 800*600, on small displays it's okay, but on an HD screen it looks very small.
Web browser resize function is not good, it's badly stretched and runs very slowly.

After searching; I found Publish Settings, Dimensions : Match Movie; changed it to 100% percent.
Things gets resized properly but now too much space is shown, as you can see on picture 2.

Original, working.

Stretched but showing too much.

Do you know how can I fix this ?

Thanks a lot ! :-)

Stretch Flash Movie To Fit Web Browser.
I can't achieve doing this simple thing :

I have a flash that resolution is 800*600, on small displays it's okay, but on an HD screen it looks very small.
Web browser resize function is not good, it's badly stretched and runs very slowly.

After searching; I found Publish Settings, Dimensions : Match Movie; changed it to 100% percent.
Things gets resized properly but now too much space is shown, as you can see on picture 2.

Original, working.

Stretched but showing too much.

Do you know how can I fix this ?

Thanks a lot ! :-)

Making A Movie Loaded To A Level Stretch To 100%
This might be a basic question... I have jjust never encountered it till the job I am now working on.

I have a movie that is 100% x 100% (noscale) so takes up the full browser window. Within that movie, I am calling another movie to load in Level 10

How to I get the content of the movie that is being loaded in level 10 to stretch (scale) to 100% ? It contains a movieclip that I need to stretch out to fit the browser.

At present it just loads into Level 10 and is the size defined in the file - so it doesn't stretch.

I am using Cs3 with actionsscript 2

How To Auto Stretch A Movie, To Self Designed Player?
Hey, this is my first question..

I gota let you know that i'm extremly noob, so i fyou know how to do this, please be very specific and clear. ( i'm fast learning )


K here's the question:


I followed the video basic parts, that lee made, all this is extremly handy,

but he used a sertain video frame format, ( i don't know what formats exist btw ( in pixels/inches )


What i want to know =

if i make a flash movie player of the size ( for example ) H 800 x W 640

and my movie = ( for example ) H 400 x W 320

= it possible, to let flash do a auto stretch/double sizing/adjusting!??, or whatever you want to call it!



I hope my question = reasonbol and understandable, hope to hear from someone :P

because at the moment i'm stuck in designing the player, because of the sizes of the movies.


Many thanks for taking the time to read!

Good luck to you all!


:D

Movie Clip Image
I have a movie clip that displays pictures after reading file names from an xml file. It basically is an image gallery with scroll function implemented. I got it from one of the tutorial sites and modified slightly. When I changed the size of images to meet my needs, however, images started showing as streched along the x-axis (width) to the right. Please, understand that I changed the size of the picture holder (movie clip) accordingly. It almost seems that somehow FLASH has its own way of measuring a pixel, different from Photoshop. Is there something I am doing wrong or there is simply a trick I dont know as FLASH newbie? Any help is greatly appreciated.

Here is the whole code:
Code:
var x:XML = new XML();
x.ignoreWhite = true;

var urls:Array = new Array();
var captions:Array = new Array();
var links:Array = new Array();
var whoIsOn:Number;

x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
links.push(photos[i].attributes.link)
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
linkholder.link = links[0];
trace(linkholder.link);
whoIsOn = 0;
}

x.load("flash.xml");

previous.onRelease = function() {
if(whoIsOn > 0) {
whoIsOn--;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
linkholder.link = links[whoIsOn];
trace(linkholder.link);
}
}

next.onRelease = function() {
if(whoIsOn < urls.length-1) {
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
linkholder.link = links[whoIsOn];
trace(linkholder.link);
}
linkholder.onRelease = function() {
getURL(links[whoIsOn]);
}


}

How To Get A Flash Movie Symbol To Stretch With The Mouse, Across Frames
Hey,

I am using frames on my website. I have an animation of "liquid" in a container, I am trying to get the liquid to raise when the mouse moves up, and lower when the mouse moves down, it must be limited to raise by a certain number of pixels ie. it wont raise higher than 68 pixels. I am also trying to make it raise slower when the mouse moves slowly, and fast when the mouse moves faster. Is this possible, and if so how would I do this ?

Thanks

Doomsday

How Do I Make My Flash Movie Stretch To Fit A Div In Firefox/Mozilla
I want my Flash movie to stretch to fit a div that takes up only part of the browser window.  It works in IE, but not Firefox/Mozilla.  I really need the movie to be fluid, so using a fixed pixel size won't work for me.  I can make it work by taking out the doctype so Firefox works in quirks mode, but there's gotta be a better solution than that, right?

I've read that you can make a Flash movie stretch to fit the whole browser window in Firefox by adding width: 100% and height: 100% to the body tag. Since the div is sized 100% in width and height, why is Firefox still having a spaz?  How do I fix this? Any help appreciated!

The relevant CSS & HTML are below; #con is the container div and #fla is the div enclosing my Flash movie. The page can be seen at http://home.comcast.net/~ckeleher/test/test-archival/pages/testemb.htm

Thanks in advance!

relevant CSS:

CODE#con {
float: left;
width: 70.6%;
padding: 5px 0 0 5px;
}
#fla {
float: left;
width: 100%;
height: 100%;
}

How To Load Image Onto Movie Clip?
Hello,
I have 6 movie clips in a page and i want to load different images on different clips while the page loads.Can anyone tell me how to do this?
Thanks
Srilatha

Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.

Thanks.

Converting Movie Clip To An Image
Hi all,

I am having a very big problem here. I am creating a movie clip with different images on it. the user will be able to save the movie clip and updated in the database using the x and y coordinate of the different image.

Now I wanted to convert the movie clip into an image (JPEG) file and so that I can retrieve it and display onto the browser. May you all help me how should I do it. Thanks for your help pls.

Regards
Fernado

Scrolling Image / Movie Clip Box...(please Help)
Hello...

I'm currently stuck on this problem, (which I hope will be easy to overcome!)...

I want to create a scrolling movie clip, with text and images in it...(So it acts like as a 'news' section for my site...

I know you cant put images into a scrolling text box, (but I'm familiar with the code needed for text box scrolling)...However, i've no idea how to make a scrolling movie clip like the one I want...

From reading the various oldeer threads about this type of subject, I understand that you have to create this movie clip, bigger than the size of the stage, so I can fit all the info I need into it...(right...?)...

Then i assume this movie clip would be loaded into a target...(This meaning that the pictures and text that hasn't be 'scrolled' down to yet would not be seen until the viewer scrolls down far enough..???

How would i do this...?

Is that right...and whats the next step...?

What type of code will I need on the buttons, etc that will end up making the movie clip scroll...???


Basically, I need somneone who can give me advice from scratch on how to make a scrolling movie clip...!!!

Thanks for any help...
Cheers
Jeff

Why Stetch My Image When I Put It In A Movie Clip?
Hi,
I have a gif that I am trying to put in my movie. When I paste it on the main stage it is the correct size. When I double click on my movie clip to add it inside of it though it stretches it out. The width and height show as the correct size in the properties box, but on screen it is stretched out. How can I stop it from stretching out? I'm using mx2004.
Thanks, Matt

Masking Big Movie Clip / Image
Hi all,

does anybody know about some action script, which would mask the big movie clip / image(1600 x 1200)?
Example: http://www.manipulator.com/
Thank you for any help.

Movie Clip And An External Jpg Image
I have a project that has a simple motion tween. In the movie clip is a photo. The tween is set to 0 for the alpha then fade in..then fade out at the end. I wanted to have the fade tween, but have the photo inside the movie clip to be loaded externally.

Thank

Image / Movie Clip Problem
attached is a header i am working on, and at first the logo is fine but as soon as you mouse over about us it distorts it. Why does this happen!?!?!

How Each Movie Clip Masks The Image
http://metaltek.com/

It looks like the same instance of a movie clip.. but it masks a large picture.. how?

is this so simple that i am overlooking how to do so?

or is there a specific way that each movieclip can mask parts or sections of the image?

(this is just for my learning... so a real answer would be appreciative.)

thanks
ZG

Movie Clip Shape To Image
I want to load an image into movie clip. I am doing the following thing.

I am creating a circle symbol and converting it to a movie clip and then writing following code.


Code:
a_mc.loadMovie("images/"+"image1.jpg");
In this case the image is a square as it was. I want it to be circle shape ie same as the shape of movie clip.

Thanks...

Export Movie Clip As Image?
Is it possible to export a movie clip as a jpg or gif using actionscript?

I've seen some stuff with php but I was just wondering was there a way of doing it from flash itself?

AS3: Movie Clip Out Of Image Sequence
Hey,
I'm sure this has been asked here before, but I can't seem to find a related post.

What is the best way using AS3 to create a movie clip out of a sequence of images on disk/ a server.

Thanks!

Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.

Thanks.

Xml Image Gallery In A Movie Clip
im using the xml image gallery with scrolling thumbs from this site- i got it working- but I want to put it in a movie clip so i can position it in my current project and position it where I want it. when i put it in a mc however it dosent allow the thumbs to scroll... is there anything i can do to fix this?

Loading An Image Into A Movie Clip
How? This is what I have now and it doesn't work:

_root.createEmptyMovieClip("testimage", 1); \ New Movie Clip
loadMovie(test.image1name, "testimage"); \ test.image1name = "image-4.jpg", the url of an image
testimage._width = 350; \ Properties for the Movie Clip
testimage._height = 150;\ Properties for the Movie Clip
testimage._x = 50; \ Properties for the Movie Clip
testimage._y = 50; \ Properties for the Movie Clip

Ugh. I'm tired and this is tiring me. Can somebody help me?

EDIT: Weird. When I traced "testimage._width", it returned 0. But when I traced "testimage._x", it returned 50 as it should. Huh?

Thanks,
-Raven~Storm.

Replace An Image In Movie Clip
Hallo!
can anyone tell me how to replace an image in a movie clip??
iam working with macromedia 2004 mx.

Image In The Movie Clip Question
Good day!

I have an question about the movie clip..

scenario.

i have a movie clip where there are two images . i insert it the main stage how will i do that if i will click on of the images it will to the other frame in the main stage?

in my movie clip name step1. and the two images is named bathroom and kitchen.

my code in the main stage is

step1.kitchen.onRelease = function(){

this._parent.gotoAndPlay("name of the frame");
};

your Help id greatly appreciated

}

Showing An Image In Movie Clip... XML
Hi I'm trying to display an image in a movie clip where the location of the image is derived from an xml document.

I'm creating a menu from XML nodes and when the user selects that menu item a separate movie clip is updated with the XML information which corresponds to the menu items nodevalue. In my xml i have an image location defined and I want this to happen...

when the user selects the menu item the node value for the image location dynamically loads the image into the movie clip.

Can anyone help me? I hope i was clear..

Help Loading A Image Into A Movie Clip
I'm new to flash and I'm probably way over my head but could you please help me?

I have only been doing flash for less than a week and I mostly do animations but I want to learn AS.

I have saved my pictures in a folder (i.e. /images/) and linked the file name to a mysql database (i.e. test.png) I can make a php file that makes the links to the images


PHP Code:



<?php$sql = "SELECT * FROM images";$res = mysql_query($sql) or die(mysql_error());while($row = mysql_fetch_assoc($res)) {echo "/images/" . $row['image'];?>




So heres what I want to do,

1.) I am making a logo for my site and I want my pictures to show up in a movie clip (the newest picture first)

2.) If a user clicks on that picture/movie clip it takes them to a specific page

3.) this isn't necessary but would greatly appreciate it. How would I set up controls so a user could switch through the latest six pictures.

If you know of a tutorial that might help please give me a link I've searched for about 30mins without luck.
Thanks in advance!

Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.

Thanks.

Copyright © 2005-08 www.BigResource.com, All rights reserved