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




Resizing A Movieclip



___



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 04-20-2007, 09:03 AM


View Complete Forum Thread with Replies

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

Dynamic Movieclip Resizing With A Textfield Inside Of The Movieclip
Hello,

I've searched past posts in regards to resizing textfields but I was unable to find any help with the problem I am having resizing a movieclip that contains a textfield.

Basically I am dynamically creating an emptyMovieClip, then within that empty movieClip I am then creating a text fielld and populating it with text.

When I try to resize the movieclips instance by clicking on a button and changing the ._width of the movieclip and it fails.

Please help,

frank grimes

Resizing Movieclip?
Hey there fella,

I have a query, how does one resize a movie clip? I have a complicated movie clip in my flash movie and it needs to come up in size a notch, but the only way i can see is to go and alter each frame.

There simply has to be a simpler way.

FLASH 4

tata
thanks for taking the time to reply.

imposter

Resizing Movieclip
im trying to load a SWF in LoadMovie way........then, when it loads the SWF i would like to take a different position and a diferent size...........how can i make this to work?

Resizing Movieclip
i have a movieclip and want to resize it when loaded into another swf file i have looked in the tutorials and stuff but cant find anything could some one help with this thankyou.

Resizing Movieclip
I have a buttonMC which i created in the library and the swf connects to a database and depending on the database, it will display the number of buttonMCs on the stage one on top of another. The buttonMC itself has a dynamic text and a rect to hold the jpeg thumbnail externally as well.

What I did is to use the buttonMC on the library which has a dynamic
text on top and a rect MC called thumbHolder to hold the thumbnail.
And I created another rect on top of the thumbHolder called thumbNail and
i delete the shape so that it is an emptyMC.

I use this function to resize any jpeg loaded in the thumbNail MC:

CheckLoad = function()
{
if (this.thumbNail._width > 0 && this.thumbNail.getBytesLoaded() >=
this.thumbHolder.getBytesTotal())
{
this.thumbNail._width = 65;
this.thumbNail._height = 49;
delete this.onEnterFrame;
}
}

And I used it as follows:
picFile = eval("recData.Image" + i);
_root["menuBtn" + i].thumbHolder.loadMovie(picFile);
_root["menuBtn" + i].thumbHolder.onEnterFrame = checkload;

It doesn't work thou.

I'm not sure how to create empty movieclips inside a button which
gonna duplicate depending on the database, so I had to manually create
it inside the buttonMC and delete the shape.

Resizing Movieclip
Hello

I have a simple movieclip and when I resize it with scaleX and scaleY functions, the movieclip's left-top corner will stay at the same place.

How can I change it so that it will resize from the center - so that the center of the movieclip will stay at the same place (without changing the x and y coordinates)?

Many thanks in advance!

Resizing Movieclip
I have a buttonMC which i created in the library and the swf connects to a database and depending on the database, it will display the number of buttonMCs on the stage one on top of another. The buttonMC itself has a dynamic text and a rect to hold the jpeg thumbnail externally as well.

What I did is to use the buttonMC on the library which has a dynamic
text on top and a rect MC called thumbHolder to hold the thumbnail.
And I created another rect on top of the thumbHolder called thumbNail and
i delete the shape so that it is an emptyMC.

I use this function to resize any jpeg loaded in the thumbNail MC:

CheckLoad = function()
{
if (this.thumbNail._width > 0 && this.thumbNail.getBytesLoaded() >=
this.thumbHolder.getBytesTotal())
{
this.thumbNail._width = 65;
this.thumbNail._height = 49;
delete this.onEnterFrame;
}
}

And I used it as follows:
picFile = eval("recData.Image" + i);
_root["menuBtn" + i].thumbHolder.loadMovie(picFile);
_root["menuBtn" + i].thumbHolder.onEnterFrame = checkload;

It doesn't work thou.

I'm not sure how to create empty movieclips inside a button which
gonna duplicate depending on the database, so I had to manually create
it inside the buttonMC and delete the shape.

Resizing Movieclip
Hi all
there is a rectangular movieclip on scene. there should be a facility for user to resize this mc at runtime. is there any way to make this like when user drag this mc by holding its corner, its grow in size. any idea? or giving hight and width in a textbox is the only way? thanks in advance for any help or suggestion.

