Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


adding a backg in flash



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
kitina



Joined: 17 Sep 2006
Posts: 17

PostPosted: Sun Sep 17, 2006 11:26 am    Post subject: adding a backg in flash Reply with quote

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
View user's profile Send private message
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Mon Sep 18, 2006 9:00 pm    Post subject: Re: adding a backg in flash Reply with quote

Just add a layer at the very bottom with a picture of a gradient...
Back to top
View user's profile Send private message Send e-mail AIM Address
Samuel Rounce
100+ Club


Joined: 30 Oct 2005
Posts: 116
Location: London, UK

PostPosted: Wed Sep 20, 2006 5:46 pm    Post subject: Re: adding a backg in flash Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
kitina



Joined: 17 Sep 2006
Posts: 17

PostPosted: Thu Sep 21, 2006 9:16 pm    Post subject: Re: adding a backg in flash Reply with quote

tks


I`ll trie to see how it works Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
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:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap