Scaling And Not Scaling In One Movie
Hi!
I´m creating a movie in witch I want curtain ellements (vector images) to scale to 100% of
the users screen and other ellements (pixel images) to stay at a fixed size and position.
Take a look at the following site: www.hi-res.net When you scale the browser window, the background photo scales with it; it stays fullscreen.
However, the menu stays at its original size.
The effect is possible without using html layers (see source of www.hi-res.net). Anyone
knows how to make this work within 1 swf through actionscripting?
Thanks,
Jef
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-16-2003, 03:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
No Resize/scaling A Movie Clip On The Scaling Stage...
I know this has probably been answered here already, but I've search through all the threads with "scaling" and "resizing" and can't find the solution.
Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.
I think I need to add a listener of some sort to the stage, but I'm not sure how to do this. If you can point me to a thread where this has already been answered, great! Otherwise I would be grateful for any help you could provide here.
Non-scaling Object In Scaling Movie
Does anyone know - Is it possible to have an movie clip, that retains a fixed pixel size e.g. 200x100 inside a flash movie that scales to 100% to fit browser window?
Scaling Dynamic Textfield Without Scaling Font
the titel sys it...
if you create a dynamic textfield...you drag it but you can not see the prcise idth value...so lets say i have a field and the width is 198,5 and i want it to be 200...the problem is if you scale...the fonts also scale...any ideas...
[9-slice Scaling] Not Scaling At Correct Size ?
Hi people,
I found something strange with the 9-slice scaling option.
My MC with that option is simply smaller than the one without it !
You can see an example here (fla in attachement).
with the simple code on the green button :
Code:
on (release) {
_root.i += 10;
this.scroller._height = _root.i; // the left one with 9ss
this.bar._height = _root.i; // the right one without 9ss
}
Does someone have any explanation ?
thanks
Scaling Cursor/Scaling Draggable
Hello.
I am trying to create a draggable movie that will scale depending on it's _x and _y coordinates.
Basically, when the movie is on the lower part of the screen it will be larger than when it's on the top part of the screen.
I would like the scaling to be smooth. I can say, "if this clip is above 100, then reduce by 10%", but it looks poor.
Does anyone have a nicer way to achieve this draggable scaling?
Thanks.
Scaling/preloader..scaling To A Certain Size..
Hi gang...ok...I have a percentage preloader using getBytes.....and I have a preloader bar that increases dependant on the percentage of bytesloaded...what I want is to have the preloader bar scale so that when the percentage reaches 100% the loader bar will be a certain width.
Here is my code so far....please help me edit my exixsting code..and NOT start just re-write the whole thing..I am trying to learn..and incorporate.
Code:
//In Frame 1 I have this:
total = this.getBytesTotal();
//In frame 2 I have this:
_root.growbar._xscale = percent;
loaded = this.getBytesLoaded();
percent = Math.round((loaded/total)*100);
displayPercent = "LOADING: "+percent+"%";
if (percent == 100) {
gotoAndPlay (4);
}
//In frame 3 I have this:
gotoAndPlay (2);
//In frame 4 I have this:
gotoAndPlay ("start");
I made an MC with the name of "growbar" on the stage....
I cant figure ot what I am overlooking...
-whispers-
p.s. Nevermind..I feel like a fool....I found it..LOL
Scaling Shapes Without Scaling Strokes
Hello, I am a new Flash user. I am creating a simple animation to be used in an educational video. I created a graphic symbol which I have tweened in many instances to fade in/out and to grow in size. This is a simple circle without a fill, starting out with a solid 5 pixel stroke. How can I grow this symbol (it ends up at least 4 times larger than its original size) without growing the stroke as well?
Scaling Vs. Non Scaling Of Loaded Clips
Hi there,
I am trying to achieve the loadmovie whereby my container flash movie (main.swf) is 100%x and 100%y scaled in the browser...ie so it's size is dynamic to the browser size (This is fine...know how to do)
But want to load the internal clip at exact dimensions - ie I guess a loadmovie in a target clip or level? with exact x and y size dimensions that always centres in the container flash clip. ie. its size is constant no matter the browser size.
Look at this site for reference.... http://www.beachblanket.co.uk/
Thank you for your help!
Josh
Full Scaling Site + Scaling MC's
I have been trying to figure out how to do this, because I think it looks fantastic. I know that there are a number of things you add to the stage in order to get it to sit aligned right in the middle. I have even manged to ease the stage movements so that when you maximise and minimise by adding friction and acceleration, the movement is smoother and cleaner.
It looks like whatever is loaded into the MC expands and contracts the parent MC, with a border. The movement is seamless and I was wondering if anyone knows how to achieve the same effect.
I have gotten pretty far with it too, but I am momentarily clueless as to this part.
check it out
http://www.nulldesign.de
Achieve Scaling After Scaling
The situation:
I have a header frame that could possible be a 1024 pixels, 800 pixels, etc, etc in width depending on the users resolution. Now, I want my flash file to span accross this space 100% which can easily be done in flash/html.
The problem that I have is that I don’t want the height to change and I don’t want anything distorting inside the flash file itself as an image would. I would like the flash interface to scale in the same way html does.
If you left align something, I want it to be at the far left with no change in actual size.
I have seen this done before with scrolling panes but can’t seem to find information on it anymore.
Any help would be appreciated
Thank you for your time,
Ryan Tate
Non Scaling In Scaling Part
Hi All,
really sorry to bring this one up again. I've managed to create quite good working gallery, thanks to cello and scotty. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
gracias for your help,
m.
Non Scaling In Scaling Part
Hi All,
really sorry to bring this one up again. I've managed to create quite good working gallery, thanks to cello and scotty. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
gracias for your help,
m.
Scaling Movie
Hi guys
I know a similar subject has been addressed elsewhere, but the other posts haven't helped.
I want to be able to resize a movie and have it scalable on the fly, rather than fitting exactly to a browser window etc. Embarrassingly I completed a Flash MX course yesterday in which I was shown how to do this and have already forgotten. The Publish Settings are at 100%x100%, but I'm sure there was something under Document Settings as well.
~RedCirce
Scaling The Movie.
Hi!
Imagine the situation: my Flash object is a part of HTML
document. Now I move something in flash out of flip broad
by
setPropert("_rooot.FullMovie.Cell",_x,getProperty( "_rooot.FullMovie.Cell",_x)+500)
for example.
The size of the full clip is now grosse. So, I have to increase the size of the table where the flip is, to become the same scale of the element in flip like it was befor.(It's my purpuse)
getURL("javascript:WinResize(500,500)");
in HTML:
<script>
function WinResize(xxx,yyy){
MainTable.width=xxx;
MainTable.height=yyy;
}
</script>
where MainTable is the ID of the table with flash object.
After all this operations the flash object scales itself.
And move to the right. Whats the problem?
I try resize _root.FullMovie and move it but it's very hard
to find the right values of parameters. And I find it not elegant. Please help!
MC Changes Movie Scaling
I have a swf(originally made 750X400 and published to 100%X100% with Salign). The movie seems to play just fine until I click one certain button.
The movie is in Japanese -- so the button in question is the top button on the far left (there are two buttons on the left-- this one has the word "and" in the text -- if that helps).
When I click on this "and" button a smaller swf is supposed to play in the top-right corner. The second swf was made at 595X317 and it is positioned so that the entire second swf is within the original movie.
But when I click on the "and" button the second movies loads up in the right corner but the whole movie loses it's 100% scale. It seems to bring the entire move back to original size 750X400.
Does anyone know what is causeing this rescaling? How can I get the second swf to play without readjusting the original movie 100% scaling? I am using Flash MX and Dreamweaver MX.
Thanks,
Matt
http://www.ebc4u.org/Intro/matt5a.htm
Scaling My Movie...
So I have just created this flash web site, my first, and posted it and all, but I am really having some problems placing it in the browser window. There is a white borderaround the entire movie, and I cannot get it to center properly. Any advice? The site is www.mattandfany.com if you want to see what I am talking about. Thank you.
Scaling A Movie
Is there a way to make a movie fit to window, but not scale above a set dimension. In other words make it fit full-screen on a small monitor, but not scale too big on a wide-screen monitor.
Movie Scaling
I have a client who wants a website that is 100%x100% 3-column(which is fine, done all that stuff with css/html). My problem is, he wants a flash intro in the middle column which is scalable to stretch the entire middle column. I was wondering, is there any way to make a flash move scale to fit a css div? I will need both height and width to change so it will fit most resolutions
Movie Scaling
so i hvae this code i'm trying to learn on:
Code:
fscommand("allowscale", "false");
links = new Array();
links[1] = ["1","Cauta"];
links[2] = ["2","Network"];
links[3] = ["3","Implica"];
links[4] = ["4","Salariu"];
posX = Stage.width / 2;
posY = Stage.height / 2;
atasez_clip = links.length-1;
for (var i = 1; i < atasez_clip + 1; i++) {
attachMovie("clip", "clip" + i, i);
}
////////////////
////////////////
_global.signal=true;
this.onEnterFrame = function() {
if (signal) {
mausPos += ((_root._xmouse - posX) / 500);
for (var i = 1; i < atasez_clip + 1; i++) {
miscarea = ((mausPos + (360 / atasez_clip * i)) * Math.PI) / 180;
this["clip" + i]._x = posX + (Math.sin(miscarea) * 170);
this["clip" + i]._y = posY + (Math.cos(miscarea) * 50);
this["clip" + i]._xscale = 100 + (Math.cos(miscarea) * 50)
this["clip" + i]._yscale = 100 + (Math.cos(miscarea) * 50);
this["clip" + i].swapDepths(1000 + (Math.cos(miscarea) * 100));
this["clip" + i].txtName = links[i][1];
this["clip" + i].url = links[i][0];
this["clip" + i].onRelease = function() {
getURL(this.url, "_target");
signal = false;
};
this["clip" + i].onRollOver = function() {
this["clip" + i]._xscale =( 50 * this["clip" + i]) /100;
signal = false;
};
this["clip" + i].onRollOut = function() {
signal = true;
};
}
}
};
logo.swapDepths(999 + 1);
what i want is thet when mouse over the clip, this shoul grow in size by 20% let's say.. or it doesn't even matter, i want it to grow a little.
i was trying this["clip" + i]._xscale =( 50 * this["clip" + i]) /100; but no works for me..
thanks
Scaling Loaded Movie
How do I resize a movie that I am loading into another movie???????? I can load movie...I just cant do the rest???
Help!
Scaling An Entire Movie...
Problem: I designed my movie at 800x600. I have large elements that are being tweened large to small and also changing alpha setting. I want to scale the movie down to a 640x480 movie established resolution to increase performance and to minimize the size of the browser window needed (I'm new to flash and I didn't know better... /grin)...
Question: What can I do? Here's a link, you may have other suggestions for this movie (also note that this file is incomplete).
http://www.trevorhunt.us
Scaling Flash Movie
How do I set my Flash movie to be scalable to fit at both 800x600 and 1024x768? Currently, it is set for 1024 viewing and I would like it to scale down and fit for the 800 viewers
Many thanks for any suggestions!
Rick
Problem Scaling Movie.
Hi,
I'm VERY new to flash and am trying to create my first short movie. Generally I find that the best way to learn a new bit of software is by trying to do something with it that you're really interested in doing. So I have in mind a movie I want to animate and have the scenes drawn up but can't get the first scene to do what I want.
Right, picture this. I have a drawing of a house and have made it a 'symbol'?...or whatever you have to do to it so that you can scale the whole thing. So I want to scale right in to a window until the whole screen is filled with the colour of the window (blue) and then cut to the next scene, to give the impression the viewer is going through the window. I've managed to scale up to a certain point but then the scale tool becomes useless as I can't access the little two arrows that let's you scale inwards. They've gone off the edge of the scene and I can't get at them to scale into the picture further.
I've tried zooming right out so that the scene is a tiny block in the top left corner of the workspace but there still isn't enough space to scale right in.
What am I doing wrong and how can I get it to zoom right into the window?
Also, does anyone have an FLA with the old countdown you'd see before a very old movie? The flickery 5-4-3-2-1 thing that we've all seen a millions times but I can't think of the right words to describe it into google!
Cheers guys.
Movie Clip Scaling...
Hi all,
I'm relatively new to actionscripting, so any help would be appreciated.
Firstly, i'll explain what i am attemptin to do.
I have a mask layer (movie clip)
Under that I have an MC which performs transitions (swipe effect over image)
Under which I have a layer with an MC (content) which loads an image.
What I want is to make a transition effect occur (over the image layer) ONLY when the mask MC has resized to the scale of the content MC (which contains the image).
I have the following code on the mask MC:
onClipEvent (load) {
speed = 5;
movie_width = 0;
movie_height = 0;
}
onClipEvent (enterFrame) {
target_width = <width of content MC>;
target_height = <height of content MC>;;
distance_width = target_width-this._width;
distance_height = target_height-this._height;
this._width += distance_width/speed;
this._height += distance_height/speed;
}
I need to trigger the transition when the mask MC has scaled completely (has stopped scaling).
What I noticed was that this code doesn't actually scale the mask MC to the exact size of the content MC. (its always a fraction less).
SO i couldnt do an if statement and trigger the transition if the sizes matched (between the content MC and the Mask MC).
Id be grateful if someone could help me out.
Also, I'd like some advice on where I could trigger this transition from
regards,
Slyzaar
Movie Not Scaling On My PC-- Please Test For Me
My movie is set as 100% under Publish Settings, but it's not scaling on my PC-- please test it for me: (it's 2MB)
www.natetaylor.net
Are there any other settings that would affect scaling?
The movie is 800x600 but Flash is publishing it at 1200x1000, I have no idea why. Other movies publish fine on my computer, but not this one.
http://www.natetaylor.net
Flash Movie Scaling
Can someone tell me how to make the flash movie automatically start in Show All mode. It says it should do it automatically but if the user scales out in Opera then the box shrinks but you can only see part of the movie.
i think that the answer is embarrassingly simple and if it is then I'd be grateful for you not to mock me....
Dinky Viry Moosh!
Scaling Flash Movie
Hi,
Given a Flash movie, I want to set its width to 100px (using the HTML tags) and then have its height be set such that the width to height ratio of the original movie is retained.
How can I do this?
Cheers,
CN.
Scaling Flash Movie
I have a flash movie : see top of webpage here http://www.smallmoonvalley.com
I want to focus in on just the the hill part of the movie and put it on a 550x400 document - keeping all the animation. I've tried converting the whole thing to a movie symbol, pasting it to another document, then scaling up the whole thing, but weird things happen (bits float off all over the place) any tips on how I can achieve this?
[F8] Scaling Movie Clip
Hello All,
I need help controlling the X & Y scale of a movie clip. I have clip sitting at 0,0 on the stage and i want the bottom right corner of the clip to always be where the mouse is. I cannot reposition it because I need all of the clip to be visible all the time.
Currently I am trying this, it is code I use for repositioning clips adapted for scaling.
Code:
onClipEvent (load) {
_root.mainSpeedY = Number(18);
_root.mainSpeedX = Number(10);
_root.mainYSpeed = Number(0);
_root.mainXSpeed = Number(0);
}
onClipEvent (enterFrame) {
_root.mainNextYPos = Math.round(_ymouse*Number(2));
_root.mainNextXPos = Math.round(_xmouse*Number(2));
_root.currentMainYPos = Number(_root.mainNextYPos);
_root.currentMainXPos = Number(_root.mainNextXPos);
_root.mainYSpeed = (this._yscale-_root.currentMainYPos)/_root.mainSpeedY;
_root.mainXSpeed = (this._xscale-_root.currentMainXPos)/_root.mainSpeedX;
this._yscale -= _root.mainYSpeed;
this._xscale -= _root.mainXSpeed;
}
It is close to what I want because it does scale and has inertia, but the bottom right is not accurate to the mouse.
I think this code should work if I set it up properly, but I cannot understand why it work how I want.
Help very much appreciated.
Thankyou, Elliot Owen.
Scaling Down Flash Movie
Hi there.
I am in a tricky spot because I need to make one flash anim that will be used as a flash email and also played back on big screens at a meeting. The on-screen version needs to be quite a bit bigger so it can play clearly full-screen (there are bitmaps), but Flash is terrible at scaling bitmaps down.
IS there a way to get around making 2 seperate versions of the same animation?
thanks for any input!!
SS
Scaling A Movie Clip - But S-l-o-w-l-y
hi folks,
my question - how do I get a movieclip to slowly change scale when I mouse over it (i.e. on RollOver)?
for info
I'm using ActionScript2.0 and I've succeeded in changing the movieclip scale using 'on RollOver' but it happens MUCH too quickly, I'd like to make it happen slowly BUT I'm unable to figure that out.
your contribution is appreciated, thanks.
yo.
Scaling Movie Problem
Hi,
can anyone help, I need my movie to scale with the browser window as it will be viewed much of the time on 22" monitors. Tried all the standard stuff but can't seem to get it right. I have set the scale to 101%, 101% and the movie will scale with the browser window, and when viewed on a 22" monitor looks fine but when u look at it on a 15" its tiny.
I want it to work like this www.brilliantstudios.co.uk
Can anyone help?
Cheers,
Pat
Scaling Swf Movie And Bitmaps....
Hello,
first post. And would like to thank the creators of this forums. It's been very valuable learning as3 with some help from you guys. And all from lurking..
I will just explain my problem.
I have a game that is pretty much built. It's pretty fast using mostly just bitmap graphics to handle all animations.
The bitmap data is being captured from another movieclip in my library. So I can scale the original movieclip and have pretty nice bitmaps at whatever size I choose.
But the problem I have, is that if I scale the swf to a smaller size thru a browser for example. All bitmap graphics become very jagged and pixelated. Yet my vector obejcts still remain clean of course.
I have tried 2 solutions, scale the bitmap graphics in relation to the size of the window. This did not work.
Another solution that did work, was to force smoothing on the bitmap graphics. But this one slows performance down drastically.
I have over 700 objects animating on screen at over 40 fps, and I'd like to stay as close as possible to that perfomance.
I have also tried force smoothing the bitmap graphics and capture the bitmap data from that then remove smoothing. This also did not work.
Any solutions or ideas on what's going on?
Scaling A Flash Movie
I'm atempting to scale a exported flash movie, which works fine when I use this command
fscommand("fullscreen", "true");
Stopping Movie Scaling?
I'm new to flash and I've created a simple flash movie but don't want it to scale. I've been told about the 'fs' command but don't know how to use it.
can anyone help on this easy request
cheers
kotoman
Scaling A Movie Clip
hi, i am hoping someone can help me with this
i have created a map and i am using scrollpane component to load an external swf (railway.swf) into it. but i want to be able to zoom in and out railway.swf by clicking buttons.
i am trying to use _xscale and _yscale but it just scales the entire swf instead of the railway.swf. not sure if i have explained that too well but i want it to scale the contents of the scrollpane but i don't know how
can anyone help?
Scaling Loaded Movie From Center?
I have a movie that loads separate swf's into a target instance. I also have 2 buttons that scale the loaded movie up and down. The problem is, since Flash uses the left/top corner as the pivot point on loaded movies (into targets) the scaling originates from the top left-hand corner. I want it to scale from the center, how do I do this?
Here is the scale script I am using...
on (release) {
x_scale_value = int(getProperty("imagewindow", _xscale)*1.1);
y_scale_value = int(getProperty("imagewindow", _yscale)*1.1);
setProperty ("imagewindow", _xscale, x_scale_value);
setProperty ("imagewindow", _yscale, y_scale_value);
height_value = int(getProperty("imagewindow", _height));
width_value = int(getProperty("imagewindow", _width));
imagewindow:scale_value = (int(("imagewindowm:scale_value"*1.1)*1000))/1000;
x_value = getProperty("imagewindow", _x);
y_value = getProperty("imagewindow", _y);
}
Scaling A Movie/image On Mouseover
Is it possible to scale up a movie/image etc., when the mouse is moved over it? and to control the scale?
so if you had a small image or text it would either get bigger or automatically show a bigger scaled version?
Non-scaling Area In A Scaled Movie...
I'm experimenting trying to create a part of a movie that doesn't scale within a movie that does scale.
Approach:
1. Get the browser window height and width from javascript with FSCommand.
2. Scale part of the movie according the the initial movie width/height v. the browser window width/height (My Flash movie is set to fill the browser window).
You can see a test of this approach here: http://www.ddc2000.com/testing/fs_scaleMov.htm
Problem: This works, but only on Windows-IE.
Does anyone know a better way to do this? If there was a way to get the true width/height of a movie regardless of browser scaling...
I understand the Mac-IE and NS6 are lost causes for fsCommand, but I can't seem to get it to work on Win/Mac-NS4.7 either.
I've verified that Mac/Win-NS4.7 can do fsCommand but I haven't been able to use the 'SetVariable' method on NS at all.
Any help is greatly appreciated. Thanks.
[Edited by OverEasy on 10-04-2001 at 12:56 PM]
Scaling Movie To Browser Window
Yo Yo-
I'm wondering how to scale an swf to varying browser windows based upon the users machine. I've seen movies scale according to browser size. As you scale the browser the movie scales with it. Anyone know?
RESIZING / SCALING Flash Movie
Here's my REAL TROUBLE when I try and fit my flash movie (the swf) to fit to the browser window. As theoritically CORRECT, all elements in the movie scale in proportion to the browser screen. This proves to be a problem for i'm not able to display or animate the LOGO (or any image) the same size as they're supposed to look like. Instead I get a stretched image.
Is there any solution at all for this problem, whereby though the movie resizes in proportion to the browser, a few symbols remain unchanged?
Scaling An Entire Flash Movie--Can It Be Done?
Problem: I designed my movie at 800x600. I have large elements that are being tweened large to small and also changing alpha setting. I want to scale the movie down to a 640x480 movie established resolution to increase performance and to minimize the size of the browser window needed (I'm new to flash and I didn't know better... /grin)...
Question: What can I do? Here's a link, you may have other suggestions for this movie (also note that this file is incomplete).
http://www.trevorhunt.us
How Do I Stop Executable Movie Scaling?
I hit F12 and publish my .fla as an .exe. Now I want to stop people from dragging the window the out and seeing stuff that isn't even on my stage in the first place!
Any help?
Scaling Movie But Not From Center Point
wonder if anyone can help??
i am trying to scale a movie in my flash file but not from the center point of the movie, i want it to scale from the x,y co-ords from another movie file.
It is meant to be a telescope effect, so as you zoom in it makes the movie zoom from the position the telescope that is over the movie.
Am probably not making much sense.
Any help or anyone who knows a site with flash telescope effects would be great
thanks
Movie Clip Scaling Help Needed
I have an animated movie clip that I want to "scale-up" on mouse over with a bouncy effect just like the items do in this movie:
http://www.unboring.com
My movie clip is attached as an FLA. Any help will be tremendously appreciated! I have very very basic actionscript knowledge.
Thanks,
Zain
Help - Scaling Movie Clip On Mouseover
Is it possible to have a movie clip scale to a certain size when you roll over it?
The way I tried to set it up was...
I put the movie clip that I want scaled inside another movie clip. On frame 1, the movie clip is small, then it tweens to full size (at frame 15), and then back down to small (at frame 30). The actions are to stop at frame 1, frame 15, and frame 30.
Then I put a button on top of that movie clip, and had the button invisible, but the same dimensions as the clip, and I had
onRollOver {
GoToAndPlay(1)
}
onRollOut {
GoToAndPlay(15)
}
Can anyone see what I'm trying to do? The problem is that when I roll over the button, the movie clip grows and shrinks as it should, but then the button is covering the whole clip, and I cannot have access to buttons inside that clip...
Essentially this is a music control device, I want it to be small when the mouse is off of it, and full-size when the mouse rolls over, a much similar effect to the icon bar on the bottom of the screen in Mac OS X. Thank you so much to anyone who can help. I'll check back to respond if anyone needs more info.
Stopping Flash's Movie Scaling
This has probably been covered before, and I am sorry if you find this post spam. But I a desperately in need of help and the problem is so vague that I cant find any tut's or info on it.
What I want to do it create a flash movie with defined borders and no scaling on it. so its basically like a normal animated gif, but with the advantage of having the compression of a flash file. Please can someone help me, as I need to figure this out really quickly <=/
|