Resizing Movieclip
I have a buttonMC which i created in the library and the swf connects to a database and depending on the database, it will display the number of buttonMCs on the stage one on top of another. The buttonMC itself has a dynamic text and a rect to hold the jpeg thumbnail externally as well.

What I did is to use the buttonMC on the library which has a dynamic
text on top and a rect MC called thumbHolder to hold the thumbnail.
And I created another rect on top of the thumbHolder called thumbNail and
i delete the shape so that it is an emptyMC.

I use this function to resize any jpeg loaded in the thumbNail MC:

CheckLoad = function()
{
if (this.thumbNail._width > 0 && this.thumbNail.getBytesLoaded() >=
this.thumbHolder.getBytesTotal())
{
this.thumbNail._width = 65;
this.thumbNail._height = 49;
delete this.onEnterFrame;
}
}

And I used it as follows:
picFile = eval("recData.Image" + i);
_root["menuBtn" + i].thumbHolder.loadMovie(picFile);
_root["menuBtn" + i].thumbHolder.onEnterFrame = checkload;

It doesn't work thou.

I'm not sure how to create empty movieclips inside a button which
gonna duplicate depending on the database, so I had to manually create
it inside the buttonMC and delete the shape.

Resizing A MovieClip
I have a Flash file that has a movieClip named "clipA", and another movieClip inside the first movie clip named "clipB".

When a frame loads, an external JPG file is loaded into the movieClip named "clipB".

After the external JPG is loaded, I trace the following:
trace (clipA.clipB._width);
trace (clipA.clipB._height);

both reply with 0!

Because I can not identify the height, width, X, or Y properties of this object... I can not control any of these properties.

Does anyone have any ideas on how to resize and reposition the movieClip that has an external JPG loaded into it?

Resizing A Movieclip Problem
Hi, hoping someone can help me out here.

I'm trying to resize a movieclip, that has a jpg loaded into it. Note the JPG does not replace the movieclip, the jpg is loaded inside it and replaces another movieclip.

I can resize no problem using
code:
mc._xscale=50;
mc._yscale=50;

But I want to accomplish:
code:

oListener.onLoadComplete = function(mcHolderClip:MovieClip):Void{
_root.loader.text = "Loading Complete";
_root.mc._width = 100;
_root.mc._height = 100;
//_root.mc._xscale=50;
//_root.mc._yscale=50;
}

Giving the movie clip solid numbers not percentages.

When the script runs, the movie clip does not load at all unless I remove the _width and _height commands. It will resize if I turn on the x and y scales.

Any thoughts?

Resizing A Movieclip With Actionscript
I have some Actionscript making an empty movie symbol (called "container") load a jpeg file, and I've managed to adjust its x and y positioning but I can't seem to do anything with its height and width. Inserting any code changing height or width into the snippet below will make the jpeg disappear

Code:
container.loadMovie("file.jpg");
setProperty("container", _x, 0);
setProperty("container", _y, 242);
What can I insert to make sure it resizes the jpeg?

I also have a button that makes this jpeg movieclip a clickable image, with rollover and rollout resizing, but that doesn't seem to be doing anything either.

