Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Please Help With Duplicate Background [renamed]



I've read the tutorial on duplicate background http://www.kirupa.com/developer/mx20...background.htm.. but I can't make this work on(press)... here's the code:on(press){ tellTarget("_level0.fill"){tileBG = function () {tile_width = 100;tile_height = 100;//x_max = Math.round(Stage.width/tile_width);y_max = Math.round(Stage.height/tile_height);trace(x_max);trace(y_max);for (x=0; x<=x_max; x++) {for (y=0; y<=y_max; y++) {bg = _root.attachMovie("square", "bg"+x+y, this.getNextHighestDepth());bg._x = tile_width*x;bg._y = tile_height*y;}}};tileBG(); } }Further more my movie clip has an irregular shape //how can I make the background fill only that shape?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-19-2005, 06:52 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Duplicate Movie Problem [renamed]
i want to duplicate a movie clip b1 and create ball1 to manipulate them with setproperty, and the same for b2 but this one into ball2. when i execute this code it would only do it for b1 and not for b2. can anyone help???

Julie(^_^)
var x1=50
var y1=100
var x2=60
var y2=89

duplicateMovieClip (this.b1,ball1,1);
setProperty(pelota1,_x,x1);
setProperty(pelota1,_y,y1);

duplicateMovieClip (this.b2,ball2,2);
setProperty(pelota2,_x,x2);
setProperty(pelota2,_y,y2);

Loading Random Background Problems [renamed]
I am looking for someone skilled with Flash, a Wizard hopefully...

