Resize Flash Header To Browse Size
Hello,
My name is Mariana and I've got another issue, and -as usual- I hope you can help me resolve. I am making a very fancy header for a website, this header is totally made in flash while the rest of the design is done in html with DW. The size of the flash file is width:770 and height:190. Now, when I go to the publish settings options and choose Percent: 100*100 and publish it, the result in the html page is horribly big. I have played around with the other options to see if I can get a decent stretch effect, but no luck so far.
Is there any way I can tell the header to grow in width but not in height? And also is it possible to keep the buttons inside the header in the original size stretching only the background? Somebody told me to put the flash aside and try to do it with JavaScript. At this point, I'm –obviously- very clueless, so if you have any helpful tips, please let me know.
Thanks in advance again, Mariana.
FlashKit > Flash Help > Flash General Help
Posted on: 04-26-2005, 09:44 PM
View Complete Forum Thread with Replies
Sponsored Links:
Resize Flash Header To Browser Size
Hello,
My name is Mariana and I've got another issue, and -as usual- I hope you can help me resolve. I am making a very fancy header for a website, this header is totally made in flash while the rest of the design is done in html with DW. The size of the flash file is width:770 and height:190. Now, when I go to the publish settings options and choose Percent: 100*100 and publish it, the result in the html page is horribly big. I have played around with the other options to see if I can get a decent stretch effect, but no luck so far.
Is there any way I can tell the header to grow in width but not in height? And also is it possible to keep the buttons inside the header in the original size stretching only the background? Somebody told me to put the flash aside and try to do it with JavaScript. At this point, I'm –obviously- very clueless, so if you have any helpful tips, please let me know.
Thanks in advance again, Mariana.
View Replies !
View Related
Flash Browse Box Resize
i have test Browse Box (Browse file actionscript) in many computer but i don't know what is the real problem for browse resize in my pc it can resize but other pc can't resize , i think this problem came form Flash Player but i get Flash Player 9 already..
if someone know how to do plz tell me thx
View Replies !
View Related
Two Movie Clips That Resize On Browse Ropening
I have this problem with my movies not scaling right on entry to the website. I have two movie clips, the first resizes to fit the browser window the second just shifts to be centered on screen. My problem is that it doesn't scale right as soon as I open the website, only after resize. how do I get the resize function to start before any thing displays. I also don't want it to be on a clip event cause I don't want it have to run over and over every time it flips back and forth from frame to frame.
here's the code:
trace(Stage.width);
trace(Stage.height);
function stageResize() {
scaleable_mc._width = Stage.width+50;
scaleable_mc._height = Stage.width*.5;
scaleable_mc._y = Stage.height*.5-scaleable_mc._height*.5;
centered_mc._x = Stage.width*.5;
centered_mc._y = Stage.height*.5;
}
//
Stage.scaleMode = "noScale";
myListener = new Object();
myListener.onResize = function() {
stageResize();
};
Stage.addListener(myListener);
help me please
zago out
View Replies !
View Related
SIZE THE SWF IN BROWSE
yow! good day..
i create one flash movie and will insert in html archive w/ 100% for Width and Height.
But inserted the file and changing to w=100% and h=100% the movieClips inner the swf was resizeded too!
:'(
i read something in kirupaForum.com about Stage.Object but i dont know use this code.
please any one can help me?
----->
Thks!
View Replies !
View Related
Resize Document Size In Flash
i know.... this is probably one of the most ridiculous questions, and is probably RIGHT in front of my face, or should be self explanitory, but since i'm new at this and i could really care less if someone calls me an idiot, i'm going to ask...
how do you resize your flash file to fit a small/GIANT animation etc? please someone for the love of god help...
View Replies !
View Related
Resize Document Size In Flash
i know.... this is probably one of the most ridiculous questions, and is probably RIGHT in front of my face, or should be self explanitory, but since i'm new at this and i could really care less if someone calls me an idiot, i'm going to ask...
how do you resize your flash file to fit a small/GIANT animation etc? please someone for the love of god help...
View Replies !
View Related
SWF Header File Size Field
Hi All,
Is it possible to send an SWF file without the exact value of its uncompressed size in the header?
I want to dynamically change SWF files and I don't always know their final size when I'm starting to send them...
Thanks in advance,
Yeeeev
View Replies !
View Related
Flash Movie Resize Monitor Size
I'm building a site where I have a flash inside of a table the table is 1020x720, i want the flash to automatically resize to the users monitor window........how do I do that, do I need to take it out of the table or how do I go about accomplishing this........is there action script involved??
View Replies !
View Related
Slideshow Pro Images Not Fitting Header Size
I've been playing with this for a while. I have a header built in slideshow pro at 750 X 150. The images are auto sizing maybe to 200 X 150. I've tried the link to the images in ssp director and just using an images.xml and loading the images into the same folder as the .swf .fla.. Whatever i seem to try to my depth in knowledge does not change the image size. In the component inspector i have it set to scale the image. In the publish settings of flash i have it set to 750 X 125 pixels for the image on the html tab. Some other minor things, but what ever i do the images stay about the same size centered and do not size the full header or bigger than about 200 width.
Any ideas? I can load the code when i get home in a little.
View Replies !
View Related
Flash Movie Resize Atuomatically To Any Viewers' Browser Size?
my flash site when viewed on PC is huge, on mac its fine. is there a way to have it
automatically resize to fit any browser size? theres got to be some sort of solution for this, without me having to recreate or resize and lose image quality of the work.
please help im sort of at the end of my rope after hours of research online for an answer.
thanks
View Replies !
View Related
Mc Resize For Different Size Photos
I currently have an MC that loads an image. I currently use this code to ensure that a certain aspect ratio is maintained.
ActionScript Code:
targetMC._width = 600;
targetMC._yscale = targetMC._xscale;
if(targetMC._height > 400)
{
targetMC._height = 400;
targetMC._xscale = mc._yscale;
}
}
This sets the width to 600 and the width to 400 when the width exceeds 400.
I have 2 photo sizes. 1440x960 and 960x1440. I need the MC to be able to resize for both images. Is there a way to make it resize properly without stretching out the 960x1440.
The 1440x960 is resized to 600x400
I guess the 960x1440 would have to become 400x600
View Replies !
View Related
Resize Dynamic Jpg From Xml, In Max Size
What I want to do is load external jpgs and display them within a predifined box. I use the Kirupa's code for the image loading part ( http://www.kirupa.com/developer/mx20...otogallery.htm )
But the original images are larger than the display box. I want to rescale them with actionscript, and keep the size ratio of it. But the original pictures don't have the same size.
Does someone has a mathematical equation (or a link) to solve this problem?
Thanks
View Replies !
View Related
Size One MC Relative To Another - Resize Parent MC...
I know how to set the w/h of a childMC with it's parentMC, but how do I keep the "ratio" when resizing parentMC. I'm wanting the child to be 5 pixels smaller than the parent. I'm eventually wanting the child to scale down to the 5 pixels, but right now I'm needing this little irritation helped
I thought when I put:
n=5;
<childMC>._xscale -= n;
<childMC>._yscale -= n;
or
n=5;
<childMC>._xwidth -= n;
<childMC>._ywidth -= n;
it would work, and it does, as long as the parentMC is not resized.
View Replies !
View Related
Resize Box According To Text Field Size
Hello!
does anyone know how to resize a box according to a dinamic text field size?
Let's make it clear...
I have a text field that loads random words. I'd like to resize my box according to the word size. This box is just a graphic/MC in the layer bellow my text field,
thanks a lot
View Replies !
View Related
Image Resize With Window Size
What I’m looking for is to have an image Size up and down ... along with your window size.
Uploading a .swf file without and html to go with it gives you this effect, let me show ya..
Example
i just want to script this effect and have it set to two specific sizes in which it will range up and down... I just don’t know where to begin. Can anyone help?
View Replies !
View Related
Stage Resize - Minimum Size
Hi. Happy easter!
I'm building a fluid flash layout with the help of a stageListener object. Some of the elements resizes with the stage, others stay the same. When the Stage drops below a certain size (700 x 550px) I need all elements to stop resizing to avoid things running into each other.
I've tried putting an if statement inside the stageListener object, but onResize only occurs when I release the mouse after resizing. It's giving me problems, since the moment you release the mouse you might have resized the screen below my minimum limits.
Any ideas how I might set it up?
View Replies !
View Related
Size One MC Relative To Another - Resize Parent MC
Last edited by bchalker : 2003-07-25 at 07:42.
I know how to set the w/h of a childMC with it's parentMC, but how do I keep the "ratio" when resizing parentMC. I'm wanting the child to be 5 pixels smaller than the parent. I'm eventually wanting the child to scale down to the 5 pixels, but right now I'm needing this little irritation helped
This is what I have on frame 1 of the box (blockA and blockB):
-------------
var n;
n=5;
//align squares
xpos=blockA._x=blockB._x;
ypos=blockA._y=blockB._y;
//set w/h variable
width=blockA._width;
height=blockA._height;
//set blockB w/h relative to blockA - n
blockB._width=width-n;
blockB._height=height-n;
stop();
--------------
It's fine until I begin scaling. Is the code correct?
View Replies !
View Related
Movie Size, Resize And Timing Question
I know its a newbie question and it might seem trivial to you guys -
but there are few simple things I havent figured out about movieclip...
now, remember Im talking action script here - that is - dynamic operation accoding to content.
1. how do I know the final size of a movie on the screen? I mean supposed its an image I just loaded, and I want to be able to tell the size, to resize it in case its too big...
2. how do I resize a movieclip?
3. suppose I wanna make the resize animated. that is to create it over a period of 2 seconds or so, is it possible in actionscript? or do I have to contain it as part of the movie frames?
any hint, explanation or reference would be warmly appreciated...
Niva
View Replies !
View Related
Resize A Frame To Image Size With A Button?
I am creating an image gallery and I have created a white frame with a drop shadow that is suppose to represent a mattboard for my images. I have some images that are horizonal and some that are vertical and I'm trying to animate the frame so that if you click on (ex.) image 1 that is horizonal and then you click on image 5 that is vertical the frame sizes to the image with a border like a mattboard. I have 10 images and 10 buttons. I tried to create a movie resizing the frame and just did a gotoAndPlay(_root.frame.gotoAndPlay(2)); but it does not seamlessly resize. If the image I'm looking at is already horizonal and I click on another horizonal picture the frame should remain the same and it doesn't. It should only resize when going from vertical to horizonal and visa versa. I'm just stuck!!!
Thank you in advance for any help you can give.
Oh...and the images fade in after the frame reshapes...but the fade in isn't the problem.
View Replies !
View Related
Resize Dynamic Text To Fixed Size
Hi
I have a problem...
I want to create a sort of image out of some input text.
The problem is:
In frame 1,
you can input a line of text of max 20 characters for example you can write 5 characters or you can write 15 characters.
Then you press a submitbutton (or something)
and in frame 2
You should see a fixed size "image" of your text, the imagesize allways is 400 by 50 pixels, and the text shall fill exactly that area. Meaning that no matter if the text is 5 character or 15 character long, the size of the word(s) should be 400 by 50 pixels.
How can I convert that Dynamic text to a kind of image that i can set the exact size to.
View Replies !
View Related
Resize Movie At Image Size (while Loading) ?
Hello you all...
I was wondering if there is a sample out there or if someone could help me out. I am trying to load a single image into a swf, while it loads the height and length of the movie will resize itself to the image. I want to use this for friend of my that loads his images up to his webpage without copyright protection but he really needs some...
Although I know something about actionscripting but this is going over my head for now... Still learning though!
Hopefully someone can help me out with this one i'd be greatly thankfull!
Many thanks in advance...
Dennis
View Replies !
View Related
How To Resize An Image Depending On The Browser Size? - Pls Help
Hi
I'm wondering how to resize a background image depending on the browser window size, so that the user always can view 100% of the image. But it should be proportional scaling.
You can view a perfect example of this over at http://www.puma.com/
The effect I want is that the background scales dynamically dependeing on the browser window size but the size of the content stays static.
I have no problem setting the size of the content static using listeners with Stage.scaleMode = "noScale";
But I have no idea on how to scale the background image (MC) proportionally depending on the browser window size.
Any help would be appreciated
Thanks
View Replies !
View Related
Resize Movie In Relation To Window Size
Hey Guys,
I was wondering if anyone could help me figure out how to resize a movie based on the window size. It seems as it would be as easy as making the movie 100% proportional to the broswer window, but it only resizes the flash document, not the content in it. Is there a way to have the entire thing resize?
here is what i'm working on (inprogress)
http://www.vespera.com/dunham_farm_book.html
I'd like the flash file to resize with the browser window.
Any suggestions?
Thanks,
Moez.
View Replies !
View Related
[F8] Resize Shape Tween According To Stage Size?
Hi
I was wondering if there is a way to resize a simple shape tween according to the stage size. for example is it possible to resize a rectangle ( which grows to a biger rectangle using shape tween) to match stage width and height minus 100 (this should occur after shape tween is finished and when stage resizes). I don't know if this makes any sense but let me know anyway.
Thanks
View Replies !
View Related
Auto-resize Font Size To Fit Text Box.
I have some dynamic text enter the stage. The size of the box has to stay the same size. Rather, I would like the size of the font to automatically change depending on the amount of text entered (if it is a short phrase, the font will be big, if it is long, then the font will be small).
How is this accomplished? I'm brad new to flash but I am trying to do my research as best as possible.
Thanks for any help!
View Replies !
View Related
Resize Component Based On HTML Frame Size
I have an instance of the tree component inside an HTML frame(frame named "2" in the diagram below). I want to dynamically assign the height of the component based on the available height of the frame that the movie is embedded inside. The horizontal dimension is fixed at 200px, so that is of no concern. The frameset looks like this: (numbers = name of each frame)
HTML frameset:
----------------
|//////(1)////////|
----------------
|/////|///////////|
|/////|///////////|
| (2) |/// (3 )///|
|/////|///////////|
|/////|///////////|
----------------
I know their are some system.capibilities objects in FlashMX but I am not sure how to use them to achieve this.
View Replies !
View Related
Resize Font Base On Text Field Size
Hi I am trying to create a new movie clip, add a text field to it then resize the font based on the size of the text field, I have this code, but it doesn't seem to work could someone point out where I am going wrong?
value_arr is just an array of strings.
Code:
var mc_arr:Array = new Array();
for(i=0; i<value_arr.length; i++){
var value_mc = _root.createEmptyMovieClip("value_mc"+i,_root.getNextHighestDepth());
value_mc._width = 25;
value_mc._height = value_mc._width;
value_mc.createTextField("value_txt",0,0,0,value_mc._width,value_mc._height);
value_mc.value_txt.wordWrap = true;
value_mc.value_txt.text = value_arr[i];
var txt_fmt = new TextFormat();
txt_fmt.font = "arial";
txt_fmt.size = 14;
while(value_mc.value_txt.textWidth >= value_mc.value_txt._width){
txt_fmt.size -= .5;
value_mc.value_txt.setTextFormat(txt_fmt);
}
value_mc._x = 50;
value_mc._y = value_mc._x;
mc_arr[i] = value_mc;
}
View Replies !
View Related
Auto Resize Image To Movie Clip Size?
How can i make a movieclip load an external .jpg image and resize the image to fit the moviclip? or set the image to a certain size like 50x50 pixels? The movieclip is called "image".
I've put the code below inside the moveclip on frame 1 and that loads the image, but how can i resize it?
Code:
this.loadMovie("pic1.jpg");
Thanks
View Replies !
View Related
Swf Stop Resize On Original Swf Size- Scroll Shows Up
I have one problem, i am not Sure how to define it to search for it on google, i'm sure that is a lot of answer on the internet, but i will try here...
How to stop resizeing my fullsrean swf movie when the size of the browser reach the original size of swf, after that if i resize browser to be smaller scroll will bi show up....
example.... http://www.rolex.com/en/
my AS2 code is
Code:
//start Stage re-size code
Stage.align = "TL";
Stage.scaleMode = "noScale";
// ---> Create a new listener object
var stageListener:Object = new Object();
// ---> Define the resize function...
stageListener.onResize = function() {
// ---> first, get the new dimensions of the stage....
var stageWidth:Number = Math.round(Stage.width);
var stageHeight:Number = Math.round(Stage.height);
trace("Stage size is now " + Stage.width + " by " + Stage.height);
// ---> now, set the footer BG w & h to the stage dimensions...
footerBG_mc._width = stageWidth;
//footerBG_mc._height = stageHeight;
footerBG_mc._x = 2;
footerBG_mc._y = stageHeight-25;
// ---> now, set the footer links to the stage dimensions...
footerLinks_mc._x = (stageWidth/2) - (footerLinks_mc._width/2) ;
footerLinks_mc._y = stageHeight-18;
// ---> now, set the background clip alignment to match stage...
wallPaper_mc._x = (stageWidth/2) - (wallPaper_mc._width/2);
//wallPaper_mc._y = stageHeight/2;
// ---> now, size the outLine_mc to the stage dimensions...
//outLine_mc._height = stageHeight-2;
//outLine_mc._width = stageWidth;
outLine_mc._x = (stageWidth/2) - (outLine_mc._width/2);
//outLine_mc._y = (stageHeight/2) - (wallPaper_mc._height/2);
};
// ---> Apply the listener...
Stage.addListener(stageListener);
// ---> Run the function...
stageListener.onResize();
//--------------------//
Mouse.hide();
var followMe:Object= new Object()
followMe.onMouseMove=function(){
newMouse._x=_xmouse;
newMouse._y=_ymouse;
}
Mouse.addListener(followMe)
and on the HTML page is
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<style type="text/css">
#center { position: absolute; top: 50%; width: 100%; height: 1px; overflow: visible }
#main { position: absolute; left: 50%; width: 100%; margin-left: -50%; height: 600px; top: -300px; background-color:"#cccccc"}
body {
overflow-x:visible;
background-color: #333333;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
<title>Centered</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div id="center" >
<div id="main">
<img src="950x10.jpg" alt="" />
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','100%','height','600','src','main','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="950" height="600">
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="950" height="600"></embed>
</object></noscript>
</div>
</div>
</body>
</html>
my page
http://www.dupli.co.yu/index22.html
View Replies !
View Related
Dynamically Resize Movie Clip To Stage Size
I am trying achieve this:
-click on a movieclip and it resizes to the size of the stage.-
I have gone round in quite a few circles trying out different combinations of script but can't get any to work. The basic premise is:
Code:
onClipEvent(load){
this.onRollOver = function(){
my_mc._width = Stage.width;
my_mc._height = Stage.height;
}
}
It doesn't work, so I have tried a few variations of
Code:
stageListener.onResize
but nope, my_mc just sits there and in any event I am not sure the resize listener is what is needed
I am perhaps missing something painfully obvious.....
View Replies !
View Related
Resize Loaded Image To The Size Of The Constantly Resized Container
Hi all!
Here's my problem:
I have a function that redraws the container clip every frame. While the function is running I need to download an image inside the container and to resize the image to the size of the container. The particular problem is that if the picture is bigger than the container, when it'll be downloaded the size of the container will be the same that of the picture.
Here's a simplified code:
Code:
var MCL:MovieClipLoader = new MovieClipLoader();
var MCLL:Object = {};
MCLL.onLoadComplete = function(mc:MovieClip){
/*
When this is called, the mc's width and height are 0
*/
}
MCL.addListener(MCLL);
var container:MovieClip = _root.createEmptyMovieClip("container", 0);
container.h=5;
container.w=5;
_root.onEnterFrame = function(){
container.clear();
container.beginFill(0, 100);
container.moveTo(0, 0);
container.lineTo(container.w, 0);
container.lineTo(container.w, container.h);
container.lineTo(0, container.h);
container.lineTo(0, 0);
container.endFill();
container.w+=5;
container.h+=5;
}
MCL.loadClip(container, "image.jpg");
Thank you for any help.
View Replies !
View Related
|