Code:
on (rollOver) {
with (container) {
_width=143;
_height=202;
_x=0;
_y=205;
}
}
on (rollOut) {
with (container) {
_width=75;
_height=106;
_x=0;
_y=242;
}
on (release) {
getURL("page.html", "_self");
}
What am I doing wrong? Thanks in advance.

[MX] Resizing A Movieclip To Y-height
howdy
i've been trying to get an effect similar to www.niketraining.ca where when you resize the browser window, you don't get white borders. i've done a few searches on the site but haven't found anything yet.. i've done my images so that there isn't any important information on the right side of the image, so i guess what i'm asking is

if there's a quick and easy way to detect the "y" height of the browser and resize the image to that, and disregard "x" axis information, letting any extra bleed off the side of the page

i talked to a friend of mine who said something about "capturing the screen resolution" and then doing something fancy, but i have literally never touched flash before so i'm in abit over my head.

thanks for any help!

Resizing MovieClip With Mask
i have a movie clip acting like a container so that you can only see what is on the canvas.
i have this simple piece of code:
function zoomIn()
{
mapContainer.width = +50;
}
but i get the error - 1120: Access of undefined property mapContainer

is it because the mapContainer is a movieclip? if so how do i correct it to access the movieclip?
thanks
dan

IE6 Resizing A Movieclip After Printing
Weird behavior with IE6. When printing a document, the document gets properly printed but right after it gets printed, my movieclip gets resized.

First thing first, I would be interested to know if anybody encountered such problems when using printJob with IE6. Strangely this problem wasn't reported during testing 3 months ago. No idea if it can be related to one of the recent flash player security updates.

Coding is done in Flash CS3, with Actionscript 2.

I have tried about everything I could think of. What is really weird is that despite the fact that the _root movieclip is scaled by a factor of ten, when I check the different measures, I get the same ones as before the printing actions (the normal ones)

SystemManager.screen.width or height w:800, h:600
_root._width or _height w:1311, h:1196.5 (this is because there is a movieclip for the printing of these dimensions)
Stage.width or Stage heigth w:800, h:600
_root._xscale or _yscale x:100, y:100

What works temporarily is rescaling the root right after the printing.


PHP Code:



_root._xscale = 10_root._yscale = 10.




This is not a viable solution, however, as the quality of the movieclip is affected and I need to reduce the size by a factor of 10 each time the movieclip is printed out.

I have used


PHP Code:



fscommand("allowscale","false");




but this doesn't help.

Having the "print_preview" movieclip generated by script or present on stage before and after printing makes no difference whatsoever. Post printing rescaling seems to be a factor of 10 whatever the size of the print_preview movieclip is (the ratio needed to fit the size of what is movieclips on the _root is at best a factor of 2). That factor of 10 is really weird. I wonder if this could be some IE bug having to do with the fact that scales have moved from 0-100 in AS2 to 0-1 in AS3. No rescaling takes place in Safari or Firefox.

Ideally, I have to find a solution with these following limitations:

The Stage.scaleMode cannot be set to "noscale" because despite the fact that the document was edited at 800x600, it needs to fit in a 724x543 window.

All assets are being drawn on _root, so there is no handle on a specific movieclip I could easily resize or hide when printing takes place.

Yup, I know not best practices. I received a flash app written by somebody else and need to fix it. The person who wrote it has long resigned. Rescaling the assets or putting everything in a containing movieclip would be a nightmare as this is a quite complex web application.

The printing function I use is as follows:


PHP Code:



function printing_run(mc:Object, arrPages:Array):Boolean {  errMsg("printing_run: " + arrPages.length)    var printJob:PrintJob = new PrintJob();  if (printJob.start()) {      for (var i = 0; i < arrPages.length; i++) {        errMsg("arrPages:" + arrPages[i])        printing_updateContent(arrPages[i])          if (printJob.addPage(mc, {xMin:0, xMax:printW, yMin:0, yMax:printH}, null)) { } else { errPrint = false }         }        if (errPrint == false) {            printJob.send();  // print page(s)        }        delete printJob;    } else {        trace("PrintJob.start() failed");    }    return true;}




mc is the MovieClip to print the results on. arrPages is an array that contains the set of movieclips to populate the print holder with. errMsg is a function of my own I use to be able to trace the message in the output box as well as on screen when required.

Any help appreciated.

Problems With Resizing Movieclip
Hi guys

Im having i few problems with a class im writing. Its a simple slideshow class that will switch between a few jpg loaded from an xml file. Ive managed to get it to work when i view the pics in the standard window size, but if i want to set the size to fit a movieclip that is smaller than the scene i keep getting in trouble. I hope somone can help me out.

ActionScript Code:
package
{
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.net.*;
    import flash.display.Loader;
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    import fl.transitions.*;
    import fl.transitions.easing.*;

    public class Imagexx extends MovieClip
    {
        var loader:URLLoader = new URLLoader();
        var pictLoader:Loader = new Loader();
        var xmlUrl:URLRequest = new URLRequest("Images1.xml");
        var j:Number = 0;
        var xml:XML;
        var myTween:Tween;
        var myOtherTween:Tween;
        var stay:Timer = new Timer(4000, 1);
               
        public function Imagexx()
        {
            trace("Imagex.");
            loader.load(xmlUrl);
            loader.addEventListener(Event.COMPLETE, pictComplete);
        }
       
        //unused forloop. just ignore this.
        /*public function xmlComplete(event:Event)
        {
           
            var xml:XML = new XML(loader.data);
            for (var j:Number = 0; j<xml.Image.length(); j++)
            {
                var pictURLReq:URLRequest = new URLRequest(xml.Image[j].Url);
                pictLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, pictComplete);
                pictLoader.load(pictURLReq);
            }
        }
        */
       
        public function pictComplete(event:Event)
        {
            trace("pictComplete");
            xml = new XML(loader.data);
            var pictURLReq:URLRequest = new URLRequest(xml.Image[j].Url);
            j++;
            if(j == xml.Image.length())
            {
                j = 0;
            }
            pictLoader.load(pictURLReq);
            pictLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeIn);
        }
       
        public function fadeIn(event:Event)
        {
            trace(j);
            pictLoader.width = stage.stageWidth; //this is where i get in trouble i believe.
            pictLoader.height = stage.stageHeight;
            pictLoader.alpha = 0;         
            addChild(pictLoader);
            myTween = new Tween(pictLoader, "alpha", None.easeNone, 0, 1, 1.5, true);
            myTween.addEventListener(TweenEvent.MOTION_FINISH, stayTimer);   
        }
       
        public function stayTimer(event:Event)
        {
            trace("stayTimer");
            stay.start();
            stay.addEventListener(TimerEvent.TIMER_COMPLETE, fadeOut);
           
        }
       
        public function fadeOut(event:Event)
        {
            trace("fadeOut");
            myOtherTween = new Tween(pictLoader, "alpha", None.easeNone, 1, 0, 2, true);
            myOtherTween.addEventListener(TweenEvent.MOTION_FINISH, pictComplete);
           
        }
    }
}

Im pretty sure its just a simple thing i need to change, but i have run out of ideas. Thanks guys

Esben

Dynamic Resizing Movieclip
I'm trying to create a lightbox type effect within a movieclip. The background of the movieclip is a semi transparent shape (itself embeded within a movieclip) which I want to dynamically stretch to fill the stage - the website I am working on is a full screen website so the background must adjust to fill the height and width of the browser window, here is the code I am using, but at present it is not working:


Code:
// Setup the Stage properties
Stage.scaleMode = "noScale";
Stage.align = "TL";

// Variables (in percent)
var contBkgHeight:Number = 100;
var contBkgWidth:Number = 100;

// Prototype function to position MovieClips
MovieClip.prototype.pos = function (x, y, w, h)
{
this._x = x;
this._y = y;
this._width = w;
this._height = h;
};

// Out main function
function setStage ()
{
// Calculate percentages based on Stage dimensions
var sw:Number = Stage.width;
var sh:Number = Stage.height;
// Calculate percentages based on Stage dimensions
var cw:Number = sw / 100 * contBkgWidth;
var ch:Number = sh / 100 * contBkgHeight;
// Position / resize our MovieClips
contBkg.pos (0, 0, sw, sh);


}
// Add a listener
var stageListener:Object = new Object ();
Stage.addListener (stageListener);

// When the Stage dimensions change...
stageListener.onResize = setStage;

// Call our function to set it all up right!
setStage ();

Any help or suggestions would be much appreciated.

Resizing Movieclip With Easing
Hi

I have a movieclip that I would like to scale from 0 to 100% and fade in. I would also prefer it to start fast and slow down towards the end.

I have done this using tweening but I know I could get a better result with scripting.

Could anyone shed some light for me.

TIA

Help With Dynamic Resizing A Movieclip
Hi'll
I am learning flash on my own. I was trying to resize a movieclip that contains motion tweening dynamically using movieclip's width and height properties but it didn't work. Is it possible to resize a movieclip that contains any kind of tweening dynamically.

I will highly appriciate any kind of help or insight.

thank you

Movieclip Resizing Issue.
Hey everyone

I've got a minimap which i'm creating dynamically. It fits 3 by 3 "rooms", and i'd like to make it expandable so it can fit more.

So far i've got it so that it goes from it's 90 by 90 size to being about 700 by about 500. It scales the inner parts of it so it appears to just increase how much you're seeing. Everything works fine. Except, for some reason, the map changes size at random, almost.


ActionScript Code:
} else {
        _root.Map._x = 10;
        _root.Map._height = 545;
        _root.Map._width = 768;
        _root.Map.player._xscale = _root.Map.Map._xscale=(90/_root.Map._width)*100;
        _root.Map.player._yscale = _root.Map.Map._yscale=(90/_root.Map._height)*100;
        _root.Map.Map._x = -30*_root.x*(_root.Map.Map._xscale/100)+45;
        _root.Map.Map._y = 30*_root.y*(_root.Map.Map._yscale/100)+45;
        _root.Map.state = 1;
    }

As you can see, i've hard-coded in the height and width of it, and as far as i'm aware that should make it be a certain size. However as i said, when the _root.x value is other than 0, the map seems to shrink in a little.

_root.Map is the map as a whole, which contains a mask, a line, and two other movieclips, one also called Map and one called player. _root.Map.Map is what actually has the rooms and dynamic content in it. I've scaled this so that it appears to be the same size as it was previously. The x and y co-ordinates of the _root.Map.Map are set to be in the middle of _root.Map in the second last two lines, and that is the only time where i can see _root.x and _root.y mentioned, and even if i comment those lines out it still changes the overall size.

I can't see why this'd happen. I can post a .fla too if people want to have a look.

Resizing An External Movieclip?
so far i have this to summon the external movie


Code:
on (release) {
loadMovie("trailer.swf", "placeholder");
setProperty("placeholder", _y, "0");
setProperty("placeholder", _x, "0");
}
as the movie is much bigger than the canvas itself i want to resize it. is this prossible? and if so, how.

Resizing Movieclip To Fullscreen
I have a movie clip named "shapes" that I use as a pseudo-background for my .swf, I alter the color of the movieclip by using the following code;

on (press) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
}

so that each section of my site has a unique color. The problem is I want to publish this as fullscreen (Publish Settings, set Dimensions to "Percent" and Width and Height to 100). For this to look right I need the movieclip "shapes" to expand to 100%. Does anybody have ideas on how this can be done or maybe a better way of aproaching this?

Thanks

[Flash8]Resizing Movieclip
hey guys,

currently i face one problem with the resizing movieclip using action script. I doing a resize on the width of the moviclip. What i got is the movieclip resize on center, but i want is on left. Any idea how to solve it?

the code i use as below:

MovieClip.prototype.resizeMe = function(w) {
var speed = 3;
this.onEnterFrame = function() {
this._xscale += (w-this._xscale)/speed;
};
};

Resizing An External Movieclip?
so far i have this to summon the external movie


Code:
on (release) {
loadMovie("trailer.swf", "placeholder");
setProperty("placeholder", _y, "0");
setProperty("placeholder", _x, "0");
}
as the movie is much bigger than the canvas itself i want to resize it. is this prossible? and if so, how.

Movieclip Dynamic Resizing
This should be ridiculously easy but stops my animation in its tracks. The plan is to have a movieclip resize itself based on its y position on the screen.

So, I have a movieclip on the main timeline. It contains the following script:

onClipEvent (enterFrame) {
howBig = int((this._y)/10);
this._width = howBig;
}

The movieclip is tweened over a number of frames so it moves from screen top to bottom. This changes the _y property of the movieclip and so should change its width.

What happens is that the movieclip will not move, or resize. However if I comment out the line which set the width property then the animation works fine.

I've tried different clip properties ( _alpha etc) and all of them stop the animation. I've tried moving the script to a _root function.

I need the code in the clip as I will be animating a lot of them and it makes sense that the clips themselves work out what size they should be.

What's going on, anyone?

Prevent Movieclip From Resizing
I've loaded an image into a movieclip but the image was bigger than the container movieclip, how would i prevent the movieclip from resizing but instead the image will stretch itself to fit inside the movieclip?

MovieClip Resizing (good Enigma)
I have got a good one for you. I f someone answers this in a short period of time they are awesome. Let's say I have a movie clip and i want to user to be able to resize it with his mouse.
How would that be possible??

Placing And Resizing A Movieclip With Flash
Hi,

I am loading in .swfs to my main movie. When the movie has loaded I wish to scale the movie to a smaller size. Here is basically my code:

code:
var numFrames = 100;
var templatePath="templates/template1.swf";
var tThumb = _root.createEmptyMovieClip("selection" + numFrames,numFrames + 1000);
loadMovie (templatePath, tThumb);
tThumb._width=80;
tThumb._height=60;


When I comment out the lines tThumb._width=80 and tThumb._height=60 - I get the desired result. ie. child clip loaded into main movie. When I add them again the movie disappears, but is visible when i hit debug>list objects.

Can someone please help?

Thanks in advance.

Resizing Movieclip Without Scaling Content?
Hi!

Is there a way to scale a movieclip without scaling the content within that clip?
I'm working on a site where I want to use a scroll area that has different height depending on resolution. Now when I put text inside the text gets streched vertically... Is there a way to prevent that from happening? The same will apply to pics placed inside the movieclip...
If I use a textfield instead of just typing directly inside the movieclip the text is scaled keeping the correct dimensions but I want the text to stay at a constant size...

Niklas

[CS3] Resizing A Movieclip Based On Xml Values
Hi everyone,

I'm about to start creating an xml based image gallery for my portfolio and I'm trying to find out what aspects of actionscript I need to read up on to accomplish a particular effect.

I plan to have a movieclip containing a solid colour in the background of my gallery which upon a thumbnail being clicked smoothly resizes to the dimensions of the related image before the image appears.

From what I've read so far I think I can get my head around the rest of the galleries functions, but I can't find any resources that will show me how to acheive this kind of outcome.

Any tips on areas of actionscript I should look into would be greatly appreciated.

Resizing A MovieClip W/o Distorting Its Contents
I have a Flash movie that I'm working on that scales to the users screen but NOT by default. "noscale" has been set so I get the Stage.width and height and resize my "Content" movieclip accordingly. When I use Content.loadMovie() the content loaded in appears stretched (because I've earlier resized it by forming it to the users screen size). How do I prevent the movie loaded into the Content movieclip from distorting? Thanks.

