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




Max Value Of Width And Height Of A MovieClip



Hi everyone,What is the maximum value of width and height of a movieclip,Thanks,Saddu.



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 07-10-2007, 08:43 AM


View Complete Forum Thread with Replies

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

Width And Height Of MovieClip Is Always 0
It decided to stop working recently, i don't know why, or what i did.
But anyway, i have a container movieClip, inside it, is an empty movieClip which is having an external SWF loaded into it via loadMovie, this is called 'movie'.
There is also another movieclip with a simple progress bar on it, it gets the loadedBytes and totalBytes by going through the container, like so:

_parent.movie.getBytesLoaded

then, once the loadedbytes is equal to the total bytes, it gets the width, and removes itself:

_parent.move._width ...
_parent.movie._height ...
this.removeMovieClip();

It works fine when you run it locally, but when you simulate a download, or actually see it online, the height and width are always 0.


I originally had an empty movie clip in my library, so i just used container.attachMovie("EmptyMC", "movie", 8);

but when it stoped working i tried the easier:
container.createEmptyMovieClip("movie", 8)

Movieclip Missing Height And Width
Hey,

im trying to load a jpeg to a movieclip and then center its anchor point so it zooms to the center insted of top,left.

The problem is that the movieclip dont have any height or width properties when i load in a jpeg.

The source is here:
http://pastebin.com/m50b4c53

Do you guys know how to solve this problem? or is there any other hacks to fake the center anchor point?

Getting Width And Height Of A Dynamic Movieclip
I created a movieclip, let's call it image_mc, inside a container, say container_mc, clip using 'createEmptyMovieClip'. I then loaded an external jpg image in image_mc using image_mc.loadMovie(url), where url is the location of the image. The image shows, but I have been unable to get image_mc's width or height by querying the _width and _height properties. Both values return 0. Does anyone know why that is?

Flash CS4 Bug: Set Movieclip Width/height To 1
1). Where can I submit bug reports?

2). I have a symbol in my library which contains an 11x11 bitmap. I drag an instance of this symbol onto the stage (inside another symbol). If I set the width or height of this symbol to 1, the width/height parameter turns grey and I can no longer edit it. Help?

Thanks

How To Change The MovieClip Height And Width
I use FlashMX 2004. I need to know how to change the width and height of the MovieClip when it loads to the stage. I used the following method

instanceName._height=value
instanceName._width=value

but when I do like this movie does not load. when I do this method to vary x and y position of the movie it works.

Width And The Height Of The Empty MovieClip?
Hi
I am uploadding some jpg files on a empty movie clip (targetMc) using the loadMovie method.
The jpg files are all of a different heigth and width so the height and width of targetMc change every time accordingly.
Now how do I track dynamicly the width and the height of the targetMc.
Thanks Shirley

Problems Setting MovieClip Height And Width
Hi all,

Im having a bit of trouble setting the height and width of a movie clip in my AS3 class. I have created a new variable for my object, which extends the MovieClip class, but i cant seem to change the height or width of this object!!!
Other properties like x,y,alpha etc. can all be changed and work fine. I tried to use scalex and scaley but i really need to be able to set a specific height and width.

the code i have so far is:


ActionScript Code:
var galleryImage:GalleryImage = new GalleryImage() //GalleryImage extends the MovieClip class
var loader:Loader = new Loader();
galleryImage.addChild(loader); // add loader to galleryImage object
var request:URLRequest = new URLRequest("URL here");
loader.load(request);

galleryImage.height = 100;
var heightDiff:int = imageHeight - 100; // imageHeight is set earlier... lets say its 600.
var percentDiff:int = (imageHeight / 100) * heightDiff;
galleryImage.width = (imageWidth / 100) * percentDiff;

addChild(galleryImage); 
galleryImage.x = 100;
galleryImage.y = 100;

Now when i run this, nothing happens. Without setting height and width it displays an image, but as soon as i try and change height and width it the image doesnt show. I traced the height and it said it was 0.

If any one has any idea how i can set the height or width that would be a great help!!

Cheers for your time
Fish

Movieclip Resizes To Width/height Of Browser
Hello

