Stretching MC
Hey all,
I have some MCs which I have stretched (keyframed) to suit the content that is loaded into them. I have used the external preloader tutorial.
The problem I have, is that when the MCs are stretched, it's stretching the 'loading' text in the transitions. Is there a simple way around this?
I assume it might be possible with _xscale, or something similar. The MC's are only stretching horizontally.
Cheers, dreeft.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-07-2005, 10:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Stretching A MC
Plz help me out from my situation...i am briefing my probs here..
I have some movie clips in _root. and there will be hotsopt point in each MC. on pressing and dragging that point the MC will resize accordingly...
This thing i want to do it with ActionScript...i am planning for another MC(empty MC) in _root which is having ActionScript for changing the other MCs..
The ActionScript MC will take parameters of MCname to resize and current Width and Height..
I have all the idea in my mind....but i am not good at ActionScript .. can any one help me..whether my idea is wrong or right ???
all kinds of comments would be appriciated..
Thanks in adv,
Help With Stretching...
I have a very simple design for a website I want to make...
What I need help with, is to make the orange square (see attaxhed picture) stretch to each side so that it always cover the entire screen/window.
Everything else (text images etc.) needs to be centered.. I really hope someone can give me a helping hand here
Stretching MC
Hey all,
I have some MCs which I have stretched (keyframed) to suit the content that is loaded into them. I have used the external preloader tutorial.
The problem I have, is that when the MCs are stretched, it's stretching the 'loading' text in the transitions. Is there a simple way around this?
I assume it might be possible with _xscale, or something similar. The MC's are only stretching horizontally.
Cheers,
dreeft.
'Stretching' Text
Hi everyone
Can anyone tell me how I can 'stretch' the width of a font, so that it appears flatter?
I'm using Insane 3D Flash Animator which of course allows me to select the height (size) of the font, but I can't seem to find how to alter the width.
If anyone can tell me how/whether this is possible, I'd be really grateful.
Thanks
Jay
Stretching Out Your Window
Does anyone know how to stretch your window. Poosibly using action scripting or javascript. An example let's say is a 400x400 window showing a flash ad, then it stretches to 400x800.
?????
thanks,
walt
Printing Img Without Stretching
hi
i have make a site where i want the user to be able just to print a picture, not the hole movie or frame. I have used print(img, bmovie) and that works fine in my swf file, but when i have eksported the movie and try to print from the browser, it stretches the picture.
(http://www.ketsjup.dk and choose 'goodies')
if i use bframe or bmax it makes the picture the site of the A4 paper and i don't what that. can anyone help me?
Zing
Fullscreen Without Stretching My Swf
Hi everybody
My quest is to get a fullscreen document with no browser toolbar, location, scrollbar...
Iīve managed to open a fullscreen link from a flash button in html1 to the html2. The thing is, i canīt get that same fullscreen without stretching my embeded swf document.
The problem on stretching the swf document is that in large monitors my images resolution gets lousy.
Thanks for any hint
Fullscreen Without Stretching My Swf
Hi everybody
My quest is to get a fullscreen document with no browser toolbar, location, scrollbar...
Iīve managed to open a fullscreen link from a flash button in html1 to the html2. The thing is, i canīt get that same fullscreen without stretching my embeded swf document.
The problem on stretching the swf document is that in large monitors my images resolution gets lousy.
Thanks for any hint
Stretching Flash?
If you look at the site, you will see that there is a gap at the top and bottom of the flash page which is sitting on a light coloured background. Is there a way that I can make this stretch to touch the top and bottom leaving no gap.
Or Will I have to go back and resize the whole thing? This will also mean having to resize the gradient background in photoshop. I hope you can help.
Thank you.
http://www33.brinkster.com/lookere
Stretching A Beam
This may be tricky. I want to have a "beam" shooting from a gun.The trick is, i want the end of the beam to be where my cursor(or crosshair is)but have the beggining of the beam stay at the gun point. I want the "beam" to be a movie clip, as it will have a quick animation to it. right now it just stays a certain length, and looks dumb when the crosshair is above or below a certain point. Any help would be great. Thanks everyone..
Stretching An Animation
This is probably a basic question so apologies in advance. I've just created an animation of bubbles for a web site and i've created it so that it loops continously. Now my boss wants to slow the animation down but retain the frame rate. I have tried adding more frames and moving all the keyframes forward but it doesn't look the same i need to 'stretch' the movie somehow. Is there an easy way to do this? I've attached the animation in .fla format.
Stretching Out Flash...
Here is my question... How big can we stretch out Flash (MX/2004)?
In other words, how many frames can a timeline have?
How big can a Fla file be (in Megs) before shutting down on you?
How wide, how tall (pixel-wise) can an SWF file be?
How big can the Stage become, in pixels?
How many Scenes can you actually add to a file?
What is the max you can set up your fps in a timeline?
How many hint points can you add when making a Shape Tween?
Also, how many nested movies (downwards) can you build a flash file, in other words, a movieclip is inside a movieclip, inside another movieclip, inside another bla bla bla... and so on... How many times can you go down like this?
Is there a max for "script length" in any given keyframe?
Please don't take this as an important or vital question (not working on anything that would need such answers), I was just questioning how far Flash can be stretched...
Arg Stretching Glitch...
I'm sure at one time or another every flash user has experienced this problem. I tried searching through the forums to see if this had already been addressed but the search feature wasn't working...so here goes.
Have you guys ever noticed that sometimes when you make an animation, an element such as a photo or a movieclip will randomly stretch??? You'll see just the slightest tweak, as if the image is being temporarily resized and then goes back to normal.
I've heard this is a fairly normal thing, but I can't figure out how to fix it for the life of me, I'm using the same image, and it's in the SAME exact spot at the beginning of the animation and at the end, the only thing changing is the alpha (the transparency) and yet the whole image stretches randomly in the middle of playing before going back to normal a split second later.
I know the coordinates are exactly the same on the file because I did a copy and then "paste in place". Anyone have ANY idea what causes this error???
Loaded Swf Stretching?
hey,
i created a test flash file (mainMovie) and an empty mc 1000x200. i saved and published to a folder on my desktop. then i created another file (phoneNumber) which is 1000x200 and published it to the same folder.
there is a button in the mainMovie.swf that loads the phoneNumber.swf into the empty mc. well the damn thing is stretching!!! why?! i checked everything that i could think of several times. all my numbers are good. hhmmm....
i followed this tutorial:
http://www.flashkit.com/tutorials/Ac...1019/index.php
my code:
Code:
_root.load_btn.onPress = function() {
loadMovie("phoneNumber.swf", "_root.holder_mc");
this.enabled = false;
};
_root.unLoad_btn.onPress = function() {
_root.holder_mc.unloadMovie();
_root.load_btn.enabled = true;
};
i have attached a screen grab. the bottom sample is how it should look and how it opens when i launch the actual phoneNumber.swf. as you can see, the top is the mainMovie.swf and it's all stretched out. what's going on?
thanks
kurt
[F8] Dynamic Stretching
Hello all,
I'm tying to create what's called a "gantt chart" in flash. (File attached below)
The horizontal bars represent work shifts, and already have the ability to be dragged horizontally.
My problem is this: if a user grabs either end of the bars (in white), I need to have the bar stretch across the horizontal and stay in place when released. This would allow a user to change the start or end times of a shift.
Any help would be great.
Thanks!!!
J
Stretching Frames?
Hi there,
So I have this animation, say 100 frames. I want it to go slower, without loosing the framerate. Is there any way of stretching it all out? Like in AfterEffects, or any other programs?
[CS3] Swf Stretching Out In Browser...HELP
Hey everybody i have been stumped on this for a few days and have not been able to figure it out, hopefully someone can help me out.
Once i embed the swf in dreamweaver and and view it locally it looks perfect and exactly like it should. But when i upload it to my server and view it online however it becomes stretched out and all the content of the swf is pixelated.
i have never had this happen and am very frustrated and confused.
for reference my site is ianculley.com
MC Is Stretching Rather Than Appending.
I'm having two problems I could really use some help with:
1) I am attaching movie clips to an MC object called dropIn.contentMain. I want the contentMain object to grow taller as objects are attached to it (it is the background, and the attached objects will be the foreground..it's for a kind of dynamically generated web page which will eventually read in text and links to pictures and attach them)
I set up a simple program to test it:
ActionScript Code:
for (x=0; x<40;x++)
{sqr=dropIn.contentMain.attachMovie("squares","square"+x,x);
sqr._y = x * squares._height;
trace(sqr._height);
trace(dropIn.contentMain._height);
dropIn.contentMain._height += sqr._height;}
the problem is, when I increase the height of the container MC (contentMain) instead of adding to it, it stretches it (and its contents consequently get stretched also) What would be a way to do this better, so it appends rather than stretches the contentMain background (it is simply a rectangle, if that helps) Would this require some drawLine work? I'm gonna go try to do it with drawing commands, but does anyone have a better idea?
2) I want to attach text to the contentMain MC, but for some unknown reason, when I do so (with either a createTextField command or even by actually placing the text on to the stage itself) the text is invisible. Anyone know what in the heck is going on here? Does text nested inside of a symbol not display properly in Flash?
Many thanks for any help you can provide
Avoid Stretching
i have made an input field, but i only made one. however, i need more than one different input field size. when i resize the smaller input field, the text field stretchs so there is an indent. is there a way to avoid this?
p.s. the same problem happens with a symbol of just a box and a line, when you resize it, the line gets bigger two.
No Stretching.. No Hairline
Hello. I'm xezton and yes this is my first post. I've been using Flash for a while and I've been able to duplicate some things on websites that interest me. There is one thing, though, that I've not been able to figure out.
When you dynamically resize some container movie clip to fit the contents (be it a picture or external swf loaded into an empty movie clip, etc) the container is stretched. If you use hairline, however, you don't noticed a stretch like this.
Well what if you don't want to use hairline? Check this out:
http://www.stretchdaily.com
Notice how his borders are pretty thick. How is he doing this?
---Ack..
I may have just answered my own question but tell me if there is a better way than this:
He has a movie clip that has a white square graphic with curved corners, and then also a movie clip with a gray square with no borders. The inner gray clip scales to the same size as the content to be loaded, and is the same color as the background, so it looks as if the outer borders are thick, when in reality they are just the edges of the container movie clip coming out from underneath.
You think that's how he did it?
And yes, I've seen the post about resizing with 12,000 + replies. It's very cool.. but it uses the hairline idea.
Let me know what you think.
--xezton
Stretching SWF's All The Way Across Browser
I want to have a movie, a trailer basically, stretch all the way across so it is touching the browser from the left to the right borders.
Just like a widescreen movie trailer.
EXACTLY like this actually:
http://www.dreams2.com/siteintro1.htm
How would I achieve this? Do i still need to put it in an html page? What?
Thanks in advance,
M4R
Stretching Outside The Limits
Hey!
ive seen in a few places were pressing a button drops down a menu, which extends outside the size of the flash movie.
So that it goes over whatever text is actually underneath the movie.
Ive tried to do the same by just making the menu go below the movie, but that just gets cut off , any suggestions?
thanks
Stretching Effect
I'd like to know to re-create how to create those stretchin effect on this website: www.code23.com/flash.htm Are there any tutorials aaround? What software do you guys recommend for 3D?
Stretching Text
Hi, I'm currently working my way through making a a hover/caption swf for a website and one i've come across a couple of problems:
1) Firstly all the dynamic text for the captions is extracted from an xml file - how would I write in the xml a new line feed? I've tried putting both '
' and '
' in the xml but flash just writes these out as if they are text.
2) How could I change the height of the movie clip depending on the length of the text (or even betterthe number of line feeds)? Changing the caption movie clips height stretches the text.
This is the code (only slightly changed from the Kirupa caption tutorial):
Code:
captionFN = function (showCaption, captionText, bName) {
if (showCaption) {
_root.createEmptyMovieClip("hoverCaption", this.getNextHighestDepth());
mc_caption.txt_desc.text = captionText;
mc_caption._width = 150;
mc_caption._alpha = 85;
//mc_caption._height = ??;
if ((bName._width+bName._x+mc_caption._width)>Stage.width) {
xo = -0-mc_caption._width;
yo = -50;
}
else {
xo = -0;
yo = -50;
}
hoverCaption.onEnterFrame = function() {
mc_caption._x = _root._xmouse+xo;
mc_caption._y = _root._ymouse+yo;
mc_caption._visible = true;
};
}
else {
delete hoverCaption.onEnterFrame;
mc_caption._visible = false;
}
};
and a screenshot of an idea of what I'm trying to do and the problems I'm having:
Cheers to anyone who can help.
stibos
Page Stretching To Fit
Boy, do I feel like a noob all over again...
Anyway, what I'm doing is loading MySQL data into Flash via PHP, and what I need to have happen is the Flash movie to behave like a normal HTML page. For example, the information is loaded in and if the information displayed is higher than the HTML allows for, I would like for this is stretch so the browser scroller shows on the side, much like you would have for many pages on these forums. Right now, the height is set at 700px but I was hoping there would be a way to adjust this so everything would just scroll.
This might be an easy and wholly obvious solution, which I think it will be, or it might be very tricky or even impossible. Can someone point me in the right direction here? I'm dumbfounded.
No Stretching.. No Hairline
Hello. I'm xezton and yes this is my first post. I've been using Flash for a while and I've been able to duplicate some things on websites that interest me. There is one thing, though, that I've not been able to figure out.
When you dynamically resize some container movie clip to fit the contents (be it a picture or external swf loaded into an empty movie clip, etc) the container is stretched. If you use hairline, however, you don't noticed a stretch like this.
Well what if you don't want to use hairline? Check this out:
http://www.stretchdaily.com
Notice how his borders are pretty thick. How is he doing this?
---Ack..
I may have just answered my own question but tell me if there is a better way than this:
He has a movie clip that has a white square graphic with curved corners, and then also a movie clip with a gray square with no borders. The inner gray clip scales to the same size as the content to be loaded, and is the same color as the background, so it looks as if the outer borders are thick, when in reality they are just the edges of the container movie clip coming out from underneath.
You think that's how he did it?
And yes, I've seen the post about resizing with 12,000 + replies. It's very cool.. but it uses the hairline idea.
Let me know what you think.
--xezton
Stretching SWF's All The Way Across Browser
I want to have a movie, a trailer basically, stretch all the way across so it is touching the browser from the left to the right borders.
Just like a widescreen movie trailer.
EXACTLY like this actually:
http://www.dreams2.com/siteintro1.htm
How would I achieve this? Do i still need to put it in an html page? What?
Thanks in advance,
M4R
Stretching Outside The Limits
Hey!
ive seen in a few places were pressing a button drops down a menu, which extends outside the size of the flash movie.
So that it goes over whatever text is actually underneath the movie.
Ive tried to do the same by just making the menu go below the movie, but that just gets cut off , any suggestions?
thanks
Stretching Effect
I'd like to know to re-create how to create those stretchin effect on this website: www.code23.com/flash.htm Are there any tutorials aaround? What software do you guys recommend for 3D?
[AS] Stretching Menu
Hi,
I would like to ask you, Ultrashockers, if anybody can help me with creating menu like here (top orange) - http://www.nike.com/bowerman/home.jsp?language=english
I need to accomplish the cool stretching effect of the menu items...
THANKS A LOT !
cren
Stretching And Bouncing
I am relatively new to flash, and flash web design, so I have been looking around for ideas. I stumbled upon a great site called www.aroots.com and saw these nifty bouncing windows (they animate before becoming static windows. I was wondering if anyone knows how to do this. I have been looking for 3 days on how to do it and have come up with nothing.
Stretching A Line
Hey,
I have a problem, i can't figure it out at all how to do it..I want to have two boxes connected to each other by a very fine string. When you drag a box, the other box stays, and this string gets longer. How can this be achieved? I've seen this kind of stuff before, i'm doing a cool design site for a client, and i just want it to be a bit more interactive and user friendly. Any help/links to tutorials or even files would really b appreciated
Aidan
Problem With Images - Stretching?
I am tweening an image in flash. The image looks alright when put as a stating object on the screen. But, once I tween it , say doing a fall effect, the quality gets Deteriorated .This happens specifically with images that contain texts. Can somebody help in this regards???
Stretching Width In HTML
Hey ppl ^_^
I have a flash file in an HTML page. The problem is I need that file to stretch in width as the page is made bigger. I have the swf in a table at the top of the page. The only thing is to stretch the swf it has to get larger all around. Is there away to set it up so it only stretches in width?
thx
Flash Stretching Images?
I posted something about this last week, and I think my question was a bit vague. Anyway, something I'm noticing is that at design time some of my images (both bitmaps and movie clips) are getting stretched vertically by a pixel. The thing is this only happens at runtime (control>Test Movie or in the published .swf) - during design time and going Control>Play everything looks fine. I vaguely remember something running into something like this when I used Director ages and ages ago, but for the life of me can't fix this.
Does this sound familiar to anyone?
Horizontal Stretching Menu
hello, i am fairly new to actionscript and i need help creating a horizontal actionscript controlled interface. i have attached the problem file. originally i started with some code from a vertical version of what i am trying to do (courtesy of ming chan on this site) and tried to adjust the menu to suit my needs however as you will see, although the menu pieces open in the proper spot, they drift to line up under each other, so that only one menu piece is showing on the top. i have checked and rechecked everything over and over, but i am not good at the math part of this whole thing, and i am thinking that maybe this particular code cannot be adapted to work vertically. rather than waste any more time beating my head against the wall, would someone please help me get to the bottom of this. the simplified non actionscript version can be found here:
http://www.aisde.com/flash/plain.html
that's the idea only adapting the actionscript in the attached file to jazz it up. please help, even if it's just to say forget it, that code can't be adapted to a horizontal menu, i would deeply appreciate it. or suggestions pointing me in a better direction, tutorial, etc. thanks, rebecca
Flash Is Stretching My Pictures
http://www.mormonchamber.com/bom/index.html
When I publish, flash produces a swd file. Not sure what that is. Can someone help me fix the distortion problem on the beginning and ending photos in my flash file?
Stretching Flash Windows?
I am wondering how it is possible to stretch a flash window to the edges of a browser, and keep it there no matter what size the user's browser window is. I am looking to stretch a window to the horizontal edges.
Thanks,
Adam
Stretching Flash To Fit In Webpage
Hi,
This is a follow up after I had some great help from 'pellepiano'..
Bascially Ive attached a file so it might help people in the future and someone might be able to help me.
The flash file when published to HTML will stretch to the size of the screen keeping the main body the same pixels centered (after you set the page margin properties on dreamweaver to 0).
It has two main sets of code to do this, one to set up the initial page to fit the browser without stretching the images in the page, and the other that will stretch Instances to what you set them to....... I am looking to set the white bar to the bottom of the screen and the blue logo to the top left of screen when in IE?????? anybody help me!???
Thanks
Jp
Stretching Flash To Fit In Webpage
Hi,
This is a follow up after I had some great help from 'pellepiano'..
Bascially Ive attached a file so it might help people in the future and someone might be able to help me.
The flash file when published to HTML will stretch to the size of the screen keeping the main body the same pixels centered (after you set the page margin properties on dreamweaver to 0).
It has two main sets of code to do this, one to set up the initial page to fit the browser without stretching the images in the page, and the other that will stretch Instances to what you set them to....... I am looking to set the white bar to the bottom of the screen and the blue logo to the top left of screen when in IE?????? anybody help me!???
Thanks
Jp
Stretching Movie Clips?
i have a very strange problem, im making the simplest of flash buttons with just a fade in and out on a rollover. i have two images, each 120x48 pixels, one of which is contained in an MC of the same specified dimensions, which fades over top of the other. everything is cool until i export, and the MC is bizarrely expanded by about 1 pixel in each dimension.
the jpegs are identical in size, and even the MC shows up the right size on the stage. i have no idea where in the process of generating the .swf it could get the idea that the MC should be 121x49, suffice to say its killing me that this monumentally simple project is giving me so much trouble
[F8] Fullscreen Background Without Stretching?
Hello,
I am interested in having a fullscreen image as a background which does not stretch when the window is resized.
Also, I want the content (within the boundaries of a rectangle) to be centered on the screen when the window is resized.
This site pretty much shows what I'm after LINK
Notice vertical resizing centers the menu window (horizontally also prefered)
And there is also a cap on the max. resize of the window
Does anybody know how to do this?
Thanks
Symbol Button Stretching
hey
This forum has been very helpful with my two queries...so here go's a third.
When i'm creating a symbol then making it a button from an original gif. it seems to stretch or distort the image a bit. I've searched the preferances and various options but can't seem to make sense of why it's doing this!
Thanks!
d g
Stretching Skewing An Image
I have an image that is a page from a book. I need to manipulate the image
as if the page is opening. I can grab the corners and re-size or rotate etc.
I need to be able to curve the 2 long sides and the image to look as if it
has curved. I have the following example without a graphic. ( modified from
someone elses work) 80.5.54.164/swiff/anims/PageTurn2.swf . How do I get the
pink page to have an image on it that stays with the page.
Hope this makes sense
Cheers
STeveW
Tween Stretching Corners
Hi I have created a tween using Actionscript. The tween increases the height of a shape from 60px to 600px. The shape that I am stretching vertically has rounded corners. I have noticed that when I stretch the object with the tween the corners are also stretched and this distorts the object.
Does anyone have a solution for this?
Thank you in advanced.
Amazing Stretching Effect But How?
This site uses a really nice transition effect. very smooth change in size and shape as the different areas of the site are accessed, I've seen this done before on other sites so I thought i'd come here and ask if anyone knows of a tutorial or has an fla of this? (fla would be fantastic).
I'll stand on my head in custard if i get an answer to this
Thank you.
it's just won kirupa site of the week:
http://www.dubko.com/
Stretching Just The Background Of A Swf To The Screen
Hi all
I searched on this, but there was a lot of conflicting info. Aside from the fact it dealt solely with stretching the entire swf.
I have my main body of nav/content, which I want to stay in the center of the screen. However, I also have a background gradient - I want this to stretch to the users browser window.
Anyone able to shed some light?
Cheers
Img Stretching In Dynamic HTML
Heya,
Has anyone had the problem of an image, jpg or png, stretching horizontally in an HTML dynamic scroll bar?
See screenie of SWF:
That red box is a jpg, 50px by 50px, so it's meant to be a square but it's stretching horizontally by about 200%.
This is my external HTML text file, news.txt:
Code:
theText=
<html>
<body>
hello
<br>
<img src="images/square.jpg" width="50" height="50">
<br><br><br><br>
hello
</body>
</html>
The code on frame 1 of the dynamic text box, instance name of dyn. text is "newsText":
Code:
newsText.text = "loading...";
var myLoadVars = new LoadVars();
var newsCSS = new TextField.StyleSheet();
myLoadVars.load("data/news.txt");
myLoadVars.onLoad = function(success) {
if (success) {
newsCSS.load("data/styles/news.css");
} else {
newsText.text = "Sorry, error occured loading HTML text";
}
};
newsCSS.onLoad = function(success) {
if (success) {
newsText.html = true;
newsText.multiline = true;
newsText.condenseWhite = true;
newsText.styleSheet = newsCSS;
newsText.htmlText = myLoadVars.theText;
//
newsText.autoSize = true;
//so that the textbox autoresize itself
newsText._y = -_parent.mc2.newsText._height/2;
//once the textbox autoresized itself this will replace it on the center
_parent.button._x = Math.round(_parent.button._x);
//this roundup the position of the button on the x-axis. Thanks Chris!
_parent.button.a = _parent.button._x;
_parent.button.b = _parent.button._y;
} else {
newsText.text = "Sorry, error occured loading CSS information";
}
};
Code seems a little complicated, that's because I'm using a smooth scrollbar, from http://www.stilva.com/smooth-scrollbar/, edited to accept external HTML and CSS.
I've tried so many variations of the image tag and whole html text file, and I've been searching for ages trying to find why it stretches it and how I can make it display normal scale! I found I can just reduce the width by 50%, but it seems to downsample it a bit choppy.
The dynamic text box that the HTML is displayed in is ticked as HTML, multiline and selectable, and border around text - just for this example.
Is there something clearly wrong with my HTML file?
EDIT: I'm using Flash 8 with latest Flash Player, 9?
Hope there's a solution help out there
Cheers.
P.S., in this forum how can I make an <a> tag work, as <a href="http://google.com/">Click for Google</a> and being able to click on the "Click for Google" part. Couldn't seem to work it ...
|