Event Or Listener For A Movieclip Resizing?
I'm having trouble with the following script. Its using Macromedia... err Adobe's Javascript proxy class to interact with javacsript. The part works great. My problem is that I'm changing the height of the stage to basically match the height of my movieClip(dyn_mc) that contains a textField(dyn_txt) and the stage. Well if I hard code a height instead of "dyn_mc._height" it works great...


Code:
import com.macromedia.javascript.JavaScriptProxy;

var proxy:JavaScriptProxy = new JavaScriptProxy();

btn_btn.onPress = function() {
dyn_mc.dyn_txt.autoSize = "Left";
dyn_mc.dyn_txt.textColor = "0xFFFFFF";

content = new XML();
content.ignoreWhite = true;
content.load("http://www.scotech.us/Joomla/");
content.onLoad = function(success){
if(success){
dyn_mc.dyn_txt.htmlText = content;
proxy.call("changeStageHeight", dyn_mc._height, new Object());
}
}

}
so I'm guessing I'm just not giving it enough time to load the text so the height hasn't changed. I need to know if there is some way to have an event or listener of some sort to fire when the text is not only loaded (already have that with XML) but is fully displayed in the textField.

Does something like this, dyn_mc.onResize, exist? Also if there is an event is there some way to load it at a slower pace... like as growing effect instead of it all just loading at once?