I have a Fla with many movieclips arranged on it. I've figured out how to reposition them dynamically in AS 2 using a listener (i.e. nav stays at bottom, main content in center regardless of user changing window size, etc.).

Now I want to add another movieclip ("vid_bg" is the instance name) which always resizes to be the width and height of the browser. Think of it as a movieclip background under the other content that stretches to fill the browser.

Is there some code I can add to the function portion to make it resize just the one movieclip (but not the others) to 100% width and 100% height of browser. Thx for any help!

Here's what I'm using for the non resizing movieclips:

function itemsalign() {


container_bg._x = Stage.width / 2 - 1280;
container_bg._y = Stage.height / 2 - 402;

container_popwelcome._x = Stage.width / 2 - 360;
container_popwelcome._y = Stage.height / 2 - 280;

container_main._x = Stage.width / 2 - 450;
container_main._y = Stage.height / 2 - 225;

container_portfolio_bg._x = Stage.width / 2 - 450;
container_portfolio_bg._y = Stage.height / 2 - 225;

container_art._x = Stage.width / 2 - 450;
container_art._y = Stage.height / 2 - 225;


container_bottom._x = Stage.width / 2 - 450;
container_bottom._y = Stage.height-120;

container_top._x = Stage.width / 2 - 450;
container_top._y = "0";
}

itemsalign();

var stageListener1:Object = new Object();
stageListener1.onResize = function() {
itemsalign();
}

Stage.addListener(stageListener1);

How To Detect Width & Height Of Container MovieClip
Hi,

I am trying to make a container MovieClip in which I would like to load another Movie.
The loaded Movie would have to know, what size the container would have in order to set the position of some images dynamically.

Is there a way to get the ClipHolder's width and height?
I tried to use _parent._width on the main timeline of the loaded movie to retrieve the values but the results I got were always weird...

thanks in advance!

 

How To Change The Width And Height Of An Image Loaded In A Movieclip
Hi

I would like to know how I can modify the size properties of an image that is loaded in a movie clip with Loader()
In my example, if I change the width and height properties of the movieclip in which the image is loaded, the image can't be seen anymore
If I don't modify the width and height properties, then the image can be seen
What should I modify in my code so that I can change the size properties and still have my image on the scene?

Here is my code
Code:
var imgLoader:Loader = new Loader();

var image:URLRequest = new URLRequest('model.jpg');

var imgDisplay:MovieClip = new MovieClip();
imgLoader.load(image);
imgDisplay.addChild(imgLoader);

// if I change width or height,
// the image can't be seen, why?
imgDisplay.width = 50;
imgDisplay.height = 50;

addChild(imgDisplay);
many thanks for your help

How To Change The Width And Height Of An Image Loaded In A Movieclip
Hi

I would like to know how I can modify the size properties of an image that is loaded in a movie clip with Loader()
In my example, if I change the width and height properties of the movieclip in which the image is loaded, the image can't be seen anymore
If I don't modify the width and height properties, then the image can be seen
What should I modify in my code so that I can change the size properties and still have my image on the scene?

Here is my code
Code:
var imgLoader:Loader = new Loader();

var image:URLRequest = new URLRequest('model.jpg');

var imgDisplay:MovieClip = new MovieClip();
imgLoader.load(image);
imgDisplay.addChild(imgLoader);

// if I change width or height,
// the image can't be seen, why?
imgDisplay.width = 50;
imgDisplay.height = 50;

addChild(imgDisplay);
many thanks for your help

Setting An Empty Movieclip Default Width/height
Hey'a,

I have a movieclip with the instance name of "container_mc" that I am loading a external swf file into.

When I trace(container_mc._width) after the preload it returns 0.

Is there any way to tell the movieclip to stay at a width of 760px and a height of 460px regardless of the content that is loaded?

Reason being, I then have a function that positions the container_mc movieclip in the center of the stage based on the Stage.width/height..

The only way I have been able to get this to work thus far is to have a 760px by 460px square shape, position the movieclip.. then load the content to replace the square shape however I'd rather be able to default everything without having to do that.

Anyone know how?

Cheers,
Ryan

Loading Images Into A Movieclip And Changing Width / Height
Say I have something like this...


