
Originally Posted by
welchyboy
Yes you are very right...That is my problem. I think I am doing something wrong I have never seen a flash file 2600px wide which this one is. Like I said I did shorten it to about 887px by 110 px which will make it a LOT smaller however I need the flash file to ALWAYS fit between the page margins of the logowrapper.
One design concept is to keep it simple and small. Faster loading means they may actually see what you spent so much time on. This applies to flash as will. Using images inside of flash increases it's size. Best practice is to size your images just to what you need, no smaller or larger then that. To make something totally free of size distortion, don't use any images at all.
I'll load a image and then begin to draw and pant a duplicate image within flash making a raster image. Once I'm done, I'll delete the jpg image. This leads to a design that can be scaled to any size I want with no distortions. For some of my banners that I want to load fast, it's all done in action script with maybe a background color.
As for your concerns about screen size, code for the average size, or create a resolution sniffer. Check for res and code your css for a set size screen and change size of things. To hit sizes from PDA's on up to TV's, your going to need to code different pages for each and redirect.
The sniffer below is just a simple one I used to check for browser and load a css that works for them. Half the code was deleted to down size my message.
Code:
<!-- begain detect witch CSS to use
var ua = window.navigator.userAgent;
var tTest = 0 // test for all others
if(ua.indexOf("WebTV")>0) { //for webTV users
ua = "WebTV"
tTest = 1
document.write('<style type="text/css"><!--');
document.write('p { font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-size: 80%}');
document.write('a:link { color: #0000FF; text-decoration: none; font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-weight: bold}');
document.write('--><\/style>');
//alert(ua);
}
else if(ua.indexOf("MSIE")>0) { //for IE users
ua = "MSIE"
tTest = 1
document.write('<style type="text/css"><!--');
document.write('p { font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-size: 100%}');
document.write('a:link { color: #FF0000; text-decoration: none; font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-weight: bold}');
document.write('--><\/style>');
//alert(ua);
}
else if(ua.indexOf("I")>0) { //for Netscape users
ua = "I"
tTest = 1
document.write('<style type="text/css"><!--');
document.write('body { background-color: #FFFFFF; background-image: url(Graffics/bakgrond.gif)}');
document.write('p.navigation-bar { background-color: #00ffff; border: medium #0000ff groove; padding: 1%; text-align: center; font-size: 90%; background-image: url(Graffics/flamback.gif)}');
document.write('--><\/style>');
////alert(ua);
}
else if(ua.indexOf("Gecko")>0) { //for Mozilla/Firefox users
//alert(ua);
ua = "Gecko"
tTest = 1
document.write('<style type="text/css"><!--');
document.write('body { background-color: #FFFFFF; background-attachment: fixed; background-image: url(Graffics/bakgrond.gif) }');
document.write('a:link { color: #FF0000; text-decoration: none; font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-weight: bold}');
document.write('--><\/style>');
//alert(ua);
}
else if(tTest == 0){ //default for all others
document.write('<style type="text/css"><!--');
document.write('p { font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-size: 100%}');
document.write('a:link { color: #FF0000; text-decoration: none; font-family: "Comic Sans MS", "Times New Roman", serif, Times; font-weight: bold}');
document.write('--><\/style>');
//alert(ua);
}
// end -->
Sorry for getting off track with web design in stead of flash designs. I've just installed a banner on my web site that's 300x75 expanded to 500x125. The only true image is the boy in the ghost costume.
Bookmarks