Best AS2 Resizing Scrollbar Code (movieClip)
I need some good functioning dynamically resizing scrollbar code for actionscript2 for a movieclip. I need it to dynamically adjust itself based on the content of the movieclip. I have some scrollbars, but if you need to adjust the height of the scrollbar for a particular interface, it requires that you edit some numbers manually - and at this point its behaving quite buggy for me. I would prefer if there was some code that managed that itself (or was very clear how to edit). I would also prefer if I could customize the graphics. Could some please link me to either a great tutorial (or preferably an FLA) so I can get past this frustration. i would really appreciate it

Anchoring Navigation To Resizing Movieclip
hey ya'll

i'm trying to do something which is probably relatively simple. however, i'm having big troubles figuring it out.

i want my 'navigation' movieclip to stay anchored to the left hand side of my resizing 'box'. so that when the box resizes, the navigation moves along with it.

if anyone has any bright ideas i would greatly appreciate it.

many thanks,
_grennex

Resizing Movieclip Created By CreateEmptyMovieClip
i need help in resizing a movieclip created with createEmptyMovieclip.I tried changing the property using setproperty,the result : no image shown at all..
i think i stting a property for a wrong movieclip..am I??please help me...



Code:
addressVars= new LoadVars();
addressVars.load("http://localhost/test/flashmx_dbPassReturn.php");
addressVars.onLoad = function() {
for (i=0; i<this.n; i++){
myMC = createEmptyMovieClip("holder"+i, i);
myContainer = myMC.createEmptyMovieClip("container", 1);
myContainer.loadMovie(this["picFile"+i]);
setProperty("myMC", _width, "35"); //i want to change the clip size so that
setProperty("myMC", _height, "35"); //it'll appear as thumbnails
myMC._x = (40*i);
myMC._y = (1*i);
pic = new Array();
myMC.pic = (this["picFile"+i]);
myMC.i = i;
myMC.picfile = this["picFile"];
myMC.onPress = function (){
_root.screen.loadMovie(this.pic);
}
}
}