Code:
createEmptyMovieClip("photo",getNextHighestDepth());
photo._width = 800;
photo._height = 600;
photo.loadMovie("someimage.jpg");
Original file size is say 1024...

Can I resize the moviecip? It doesn't seem to be working for me.

Figured it out... using bitmapdata class and a matrix + scaling

How To Change The Width And Height Of An Image Loaded In A Movieclip
Hi

I would like to know how I can modify the size properties of an image that is loaded in a movie clip with Loader()
In my example, if I change the width and height properties of the movieclip in which the image is loaded, the image can't be seen anymore
If I don't modify the width and height properties, then the image can be seen
What should I modify in my code so that I can change the size properties and still have my image on the scene?

Here is my code
Code:
var imgLoader:Loader = new Loader();

var image:URLRequest = new URLRequest('model.jpg');

var imgDisplay:MovieClip = new MovieClip();
imgLoader.load(image);
imgDisplay.addChild(imgLoader);

// if I change width or height,
// the image can't be seen, why?
imgDisplay.width = 50;
imgDisplay.height = 50;

addChild(imgDisplay);
many thanks for your help

Setting Movieclip Height And Width On Stage When Dragged
actionscript Code:






Original
- actionscript Code





init();
function init():Void
{

sunobj._x = 70;
sunobj._y = 78;
sunholder._x = 568.1;
sunholder._y = 102;



sunobj.onPress = function()
{
sunobj.startDrag();

}



}

function onEnterFrame():Void
{

if(sunobj.hitTest(sunholder))
{
stopDrag();
sunobj._x = sunholder._x;
sunobj._y = sunholder._y;
}
}







 init();function init():Void{            sunobj._x = 70;        sunobj._y = 78;        sunholder._x = 568.1;        sunholder._y = 102;                    sunobj.onPress = function()    {        sunobj.startDrag();            }                } function onEnterFrame():Void{        if(sunobj.hitTest(sunholder))    {        stopDrag();        sunobj._x = sunholder._x;        sunobj._y = sunholder._y;    }}        





code is posted above. The problem i am having is i want to change the height and width of the movieclip on stage when dragged and im not sure of the code needed to do it.

I have just started learning actionscript so im pretty new to it.

ultimately what i want to do with the piece of code is to drag a smaller object change the size of the object whilst it is being dragged and then when it is dropped onto a larger object of the same shape the height and width of the smaller object are the same as the larger object

i can explain if nobody understands what i mean

if someone could help that would be great thanks

Movieclip Width And Height Including Dynamic Text Field
Hi,

a graphist has defined a movieclip "actu" in the cs3 author part and i am instanciating this mc with as3.

the dynamic text fields (title, and texte zone under) in the mc have defined height and width, multiline, but when i add the mc with addChild, well, all the elements of the mc are scaled and the text zone goes way beyond the limits on the right.

I even tried to fix actu_mc.width before addchild but that doesn't change anything.

What do i miss ?

How Can I Access The Original Width/height Properties Of A Movieclip After A Resize?
Hi, hopefully this is an easy question for someone clever

What is the best way to access the original width/height properties of a movieclip *after* it has been changed dynamically?

I was thinking the most obvious is to create a startheight/startwidth variable stored in the MC before I changed the values.

But then wondered if it were possible to access the height/width properties of the library movieclip from which the stage instance is created?

Any clean solution would be appreciated, thanks

Get Height And Width
I have a instance of a button into a flash swf file.
This button have next instruction:

on(release){
getURL("javascript:window.open('http://www.xxxx.com/site/photo.jpg,'name_your_window','height=200,width=200 ');void(0);");
}

Every jpg file have diferent sizes. How can i get the height and the width of the jpg files to open the new window with the original sizes of the jpg photo.

Getting Height And Width Of An MC
How do you get the height and width of an MC using actionscript ??

Thx in advance

Width And Height
Are all the screen resolutions proportional to each other? You see, I need to make a full screen SWF, and I am wondering if it will look the same in different resolutions.

Width And Height?
So i have this picture, that loads into 2 movie clips, movie clip A is on screen and is reduced in size, movie clip B loads off screen and is full size. I have 2 text boxes that take the height and width of picture B, and load them into the text boxes. Now, movie Clip A the code for it is this:

