Ask a Question related to Macromedia Flash, Design and Development.
-
radioactiveman #1
background color?
any way to use tiled wallpaper image instead of choosing regular
background colors?
radioactiveman Guest
-
Background color of words in PDF
Hi, I am developing an application where i need to find specific words in a PDF file and highlight them with some background color. It would be... -
Changing Background color in swf
Any help will be apriciated. How to make choose color background in movie. I would like to make a option for visitors to choose background... -
Background Color in InDesign
I am preparing a card for off site printing. I want the color of the card to be black, therefore, on the screen I want to have the background black.... -
can't see background color
Hello, I'm using MX, and whenever I open either a new or existing web page, the background color of the page is a light blue color, when they... -
reverse color and background
I have a flattened green-color logo image on a white background, I want to change of the color of background to dark green and the logo color to be... -
Martin Voegeli, vom #2
Re: background color?
radioactiveman wrote:
One can use a little script like this:> any way to use tiled wallpaper image instead of choosing regular
> background colors?
// how many tiles horizontally
var intTilesHorizontal = 4;
// how many tiles vertically
var intTilesVertical = 2;
// "horizontal" loop
for (var i = 0; i<intTilesHorizontal; i++) {
// "vertical" loop
for (var j = 0; j<intTilesVertical; j++) {
// unique name for new clip
var strName = "clipTile"+"X"+i+"Y"+j;
// unique depth for new clip
var intDepth = 100*i+j;
// create new clip (link "ClipTile" in the library)
// "clipBackground" is nothing but an empty clip
clipBackground.attachMovie("ClipTile", strName, intDepth);
// position new clip
clipBackground[strName]._x = clipBackground[strName]._width*i;
clipBackground[strName]._y = clipBackground[strName]._height*j;
}
}
Have a look at an example (with source):
[url]http://birdy1976.com/2003/tiled-wallpaper-or-background.html[/url]
Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398
Martin Voegeli, vom Guest
-



Reply With Quote