Movieclip Behavior When Dynamically Resizing
I have a simple movieclip (a short horizontal line). When I try to dynamically resize its width:

line._width += 100;

the line becomes fatter as well as longer. Why is this and how do I get around this problem?

Anchoring Navigation To Resizing Movieclip
hey ya'll

i'm trying to do something which is probably relatively simple. however, i'm having big troubles figuring it out.

i want my 'navigation' movieclip to stay anchored to the left hand side of my resizing 'box'. so that when the box resizes, the navigation moves along with it.

if anyone has any bright ideas i would greatly appreciate it.

many thanks,
_grennex

Dynamically Resizing/limiting Movieclip Width
I have some rectangles inside a movieclip. All movieclips are created by actionscript. I want to limit the size of the movieclip on top right corner when user starts drag.


Code:
this.holder_mc.onEnterFrame = function() {
this.holder_mc.rectangle_6._xscale = this.holder_mc._xscale-260;
trace(holder_mc._xscale);
};
This code doesn't work (xscale is constant). I will also need to resize the movieclip on the top left corner.

Can anyone help me?

Dynamically Resizing/limiting Width Of A Movieclip
I have some rectangles inside a movieclip. All movieclips are created by actionscript. I want to limit the size of the movieclip on top right corner when user starts drag.


Code:
this.holder_mc.onEnterFrame = function() {
this.holder_mc.rectangle_6._xscale = this.holder_mc._xscale-260;
trace(holder_mc.rectangle_6._xscale);
};
This code doesn't work (xscale is constant). I will also need to resize the movieclip on the top left corner.