onClipEvent (data) {
this._height = 300;
this._width = 400;
}

But i want something like this:

onClipEvent (data) {
this._height = text from the dynamic text box divided by 2;
this._width = text from the dynamic text box divided by 2;
}


so...i tried this._height = this.height/2 but that just kept shrinking the pictures by 50% as i kept scrolling...

Max Width, Height
Dunno why but when i load images into a movieclip....the max width the mc can have is 2880 so larger images are not completely visible...is this fixable? i mean what if i want it to be till 4000 for example....

Height = 100% Width = 100%?
http://www.dieselmarketing.com

amazing site but I would like to know how they keep the flash movie at 100% height and width without stretching the center content.

The dashed lines seem to conform to the browser size yet the body of the movie stays the same size...how is this effect possible anyone here know or have any ideas?

Swf Width/height
Is there a way to determine the width and height of a movie when you don't
have the source .fla file? I'm embeadding a flash movie into an .aspx page
and I don't know the width and height of the movie? Is there a way to
determine the width and height for the movie?

Get Width And Height
How would I get the width and height for an embedded flash movie?

Width And Height
Hi

I have a movie object that I want to horizontal align depending on my configuration in my HTML-embed-width/height.

Is that posible?

I have played around width it using

Stage.align = "TL";
Stage.scaleMode = "noScale";

But I have found that if I set HTML configuration to width="300", the Stage width is allways what I have set in my Flash document properties before compiling and my movie object aligns acording to document properies.

Edit:
Right now I am solving this with sending the width and height as URL parameters

But is there another way?





























Edited: 05/02/2007 at 02:18:15 PM by tan73

Height, Width?
When i click MC "box" i want MC "sleep" to move(which it does) but i also want it to change the height and width while it's moving. How can i go about doing this?


Quote:




speed = 5;
endX = box._x;
endY = box._y;
end1X = sleep._x;
end1Y = sleep._y;
end11X = sleep._width;
end11Y = sleep._height;
box.onRelease = function ()
{
end1X = -583;
end1Y = -0.010000;
end11X = 442;
end11Y = 136;
if (_root.section != "/images/gallery.swf")
{
_root.section = "/images/gallery.swf";
_root.transition.gotoAndPlay("closing");
} // end if
};
_root.onEnterFrame = function ()
{
box._x = box._x + (endX - box._x) / speed;
box._y = box._y + (endY - box._y) / speed;
sleep._x = sleep._x + (end1X - sleep._x) / speed;
sleep._y = sleep._y + (end1Y - sleep._y) / speed;
box2._x = box2._x + (end2X - box2._x) / speed;
box2._y = box2._y + (end2Y - box2._y) / speed;
box3._x = box3._x + (end3X - box3._x) / speed;
box3._y = box3._y + (end3Y - box3._y) / speed;
};

100% Width And Height
Hi check out: http://www.wellvetted.com

This site always looks good irrespective of the resolution you use. When I looked at the page source I noticed they set the swf size as 100% for both width and height. I tried this a a site but it looked awful...

Anyone know how to do this so it always works?

thanks

ash

Width Vs Height
hullo.
im still looking how to maintain max. stage width and height. i have managed to achieve it on the width, but for some reason have been unable to do it for the height. that is, i have managed to make a line go from one side to the other (almost) but cant figure out how to do it on the vertical.
zbot is the horiz line at the botton
ztop for the one above
the problem, is for xleft (the vertical lineon the left)
i have included what i think to be the nearest code yet, and a fla.


Code:

Stage.align = "LT";
Stage.scaleMode = "noScale";
bg._width = System.capabilities.screenResolutionX-20;
bg._height = System.capabilities.screenResolutionY-70;
bg.onResize = function() {
this._x = (Stage.width-this._width)/2;
this._y = (Stage.height-this._height)/2;
};
Stage.addListener(bg);
zbot._x = 62;
zbot.onResize = function() {
this._width = Stage.width;
};
Stage.addListener(zbot);
////
xleft._x = 270;
xleft.onResize = function() {
this._height = Stage.height;
};
Stage.addListener(zbot);
////
ztop._x = 62;
ztop.onResize = function() {
this._width = Stage.width;
};
Stage.addListener(ztop);
// get the content clip to stay fixed horizontally centred
content.onResize = function() {
this._x = (Stage.width-this._width)/2;
};
Stage.addListener(content);
// manually invoke the onResize events for the clips to start things off
bg.onResize();
zbot.onResize();
ztop.onResize();
xleft.onResize();
content.onResize();

