ActionScript 2.0 :: Change Size Of Loaded Swf File (image Or MovieClip).
Sep 17, 2011
I have successfully loaded an external swf file into my own one. now what i want is to change the size of the loaded file.
the loaded file is an image and its height:500 and width:500 but what i want is to resize it to 200x200
How can i do that.
here is my code to load external image
var peelawayimage = _root.createEmptyMovieClip("peelawayimage", 7);
var mcImage = new MovieClipLoader();
mcImage.loadClip(_root.video_image, peelawayimage);
View 9 Replies
Similar Posts:
Aug 25, 2009
mc.loadMovie("01img.jpg",0);
i use a mc load a pic i want the pic can auto fit the mc's width and heigth
View 6 Replies
Jan 27, 2005
Im having problems with assessing the size of an image after having loaded it into a movieclip using MovieClipLoader.Im trying to use the onLoadComplete-method to determine when the image is completely downloaded into the imageholder-mc, but Im just getting the original size of the mc, not the image's.[code]
View 3 Replies
Jun 10, 2009
I wonder if any of you can point me in the right direction. In my stage I have a movieclip where I want to load several images with different sizes. This mc called "container" adds the loader to the stage so I'm asking for the loader width and height once has finished loading and then passing these to the width and height of the mc container so it resizes accordingly. But...it doesn't work. Here is my code:
[CODE]
var pic:Loader;var totalImages:int = 10;for (var i:uint = 0; i<totalImages; i++){ pic = new Loader() container.addChild(pic) pic.load(new
[code].....
View 3 Replies
Jan 27, 2005
Im having problems with assessing the size of an image after having loaded it into a movieclip using MovieClipLoader.
Im trying to use the onLoadComplete-method to determine when the image is completely downloaded into the imageholder-mc, but Im just getting the original size of the mc, not the image's. I using the MovieClipLoader incorrectly somehow?
Code:
var MCL = new MovieClipLoader();
MCL.loadClip("IMAGE.jpg", mc_ImageHolder);
MCL.onLoadComplete = function (targetMC) { // perhaps 'targetMC' should be used?
trace (mc_ImageHolder._width); // outputs mc's original size, not image's size
}
View 3 Replies
Nov 13, 2003
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended. How do one give code to do this in a progressive way.
View 1 Replies
Jan 25, 2010
How do I set the image size of an externally loaded image? The external image is 80x80, but when I load the image into my scrollBar I need it to be 1/2 that size. I tried setting the loader width and height but that make the image disappear completely. I suppose I am missing something fundamental?[code]...
View 2 Replies
Mar 8, 2012
I've got a component with a few classes like this:
Code:
[Embed(source='assets/images/Road Works Signs/TW-01_0A.png')]
public static var RW0Icon:Class;
[Embed(source='assets/images/Road Works Signs/TW-01_0B.png')]
public static var RW1Icon:Class;
And I am calling them and adding them to a button in another module like this:
Code:
var a:int = 0;
while (a < 6)
{
[code]....
I'm just having trouble trying to change the size of the image. I want to be able to change height/width the image embedded in the RW0Icon class, but don't know how to reference it.
View 0 Replies
Aug 29, 2009
i want to change image size in slideshow.
View 2 Replies
Sep 23, 2011
I'm loading images from xml file. I want the images to have standard width when they are displayed.
Here are the snippets of the code that do the image processing:
var allThumbs:MovieClip = new MovieClip();
addChild(allThumbs);
allThumbs.width = 200;
allThumbs.height = 200;
[Code].....
this lines, where I wanted to resize the images before they show up in the ScrollPane.
View 1 Replies
Jan 21, 2012
How do I change the size of a image or photo using actionscript 2.
View 2 Replies
Mar 3, 2008
I make a image gallery. Images and thumbnails are call by xml. I want fix the size of thumbnails via action script while thumb images are large.
View 1 Replies
Jun 4, 2007
I'm Loading an image into a MC based on an XML file. I'm setting the initial alpha to 0, loading the image, then setting the alpha to 100 once I see that it is fully loaded. The problem is that I want the image to be resized, which is not working. Every time I check the size of the MC once the image is loaded I get 0x0. Here preload code.
Code:
function preload(num) {
eval("image"+num).loadMovie(url[num],1);
eval("image"+num).onEnterFrame = function() {
[Code]....
View 6 Replies
Nov 17, 2002
hare is the line I use to load image to movie clip IMG:
Code:
IMG.loadMovie("photoz/"+LPIC[DAIKTYNAS[preinuse][b]]);
ignore the details..
[code]......
View 6 Replies
Mar 23, 2012
I have a problem with scaleX and scaleY. When I use them for images created by photoshop their graphic decrease a lot. I use scaleX and scaleY for changing the size of image so scaleX equal with scaleY. Is there another way to change the size of image in actionscript without decreasing graphic?
View 9 Replies
Sep 5, 2010
I have a picture gallery that loads a few thumbnails into a holder via xml and AS3. When you click on the thumbnail it loads the full-size image into a Loader.How could I add a description from the xml to the to the full size image.[code]
View 4 Replies
Sep 5, 2010
I have a picture gallery that loads a few thumbnails into a holder via xml and AS3. When you click on the thumbnail it loads the full-size image into a Loader.How could I add a description from the xml to the to the full size image.
View 2 Replies
Nov 7, 2010
Okay so I want to add:
if (_root.Gir_mc._x<=595) {
_root.Gir_mc._xscale=80;
_root.Gir_mc._yscale=80;
[Code].....
View 1 Replies
May 25, 2010
I'm making a simple platformer. I have an array holding what my level looks like and my main character is a horse.... okay it's a unicorn... anyways, Whenever I jump to a platform the hittest is saying that he has landed even though his head or his tail is just over the edge... I'm trying to make it so that only his feet will allow him to land.
View 1 Replies
Aug 28, 2009
I'm working on a UI for a set top box that has a linux os, which runs a java virtual machine, which loads a flash (swf) interface!
Im trying to load a jpg into a MovieClip using the loadMovie() command because the MovieClipLoader object was introduced in Flash 7, which the box cannot run. Im preloading the image using getBytesLoaded() and getBytesTotal() and after its loaded I want to stretch it to a certain size. Im having 2 problems:
1)The FIRST time I run the loadMovie command, it doesnt always load the jpg, and getBytesTotal is set to -1. After I load it a second time, the preloader works fine.
2)I cannot use mc_name._width = 1000 to scale the width of the jpg image to a certain width. Ive tried my code on a fresh flash file and it works on a computer using Flash 6, Actionscript 2, but not on the box. Whats weird is that if I use mc_name._xscale instead of mc_name._width, it works.
Here's the code:
Code:
ImgUrl = "http://img143.imageshack.us/img143/6639/1680x1050k.jpg";
_root._container_mc.removeMovieClip();
_root.createEmptyMovieClip("_container_mc",_root.getNextHighestDepth());
[Code].....
View 12 Replies
Jun 22, 2010
I have a container movieclip that it carries some children of a movieclip .its inner children are moving and therefore our container movieclip will resize to bigger and smaller width and height. but when i scatter then hoarding these children in container ,as trace of main container movieclip size , shows maximum value of dispersal of children and now i want to refresh the size of the container movieclip to resize its currently real size(as children dispersal) and set it as a picture of scroller.?
View 0 Replies
Feb 16, 2010
Is it possible to change the size of a moveClip on the stage by pixels instead of scaling it with scaleX and scaleY? In other words I would like to be able to in crease or decrease the width and height of a movieClip using pixels.
Let say I have this moveClip on the stage, how would you change its width and height using pixels
myBtn.addEventListener(MouseEvent.CLICK, resizeMe,false,0,true);
function resizeMe(event:MouseEvent):void{
// amount doesn't matter
//myMc.scaleX = 1;
//myMc.scaleY = 1;
}
View 2 Replies
Mar 14, 2010
I have a rectangle shaped movieclip that is my contentPlaceHolder for my content. I added action script to dynamically load pictures. I addChild() the loaded pictures to my contenplaceholder movie clip. The problem is when i export and play the movie pictures are loaded but not in there actual size.
the code:
var xmlLoaders:URLLoader = new URLLoader();
var xmlDatas:XML = new XML();[code].....
Pictures are shown in the right order with my clip.y code but they are not their actual size.
View 4 Replies
Jun 16, 2005
I am creating an empty movieclip and loading a jpeg into it. The mc does not seem to resize to account for the jpeg's size, also the parent mc (thisClip) which is also created dynamically (with attachmovie), is set at 500 why:
thisClip.createEmptyMovieClip("theJpeg", 2);
thisClip.theJpeg.loadMovie(url);
thisClip.theJpeg.onEnterFrame = function(){
[Code]...
View 8 Replies
Jul 8, 2010
I'm making a vertical scroller with a mask. The content is inside a movieclip and the user scrolls around it.My problem is, I have lots and lots of content to put inside that movieclip, and I've reached the limit of the sheet. All inside the movieclip. How do I resize the sheet/canvas inside the movieclip so that I can put more info in it??I've googled it, but found nothing.Note: I just want to change the size of the sheet/canvas inside a movieclip and I don't want to change my document size. I'm using flash CS3, AS2.
View 3 Replies
Mar 30, 2010
I'm trying to change the text size in a dynamic text area within a (movie clip) button. For a couple of buttons I'd like to make certain text smaller, for example, to make the "vs" smaller in "A VS B". My buttons have dynamic text in them and the font is embedded and set at size 10 initially. The code I've got in my movie is as follows:
Code:
// define new text formatting
var minimenutext_txt:TextFormat = new TextFormat();
minimenutext_txt.size = 8;
avsb_txt = "A VS B";
avsb_txt.setTextFormat(3,4,minimenutext_txt);
// assign formatting to button dynamic text
btn1.btext.buttext.text = avsb_txt;
The text "A VS B" shows up in my button, but I can't seem to do anything to change the format. I've tried making it bold, italic, that kind of thing too - but no luck. Does the setTextFormat command only work with input dynamic text boxes? Is it being overruled somehow?
View 3 Replies
Jul 7, 2010
I'm making a vertical scroller with a mask. The content is inside a movieclip and the user scrolls around it.My problem is, I have lots and lots of content to put inside that movieclip, and I've reached the limit of the sheet. All inside the movieclip. How do I resize the movieclip so that I can put more info in it?? What's the max width of a movieclip?
Note: I just want to change the size of the sheet/canvas inside a movieclip and I don't want to change my document size. I'm using flash CS3, AS2.
View 5 Replies
Jun 27, 2009
how i can set the size of an external swf i have loaded into a target movieclip ive got the external swf loading into the target ok but its too big.
View 2 Replies
Jan 15, 2011
Now i'm at a frame inside has a button. once i click it will load a swf file
flashmov.onRelease = function(){ flash_mc.loadMovie("animation.swf");}
but i have problem which is my animation.swf is way too big (800x550)and my flash_mc doesn't have anything inside..I want to resize to 480x330. How can i do it?
View 7 Replies
Jan 15, 2011
I'm at a frame inside has a button. once i click it will load a swf file[code]...
View 1 Replies