Flash IE6 Gripe - Resizing Stage Causes Movieclip To Disappear
I have a problem that occurs only in Internet Explorer 6 (Flash Player 9), where resizing the stage causes a certain movieclip to disappear. The screen flickers a few times and the movie clip is gone.

I've just confirmed that this is because the movieclip that disappears has a drop shadow filter applied to it, and removing it fixes the problem. Pretty silly. If someone could post a workaround so I can keep the filter, that would be great

Problem With Movieclip Resizing When In OnLoadInit Call Made After A Stop And Play
I searched the forums but found no clue about my problem, please excuse me if I didn't search well.
I am using Flash 8. Action script 2 and player 7 are set in my publishing settings.

I have a swf file with several frames, and in the last one I create empty movieclips and load them with images using loadClip. I also added a listener (onLoadInit) in order to resize them. It all works perfectly, however, I added a stop in the frame previous to the last one and a combo button there, so that the combo button would be the one that makes the root movieclip play again and reach the last frame wherein the images loaded perfectly. This time, the difference was that I could see for a brief instant the images in their original size and then quickly resizing to the desired scale.
I tried to solve the problem making the movieclips invisible until their resizing process with the _visible=false property in the first line of the onLoadInit, however the images in their original size appear and THEN the onLoadInit comes into action and makes them invisible when they resize.
It has puzzled me since the code runs perfectly when there are no stops within the main timeline, why should it make a difference?
Also, when tested with a 56kspeed, the movieclips load at different times and the problem does not appear.
Does anyone know about a bug or has anyone heard about some similar issue?
Any help is welcome and certainly appreciated.

Auto-resizing Flash File When Resizing Windows, HOW?
Hello everyone,

