| View previous topic :: View next topic |
| Author |
Message |
kitina
Joined: 17 Sep 2006 Posts: 17
|
Posted: Sun Sep 17, 2006 11:26 am Post subject: adding a backg in flash |
|
|
Hi.
I`m new in all this flash business and I know absolutly nothing about making a HTML page. So I need some help please. What I want to do is full flash site that will rezize after the browser. And I also want to add a gradient backg to my flash site. Can I do this in flash?
I`ve manage to get the flash to resize when I shrink down my browser but the backg is a total mistery to me.
So, if anyone could explaine it to me in a way that I will understand I`d be very gratefull.
Tks. |
|
| Back to top |
|
 |
|
|
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Mon Sep 18, 2006 9:00 pm Post subject: Re: adding a backg in flash |
|
|
| Just add a layer at the very bottom with a picture of a gradient... |
|
| Back to top |
|
 |
Samuel Rounce 100+ Club

Joined: 30 Oct 2005 Posts: 116 Location: London, UK
|
Posted: Wed Sep 20, 2006 5:46 pm Post subject: Re: adding a backg in flash |
|
|
and... if you want the gradient to resize to the dimensions of the movie copy the following actionscript to the first frame of your movie.
| Code: |
onEnterFrame {
sWidth = Stage.width;
sHeight = Stage.height;
fillType = "linear";
colors = [0xFF0000, 0xFFFF00];
alphas = [100, 100];
ratios = [0, 255];
matrix = {matrixType:"box", x:0, y:0, w:sWidth, h:sHeight, r:90/180*Math.PI};
_root.lineStyle(1, 0xFFFFFF, 0);
_root.beginGradientFill(fillType, colors, alphas, ratios, matrix);
_root.lineTo(sWidth, 0);
_root.lineTo(sWidth, sHeight);
_root.lineTo(0, sHeight);
_root.lineTo(0, 0);
_root.endFill();
} |
|
|
| Back to top |
|
 |
kitina
Joined: 17 Sep 2006 Posts: 17
|
Posted: Thu Sep 21, 2006 9:16 pm Post subject: Re: adding a backg in flash |
|
|
tks
I`ll trie to see how it works  |
|
| Back to top |
|
 |
|
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums. Click here to Register
If you are a current member here on DEVPPL, please login below:
|
|
|
|