100% Width But Not 100% Height
i need help with a full flash page. it's kinda tricky. it may also be a little tricky to explain so be patient with me.

the width is 100%. that's easy. the content in my swf takes up about 900 pixels. so for example it's too big for 800x600 and if i use 100% height the bottom content is chopped becuase the browser scroll bar is non-existent(we're using 100% height).

but then if i define a height, say 1000, then the swf may not occupy 100% of the height(if someone's using a large res).

the only thing i can think of is to use a really big height that's greater than the biggest resolution. but this sucks for small resolutions because there'll be a big empty space at the bottom.

see what i mean?

isn't there a way to use a minimum height?

Can't Get Mc's Width And Height
I'm a student for design and want to build myself a portfolio, showing pictures and being able to jump between fit_to_screen mode to actual_pixel_size mode. The following code is just the beginning.

I've wrote the code mixing some tutorials (sorry, but I didn't find a good way to clean it so it'll be more focused) - I'm a really new about action script.

myFile is a mc waiting for an external parameter run_url - a string contains something like "/projects/illustration/alice_in_wonderland.jpg"

You can see the trace command marked as red. I'd expect it to give me a number of the movie clip's width, yet i get "undefined" - Where is my mistake?

import mx.utils.Delegate;

var streamingID:Number;
var fileLoaded:Boolean;
var dBar:MovieClip = this.Bars.dBar; //downloading bar
var progBarFactor = dBar._width/100; //pixel to percents
var spacing = 10;

function displayStreaming (theSource:Object) {
if (fileLoaded) {
clearInterval (streamingID);
dBar._x = dBar._width;
} else {
var percentLoaded:Number = Math.floor((theSource.getBytesLoaded()/ theSource.getBytesTotal())*100);
dBar._x = percentLoaded*progBarFactor;
}
}

function doneStreaming():Void {
fileLoaded = true;
}

function screenFit (){
if (myFile.width > Stage.width - 50) {
myFile.width = Stage.width - 50;
}
if (myFile.height > Stage.height - 50) {
myFile.height = Stage.height - 50;
}
myFile._x = Stage.width/2;
myFile._y = Stage.height/2;
};

fileLoaded = false;
myFile.loadMovie(run_url);
onEnterFrame = function(){
var total = myFile.getBytesTotal(), loaded = myFile.getBytesLoaded();
if (total != 0 && Math.round(loaded/total) == 1){
var w = myFile._width + spacing, h = myFile._height + spacing;
screenFit();
}
}
trace (myFile.width);
myFile.onLoad = Delegate.create(this, doneStreaming);
streamingID = setInterval (displayStreaming, 100, myFile);
stop();

100% Width And Height
Hi people,

I've been learning AS3 in the past few weeks but I am a bit confused at the moment. What can I do to have a movie clip occupying 100% of the window's width and height in every resolution.

Example: http://www.marc-aurel.com/2007/

Thanks in advance and sorry If this has been already discussed.

Height, Width?
When i click MC "box" i want MC "sleep" to move(which it does) but i also want it to change the height and width while it's moving. How can i go about doing this?


Quote:




speed = 5;
endX = box._x;
endY = box._y;
end1X = sleep._x;
end1Y = sleep._y;
end11X = sleep._width;
end11Y = sleep._height;
box.onRelease = function ()
{
end1X = -583;
end1Y = -0.010000;
end11X = 442;
end11Y = 136;
if (_root.section != "/images/gallery.swf")
{
_root.section = "/images/gallery.swf";
_root.transition.gotoAndPlay("closing");
} // end if
};
_root.onEnterFrame = function ()
{
box._x = box._x + (endX - box._x) / speed;
box._y = box._y + (endY - box._y) / speed;
sleep._x = sleep._x + (end1X - sleep._x) / speed;
sleep._y = sleep._y + (end1Y - sleep._y) / speed;
box2._x = box2._x + (end2X - box2._x) / speed;
box2._y = box2._y + (end2Y - box2._y) / speed;
box3._x = box3._x + (end3X - box3._x) / speed;
box3._y = box3._y + (end3Y - box3._y) / speed;
};

Width Vs Height
hello.
still looking how to maintain max. stage width and height for some lines i want on the screen.
i have managed to achieve it on the width, but for some reason have been unable to do it for the height. that is, i have managed to make a line go from one side to the other (almost) but cant figure out how to do it on the vertical.
zbot is the horiz line at the botton
ztop for the one above
the problem, is for xleft (the vertical lineon the left)
i have included what i think to be the nearest code yet, and a fla.


Stage.align = "LT";
Stage.scaleMode = "noScale";
bg._width = System.capabilities.screenResolutionX-20;
bg._height = System.capabilities.screenResolutionY-70;
bg.onResize = function() {
this._x = (Stage.width-this._width)/2;
this._y = (Stage.height-this._height)/2;
};
Stage.addListener(bg);
zbot._x = 62;
zbot.onResize = function() {
this._width = Stage.width;
};
Stage.addListener(zbot);
////
xleft._x = 270;
xleft.onResize = function() {
this._height = Stage.height;
};
Stage.addListener(zbot);
////
ztop._x = 62;
ztop.onResize = function() {
this._width = Stage.width;
};
Stage.addListener(ztop);
// get the content clip to stay fixed horizontally centred
content.onResize = function() {
this._x = (Stage.width-this._width)/2;
};
Stage.addListener(content);
// manually invoke the onResize events for the clips to start things off
bg.onResize();
zbot.onResize();
ztop.onResize();
xleft.onResize();
content.onResize();

Fix Width & Height
hi friends,

I have an flv player & i want to set it's width & height.

The following script set it to no scale :

Stage.scaleMode = "noScale";


This one set it to the width & height of stage :
w = Stage.width;
h = Stage.height;

Which code should i use to set it to desired width & height. For instance : 400 * 300 pixels

Cheers, Rohit

Width Height
Hi
I want to scale a mc and i know it can be scale with

mc_xscale = 20
mc._yscale = 20

here it shows that i am scaling mc to 20 percent

now i want to reduce the mc size to 20 px
i know it can be done by

mc._width = 20
mc._height = 20

but the the problem is i just know that i want to reduce mc to 20px but i don't know the height .
so is there any way that if i say i want to reduce mc to 20 px and actionscript can automatically proportionately reduce the height without distorting the shape of MC.

thanks

Width=100%, Height=15
I have a gradient png, it starts as white and fades to transparent. My problem is though, I need it to be 100% wide, but only 15 pixels tall. I've tried everything, and still can't get it to become more than 24 pixels wide (the size of the flash file/image). Does anybody have an suggestions?

Publish settings are windowless transparent and noscale. This is the code that I'm using:

Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="13">
                   <param name='AllowScriptAccess' value="always">
                    <param name="movie" value="images/pngbot.swf">
                    <param name="quality" value="high">
                    <param name="wmode" value="transparent">
                    <embed src="images/pngbot.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.
com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="13"></embed>
                  </object>

Thanks in advance!

Sence's Width And Height
How to get sence's width and height?
getbounds/ _root.width/ _root.height
They do not work.

LoadMovie Height/width
Is it possible to get the height and width of a .swf loaded into a target movie clip? Here's what I'm doing (simplified for clarity):

I've got an instance of a movie clip called "content." I'm loading a .swf into with:
content.loadMovie(path);

Then I want to resize content to fit within a bounding box and maintain proportion, *including negative space*. It works fine with .swf's that fill the stage, but with .swf's that have small amounts of image, content._height and content._width return values of the actual pixels contained in the .swf. content.getBounds().xMax and content.getBounds().yMax return the farthest right and bottom pixels. Can I get a value for the extra negative space to the right and bottom of the pixels.

The obvious fix is to go in and add borders around all of my movies, but that's not reasonable.

Changing Width Also Changes Height
Hi all,

I've got an mc where you can change the width interactively: the border becomes longer.

Code I use:
onClipEvent (mouseMove){
this._width = _root.kader.links._x + _root.kader.rechts._x + 3;
}

Alas the border also becomes thicker when streched to the maximum. This is ugly. Can I do something about it?

Look here if you want to take a look (drag the left and right border):
http://home.wanadoo.nl/d.roberts/stuff/langste_dag.swf

Thanks very much in advance, Danielle.

Controling The Width/height Of An Mc.
I have tried to load an external .swf into an MC in my flash move. No matter how big or small the exteranl .swf is I want it match the dimentions that I set the MC to. For example,
this._width = 100;
this._height = 100;

When I set width and height to the MC the exteranl .swf that I load does not show up. Has any one esle had this problem and was able to fix it?

Thank you all in advance.

Getting Width And Height Of LoadMovie Swf?
I am loading an animated movie clip with...

myclip.loadMovie("myswf.swf");

then trying to get the width and height with

mywidth = myclip._width
myheight = myclip._height

problem is that the size I get back is the size of the animated element and not the stage size it was created on. Is there anyway of getting its stage size??? Because the animation is moving in an out of its stage the size also keeps changing.. Help, this is driving me around the twist.

Cris.

Height And Width Vs. X/y Scale
I'm working in Flash MX once again and have stumbled upon a bit of a problem with both the height and width and the x&y scaling. So I have a question and then my problem. First off I was wondering for increasing the size of an MC, which is perferably used (or both)?

As for my problem, I'm trying to make a Movie clip bigger when a dynamic text field acting as a counter, goes up. So for example it starts at 50, when it reaches 75 the movie clip would "grow" bigger. I was wondering because I had this idea where your an amoeba and everytime you eat a piece of food, it raises your food level and you get bigger. Any help on the matter would be appreciated.

Wattsman

Flashkit rocks!

Spring To Width And Height
I have set up a mc to spring to a typed in width and height. But the problem is it is not springing to the numbers typed in. If you look at the mc when it says 200x200 the box is actually 50X50.

Code:
k = .2;
damp = .8;

photoScreen.onEnterFrame=canvasMove;
function canvasMove() {
the_width = xwidth;
the_height = yheight;
trace(the_width);
//X Scaling
var tx = the_width-photoScreen._width;
this.vx += (tx-photoScreen._width)*k;
this.vx *= damp;
photoScreen._width += this.vx;
//Y Scaling
var ty = the_height-photoScreen._height;
this.vy += (ty-photoScreen._height)*k;
this.vy *= damp;
photoScreen._height += this.vy;
}

Forcing Width And Height
i am trying to pass querystring variables to modify the height and width and a movie. When I pass it, the proportion are staying constrained (ie. 100 x 700)

I don't know if I need to modify in the web page (ie. WIDTH="#hgt#" HEIGHT="#wdt#") or in actionscript and if so, how

thanks

Getting The Height And Width Of The Movie
hey there, does any know how to do this? I just want to set them both as variables. I thought it was this:
_root.currentw = getProperty(_root, _width);
but it always telles me:
263.65 for a movie that is 550

any ideas????

Height And Width Of EmptyMovieClip
I might be approaching this problem from the wrong direction, but I am interested to see if anyone else has run into this situation, and if there is a better solution than my rather unorthadox one.

Problem: I am creating an empty movie clip into which items will be placed at runtime. The placement should be constrained by the height and width of the movie clip. This is a problem since you can't assign h/w to an emptyMovieClip.

Solution: The answer I came up with was to draw a rectangle in the emptyMovieClip at the desired size with an alpha level of 0 (aka invisible).

Has anyone else run into a situation like this? Is there a better way? Thanks in advance!

Width&height When Exporting
i have exported a page and publish it at 1000 width and 580 height so that it fits well in the windows explorer but the explorer always displays it a few pixels down and right. how can i make it so that the blank space from the top and left won`t apear again??
pls hlp. thanks

Width And Height Of A Jpeg Pop Up
I want to click on my button and have a jpeg open up. Which I have succeeded in doing. what I want though is for the jpeg to open up with its dimensions ie. 400 X 350 in a separate window.

I have been trying all sorts of combinations and looking through all of my books including actionscripting and can not find the right script to get this to work. Is it a property, a variable, an expression, a combination of? I don't know the correct verbage.

I am using Flash MX. Pease help.

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