I have been to one web site tonight at my friend's house and I have forgotten whats the web site address. But this thing amazed me and stupid me doesnt know how to do.

you know whenever you build a web site you usually build for certain resolution right (1024x768 or 800x600 etc.. when i visited this web site, whenever i resize the window (make the window bigger smaller etc) the flash movie will follow the window size (extact fit).

I really want to know how to do that...? Anyone please help?

Help would be fully appreciated.

Ella

Resizing Problem Of Swf When Resizing Browser Window
Can any one know the javascript function to auto resize the swf when resizing its pop up window.
I need to auto resize the swf when i resize my popup window in which
the swf is displayed.
Is there any javascript function available to perform this requirement ?

I am just displaying the swf from a location with help of php code

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0" width="100%" height="100%">
<param name="movie" value="<?=$this->baseUrl?>/public/data/
startintro/<?=$this->start_intro?>?<?=time()?>">
<param name="quality" value="high">
<embed src="<?=$this->baseUrl?>/public/data/startintro/<?=
$this->start_intro?>?<?=time()?>" quality="high" pluginspage="http://
www.macromedia.com/go/getflashplayer" type="application/x-shockwave-
flash" width="100%" height="100%">
</object>

Resizing Textbox Without Resizing Text - How?
Hi there,

I create a dynamic textbox (it doesn't matter about the dynamic bit actually, I've tried it with the others), type some text in.

I then go to resize and replace the textbox using the properties panel. This way of course you can get quick and pixel perfect placment.

BUT, when I use the properties panel to resize the box, the text gets all squished, stretched and distorted. Why? The box never goes smaller than the text that's in there so there'd be no pressure on the text to resize.

When I click and drag the handles on the text box it resizes with no problems at all, but this isn't quite accurate enough.

How do I resize the text box using the properties panel but without affecting the actual text inside it? Is there a property or a box that I haven't clicked/need to click?

Cheers

Resizing Objects In Transition (resizing)
I came to a little problem when I was trying to make a resizing function. Other people (flash designers) should use it then in fla while designing stuff so the whole thing (all objects) support resizing functionality. When end user start dragging the browser window, the flash site will reflect this and resize itself keeping the proportions.

Of course this is easy stuff to do. But… until you come to the point that designers will want to animate objects on the stage (changing their size). The problem occurs when user resizes the browser when some animation is taking place on the stage. I can’t come up with the solution that will update the resizing animation and reflect resizing of the browser in the same time. In other words, if you resize the stage and object is in transition (resizing itself) it doesn’t reflect stage size change properly.

You can find my as class + fla at this link http://www.flashportal.sk/stageResize.zip

Please let me know if you have any ideas how to solve this or any questions.

Any help is appreciated. Thanks

[F8] Resizing A Movie Without Resizing The Text
I am trying to make a Flash movie with the dimensions of 100%x100% instead of specific pixel dimensions. So no matter what window size the browser is everything will appear.

However, when the window shrinks the text does too. I have seen many other sites that use the same 100%x100% that follow the size of the browser, and shrink everything but the text.

Can someone help me out? Is that a new feature of Flash CS3?

Thank you all so much in advance.

Resizing Objects In Transition (resizing)
I came to a little problem when I was trying to make a resizing function. Other people (flash designers) should use it then in fla while designing stuff so the whole thing (all objects) support resizing functionality. When end user start dragging the browser window, the flash site will reflect this and resize itself keeping the proportions.

Of course this is easy stuff to do. But… until you come to the point that designers will want to animate objects on the stage (changing their size). The problem occurs when user resizes the browser when some animation is taking place on the stage. I can’t come up with the solution that will update the resizing animation and reflect resizing of the browser in the same time. In other words, if you resize the stage and object is in transition (resizing itself) it doesn’t reflect stage size change properly.

You can find my as class + fla at this link http://www.flashportal.sk/stageResize.zip

Please let me know if you have any ideas how to solve this or any questions.

Any help is appreciated. Thanks

Resizing Sprite Without Resizing Its Children
Hi.

I have a class called GalleryItem that extends Sprite. Each GalleryItem has a Loader that loads an image of variable dimensions into it. Now, I want to be able to change the GalleryItem's dimensions without affecting its contents' dimensions. How can I do that?

Thanks in advance.

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