I have been trying to create a .swf that loads a Random background image (like the one on Kirupa's MX tutorial on this site) ... and my skills are just too insuficient.. I got it working but the images loads in sequence too fast and my general composition and work is kinda messy...

Is there someone here who is interested in helping out ?

The project is for our website, we are a non-commercial gaming clan, and alot of programmers, but none of us have any serious Flash experience. We are able to advertise/link back to anyone who might wanna help us out.

Contact me on email: therseus@gmail.com

Loading Random Background Problems [renamed]
I am looking for someone skilled with Flash, a Wizard hopefully...

I have been trying to create a .swf that loads a Random background image (like the one on Kirupa's MX tutorial on this site) ... and my skills are just too insuficient.. I got it working but the images loads in sequence too fast and my general composition and work is kinda messy...

Is there someone here who is interested in helping out ?

The project is for our website, we are a non-commercial gaming clan, and alot of programmers, but none of us have any serious Flash experience. We are able to advertise/link back to anyone who might wanna help us out.

Contact me on email: therseus@gmail.com

Q. About Duplicate Background Tut
If for eg. we have the stage set to 100% with noscale.How can i duplicate the mc across the full width of the movie.

I thought that Stage.width would do this, but i was wrong

Can anybody help pls?
This is Kirupa's original source

ActionScript Code:
function tileBG () {tile_width = 34;tile_height = 34;// x_max = Math.round (Stage.width / tile_width);y_max = Math.round (Stage.height / tile_height);trace (x_max);trace (y_max);for (x = 0; x < x_max; x++) {for (y = 0; y < y_max; y++) {bg = _root.attachMovie ("square", "bg" + x + y, this.getNextHighestDepth ());bg._x = tile_width * x;bg._y = tile_height * y;}}}tileBG ();

Duplicate Background HELP
Followed the step by step instructions to create a duplicate or tile background in flash MX 2004 as described on this page:
http://www.kirupa.com/developer/mx20...background.htm

The tile works beautifully with one glaring exception, it covers all the content! How do I get the tile on the background?
I'm a flash (and forum) novice so any help would be wonderful!

Tile Background With Mc (duplicate)
Hi guys looking some for help... again.

I got and idea but i don't know how to start it.

I got an mc 15*15 I want to duplicate it to cover the bg of the movie.
I am using Stage.width and Stage.hieght to return the width and height of the stage then use that to set how many times to duplicate the clip. i know what i want to do but jst don't know how to code it. Can someone help me with this.

cheers

Tile Background (Duplicate)
Hello there,

I refer to your tutorial topic of the above-mentioned subject (http://www.kirupa.com/developer/mx20...background.htm). I've sucessfully created the tiled background but when I try to create an object or button over the background, it doesn't appear on the test screen. Why is this so? Can anyone help me?

Tq.

Duplicate Background Problem , Please Help
hi for everyone
l have just utilized from this tutorial
http://www.kirupa.com/developer/mx20...background.htm
it was good, but when l tried to add some picture on other layer which located above the layer that including the actionscript of duplicatingbackground mc, l couldnt see it, it was otomatically located at the backside, so what was the problem. how can l write or add something on this tiled layer? thanks

Duplicate Background Question
Hi, I followed the tutorial on Duplicate Bgrounds and it worked great, only the duplicated bground pattern is in front of all my other animation and won't budge, even when I put it on a layer below the other animation!
Not sure why this is occuring or why it's not arranging correctly.
Help!
Kevin

Duplicate Background Tutorial
Hey there,
I'm trying to fill a movieclip with a seamless pattern, so in essense its pretty much the same as Kirupa's Duplicate Background tutorial. I'm having trouble converting the AS from filling the background to filling a movieclip

Here's the original code:

ActionScript Code:
tileBG = function () { tile_width = 34; tile_height = 34; // x_max = Math.round(Stage.width/tile_width); y_max = Math.round(Stage.height/tile_height); trace(x_max); trace(y_max); for (x=0; x<=x_max; x++) { for (y=0; y<=y_max; y++) { bg = _root.attachMovie("square", "bg"+x+y, this.getNextHighestDepth()); bg._x = tile_width*x; bg._y = tile_height*y;}}}; tileBG();


I've tried replacing _root with the name of my clip, but that didn't seem to do the trick, if anyone can point me in the right direction I'd appreciate it

J.

Tile Background With Mc (duplicate)
Hi guys looking some for help... again.

I got and idea but i don't know how to start it.

I got an mc 15*15 I want to duplicate it to cover the bg of the movie.
I am using Stage.width and Stage.hieght to return the width and height of the stage then use that to set how many times to duplicate the clip. i know what i want to do but jst don't know how to code it. Can someone help me with this.

cheers

How Create Background From One Mc? Duplicate Mc Probl.
i tried to make background of one mc, but i cant create condition for duplicating the movie

can you help me?

i can create only horizontal line on mcs, but how go on?

Plz see the attached file.

How Create Background From One Mc? Duplicate Mc Probl.
i tried to make background of one mc, but i cant create condition for duplicating the movie

can you help me?

i can create only horizontal line on mcs, but how go on?

Plz see the attached file.

Duplicate Background - Tile Position
I was reading the Duplicate Background tutorial (http://www.kirupa.com/developer/mx20...background.htm) on how to make an image tile in the background of a SWF tile. I am trying to figure out how to position that tile so that it is centered instead of starting at the top left. I realize it must be in this part of the code:

bg._x = tile_width*x;
bg._y = tile_height*y;

but i'm not real sure on how to make it actually work. Any help would be much appreciated.
Thanks,
Aaron

How Create Background From One Mc? Duplicate Mc Probl.
i tried to make background of one mc, but i cant create condition for duplicating the movie

can you help me?

i can create only horizontal line on mcs, but how go on?

Plz see the attached file.

Problem With :Tile (Duplicate) Background, And .getNextHighestDepth
Hi everybody !

I'm new to Kirupa.. That's a webpage that help me a lot because I'm really new to Flash and I need a looot of knowledges... Sorry for my english, that's not so good but I will try to explain my problem as best as I can.

I'va got a problem with a nice tutorial : Tile (Duplicate) Background

I could make it as I wanted.. And I found a system to execute the fonction when I resize, deleting all the moviesclip created and making others.
But, This fonction is using .getNextHighestDepth for each ovie clip created... and the background is not background, It's always in front of the stage !
May I use something with levels ?
May change depth ?

I could not find the solution...

Any comments or solutions would be so nice ! Thanks a lot and merry christmas.

Here are my fonctions :

pattern = "square"

tileBG = function () {
tile_width = 22;
tile_height = 22;
//
x_max = Math.round(Stage.width/tile_width);
y_max = Math.round((Stage.height-148)/tile_height);
level1.trace(x_max);
level1.trace(y_max);
for (x=0; x<=x_max; x++) {

for (y=0; y<=y_max; y++) {

bg = _root.attachMovie(pattern, "bg"+x+y, _level0.getNextHighestDepth());
bg._x = tile_width*x;
bg._y = 90+tile_height*y;
bg._alpha = 40


}
}
}
resizingBG = function() {
sliss = new Object();
sliss.onResize = function() {
for (x=0; x<=x_max; x++) {
for (y=0; y<=y_max; y++) {
eval ("bg"+x+y).removeMovieClip();
}
}
tileBG();
}
Stage.addListener(sliss);
sliss.onResize
}

removeBG = function() {
for (x=0; x<=x_max; x++) {
for (y=0; y<=y_max; y++) {
eval ("bg"+x+y).removeMovieClip();
}
}

}

Duplicate "background"
Hey there!
I've made a gradient background image (background.gif) for html use, with the following size (width: 2 height: 1500) - the thing is, that I would like to translate the following html code into flash:


PHP Code:



<body background="background.gif"> 




Which means, that I need to know how to duplicate (using AS) the background MC (background.gif converted to MC) let's say 50 times, starting with the first MC with a x value of 0, second MC with a x value of 2.. and so on!
Hope you got the idea, else take a look at the attached .fla to see what I'm thinking of..

Any help would be nice!

Duplicate "background"
Hey there!
I've made a gradient background image (background.gif) for html use, with the following size (width: 2 height: 1500) - the thing is, that I would like to translate the following html code into flash:


PHP Code:



<body background="background.gif"> 




Which means, that I need to know how to duplicate (using AS) the background MC (background.gif converted to MC) let's say 50 times, starting with the first MC with a x value of 0, second MC with a x value of 2.. and so on!
Hope you got the idea, else take a look at the attached .fla to see what I'm thinking of..

Any help would be nice!

Duplicate Movieclip, Drag Duplicate, Leave Original Behind
Hello all,

I have been searching frantically for an answer to this. I know it has to be easy....

I want to duplicate a movieclip on press and also drag the duplicate, leaving the original behind. I've attached a sample of what I'm doing. Does anyone have any ideas? Is there a way to target the duplicated movieclip to drag that? And leave the original in it's original location?

Any help, guidance, nudging would be greatly appreciated. I've been trying to figure this out for hours.

Thanks,
jessicuh

Having Difficulties Trying To Change White Background Of Flash Menu Into Transparent Background
How would I best go about changing a Flash menu that currently has a white background into a Flash menu with a transparent background?

I want to take that menu (with a transparent background) and place it over a side-bar image that i've got in DW.

Any help/advice'd be greatly appreciated.

[F8] List Component - Transparent Background? Or A Custom Bitmap Background?
I have a custom bitmap I'd like to use as the background for my List Component in Flash 8 Pro.

I can't for the life of me find any documentation on how to make the list component background transparent or how to put a bitmap in the background of it.

Can anyone help with this? Please!

FOO

Loading Two Swf's Next To Each Other [renamed]
ok wow!! i need HELP big time with some stuff! first of all..im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?


also im wanting to make a text scroller with JUST the slider. how can i go about this?

p.s.
would appreciate just verbal help b/c i would like to try to do this without using someone elses stuff ...if thats ok...?!

If/else Problems [renamed]
lo all. im having trouble with a menu im workin on.
ages ago i learned how to use if statments to control a menu system like this one, but i've lost all my source files and cant remember much of the script, i remember settin variables on the buttons then usin if/else/else if actions to target frames (if button pressed = button 1 goto and play etc...) if you got 5 mins to look at the fla you shud see what im trying to do...basic i know...im just a noob. also i think i learned it in v5, the actions may have changed in v6 /v7. if anybody gets what i mean from this (vague) post and knows of any nice tutes please please let me know!
any help greatly appreciated!!
kev.

p.s. im usin v6

How Is This Menu Done? [renamed]
If you go to the www.panasonic.co.uk, you will see this amazing menu if you click "in the home & on the move". Can someone tell me how this is done please

best regards

Cd Rom Issues [renamed]
Help!!, I'm not very good at scripting, and I have been trying all day to find the answer to this simple operation, so this is like a last hope. I am developing a cdrom, and I have a main page with 8 buttons, which I want the user to click where they want to go and navigate back to and from this page. Is it better to make each of the 8 sections on new scenes, or would a separate movie for each be better. I feel that a separate movie would be better as the file size is quite large on some of the sections, but i'm not sure and could really use some advice. If I do make separate movies, then please what is the script for the buttons to navigate to the movies (i guess i would be loading .swfs'). I really need some help with this please.

Help With Sound (renamed)
I tried performing this tutorial:
Creating a Volume Control Slider http://www.kirupa.com/developer/mx/volume_slider.htm

I added my song to the library and exported the file to my desktop. The swf file plays perfectly on my desktop...the slider, stop and play button all work. The problem arises when i upload to website. It appears on the site but it doesnt play. It only says that it is downloading song and just stays like that for a considerable amount of time. I cant understand why it works on the desktop and not on the website. I think it is a quick fix... can someone can just tell me what i am doing wrong?

How To Color A Mc [renamed]
Hi Guys,

I wonder if you can help me out on this....

I want to create a color palette one side and on the other has like a white board so when a user select a color from the palette that color will appears on the white board.... How can you do that? Can you supply me a sample?

Thank you.

Bobby

Published Swf Is Way Too Big [renamed]
I need help publishing a .fla file.

any help is appreciated.

I've been toying some time now with Flash MX and websites, but never reach the point where I need to publish the .fla properly onto the net. I've reached that point now.

My problem is getting the final movie to work probaly in the browser. The final .swf movie is 2,81mb, because it contain a lot of pictures. Is that too much? When the .html and .swf is uploaded to ftp, the screen goes black in the browser, like the background color of the site, and it seems like taking forever to load the site and in the end nothing shows.

So what is the proper way to publish to fix this?

*** Renamed *** Masking Help
Is there no way I can do this with multiple MCs, each one moving around independently, but masked by the same lens MC?

Loading Two Swf's Next To Each Other [renamed]
ok wow!! i need HELP big time with some stuff! first of all..im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?


also im wanting to make a text scroller with JUST the slider. how can i go about this?

p.s.
would appreciate just verbal help b/c i would like to try to do this without using someone elses stuff ...if thats ok...?!

If/else Problems [renamed]
lo all. im having trouble with a menu im workin on.
ages ago i learned how to use if statments to control a menu system like this one, but i've lost all my source files and cant remember much of the script, i remember settin variables on the buttons then usin if/else/else if actions to target frames (if button pressed = button 1 goto and play etc...) if you got 5 mins to look at the fla you shud see what im trying to do...basic i know...im just a noob. also i think i learned it in v5, the actions may have changed in v6 /v7. if anybody gets what i mean from this (vague) post and knows of any nice tutes please please let me know!
any help greatly appreciated!!
kev.

p.s. im usin v6

How Is This Menu Done? [renamed]
If you go to the www.panasonic.co.uk, you will see this amazing menu if you click "in the home & on the move". Can someone tell me how this is done please

best regards

Save As .txt? [renamed]
i'm developing an application,, of course using flash mx 2004..---interactive program.....
i wonder what else the script that i can use instead of SharedObject and fscommand(exec) to save the user's input into a file such as txt file. please...~~~

Cd Rom Issues [renamed]
Help!!, I'm not very good at scripting, and I have been trying all day to find the answer to this simple operation, so this is like a last hope. I am developing a cdrom, and I have a main page with 8 buttons, which I want the user to click where they want to go and navigate back to and from this page. Is it better to make each of the 8 sections on new scenes, or would a separate movie for each be better. I feel that a separate movie would be better as the file size is quite large on some of the sections, but i'm not sure and could really use some advice. If I do make separate movies, then please what is the script for the buttons to navigate to the movies (i guess i would be loading .swfs'). I really need some help with this please.

How To Make The Background Transparent And/or Change The Shape Of The Background
Im just curious how to change the shape of the background or the transparency.

Please let me know

Transparent Background/ XML Code To Change The Background Colour
Hi,

In a bit of a pickle here; I need a way to insert a swf file into any color background website, so it automatically matches up.

Now, can one make the swf files background transparent? And match the background of any given websites background?

Or, can one use some sort of XML file and simply change this xml file to match the background color of the website?

Now, what if the website uses a particulare pic background? How would one match this?

As usual folks, I am stuck between a rock and a hard place, so any help deeply apprecaiteed!

Kind Regards,

Boxing Boom

Movement With Acceleration [renamed]
Heyo!

Ok, i have this kinda difficult question (i think it is..) :


Let's say i have a button, and a movie, when i click on the button, i want the movie to move to another position with an accelerating effect ! How would i achieve this?


For the putton i have this code:

on (release){
instanceNameOfMovie._y = a value;
}


How can i modify it so that it will move to that value smoothly? i mean with an accelerating effect...

LoadMovie And _root PLEASE HELP [renamed]
I'm so freakin' frustrated!!!!

OK!!! i have an external movie clip that i want to load to a main clip.
This external clip have something to do with its root

So my question is:
1) How do u tell the _root in the external MC to point to its real root? (I've search the forum and tried to change _root to _parent but it doesnt work)

2) If changing to _parent doesnt work, does this means that there is something wrong with the empty MC container that i use?

I know there are some pro in this forum so PLEASE HELP ME!!!!!!!!!

Preloader Problems [renamed]
OK - i'm having major preloader problems with Flash MX 2004 Pro...

Here's a link to a website i'm trying to put together for a friend:

http://www.kraitt.com/hypertouch/index.htm

After entering, you will immediately notice the following:

I cannot get a preloader to work for the infinite menu that loads when you click on "gallery 1" (i've tried every tutorial and every type of preloader you can imagine and nothing works). At the moment it simply has no preloader - can anyone show me one that will work?

When the infinite menu is loaded, you will also notice that the preloader for each thumbnail also doesn't work. When you click on any of the thumbnails, the loading bar appears complete immediately, and sits there until the image is loaded.

The main menu button (gallery 1) basically loads the infinite menu, which is an external swf, and the infinite menu itself loads all the main images which are also external swf's.

Can anyone please help me.... ???

Flip Movieclips...? [renamed]
I have (most likely) a very easy question. How do you get a movie clip to flip vertically/horizontally when a key is pressed. I know how to rotate, but I need to get the clip to flip to make it look more realistic. PLEASE HELP!

Cursor Question [renamed]
Since im new with Flash and im at the begining i had a question to do.How do i have to do some effects to the cursor for my webpage or to the buttons.
Please some help

Calculator Question [renamed]
i'm a newbie in flash, can anyone teach me how to do a simple calculator?
i'd really appreciate the help, tnx!

LoadMovie + Paths [renamed]
i am trying to load a movie into an empty movieclip (instance name container).

loadMovie("music_bar.swf", "container");

but when my main movie is playing, the music_bar.swf shows up but doesn't play... what am i doing wrong? it just appears but the buttons in the movie doesn't do anything

How To Adjust Framerate?[renamed]
I just got Flash yesterday and am making a few cheap cartoons, however they run very quickly and I was wondering how you could lower the framerate or whatever in order to view them properly. Thanks.

Logo Question [renamed]
Hai guys, I'm kinda new with flash and was wondering if any of you guys could help me out with the effect seen for example on this page. The logo and the links do blink for a while. I don't know how this effect is called and would appreciate if one of you can help with a tutorial or point me out where I can find a good tutorial of this effect.

Thank you very much and sorry if this question is stupid or has already been asked.

B-P

External Swf's Not Working [renamed]
Ok This a bit hard to explain but here i go... I am doing a web site where i load external swf's. http://kirupa.com/developer/mx2004/transitions.htm

Now i have a button where i load a photo page where i amn using the tutorial making a photo galerry However I have multiple galerrys and i ran into the prob of loading a external swf with a button inside that external swf to go to a certain gallery.

If that doesn't makes sense just help with this lol. I then decided to have under that photo button a drop down menu where there are supposed to be 4 more buttons that when you click on them they load the exteral swf according to the gallery. However the code used in the loading of external swf is not working on the drop down buttons.

Does neone have any suggestions???

LoadMovie Question [renamed]
sorry guys i need to post here because of faster traffic... urgent..


i just loaded a movie in the main movie.. how do i stop it from looping?

Font Not Showing Up [renamed]
hello
I am new to this forum and to flash in general... my question is probably really dumb but i cannot figure it out ...
I tried to follow the animated button tutorial and it is all ok
until i decided to modify it a bit and add some text and a mask to it ...
for some reason when i preview (ctrl-enter) the movie the mask hides the text but reveals the button ...
I hava no clue why it behaves this way ..
<here> is the souce file

could someone take a look .. thank you

Font Problems [renamed]
Hey guys ive been working on this project for about a week. Its my mini-blog for a website. Ive been having some serious problems with text illedgibility (bla bad spelling). And i need someone to please take a look at my .fla and fix my font errors.

http://www.guidone.com/matt/myspace/main.html
^this is how much help i need

ive been following that tutorial but i need someone else to help me now because i can't figure out a way to fix them.

Ill give u the link to the .fla after someone trustful chooses to aid me.

Copyright © 2005-08 www.BigResource.com, All rights reserved