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
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 04-27-2005, 07:11 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 A Random Background At 100%
how would you go about doing this. (ex http://hi-res.net )
I know how to do both indvidualy but i cant make it all work together!
any help would be apreciated
Loading Random Background
Hi, i read and completed the tutorial on this topic:
http://www.kirupa.com/developer/mx/l...background.htm
what i needed is something similar, except that my background image is a motion clip and instead of having external .swf, i need all the MC's in just one flash. How do i do that?
Thank you for a quick response
x.
Victor
Loading A Random Background
Hi everyone
This is my first post here, but i've used the excellent tutorials section on many occasions with great success
I now have a question re: Loading a Random Background
This will indeed work perfectly for what i want, my question is this;
can i get the same effect using jpgs from an external source?
thankyou for looking
Sue
Loading A Random Background At 100%
how would you go about doing this. (ex http://hi-res.net )
I know how to do both indvidualy but i cant make it all work together!
any help would be apreciated
How Do You Use Loading A Random Background On The Website
I found the loading random background tutorial
http://www.kirupa.com/developer/mx/l...background.htm,
so i follow through the tutorial to make my .swf file work as every time i open the .swf file, it gives me different background. However, when i insert its in my webpage, it gives me no response. It won't even load or do anything else at all, so is there anything i need to do or any specific code that i need to include when i insert it to my webpage so it'll load the new background everytime that i refresh the page?
By the way, the tutorial's really helpful, thank you!
Loading Random Background Tutorial Q.
I was just reading the testing the tutorials regarding loading a random background. I have tried this and worked!
BUT!...
I tried this for my flash document but the background covers everything else.
The keyframe, in which the script for loading the random image is in, is in a layer under a layer where my title is in. But when it loads the image, it appears on top of my image.
I'm trying to make an interactive DVD and want it so that my background changes each time you load the .swf file. (If possible to make it change also whenever you come back to the home page after visiting another page in it)
How do I solve this problem?
Question About Random Loading Background
I got the tutorial to work (it's pretty simple) but I want the background to randomly load images on it's on, basically looping through all of the random bacgrkounds without the page having to be refreshed. How do I achieve this? Thanks
Random Background When Loading Website
Hi there,
I'm new to Actionscript and was hoping somone could assist me with creating a random picture loader for my background, so that when you enter the website the picture in the background is different every time you enter.
Thanks for any help!
[F8] Loading A Random Background Image And Preloading It.
Hey guys, currently making a new site. It is a fluid layout so everything streches etc. I am loading in a different background image each time the site is loaded and I have a good code for that from here:
http://www.kirupa.com/developer/mx/l...background.htm
But since the image needs to take up a lot of space on stage for things like 22" screens the image sizes are like 2MB. Is there anyway that I can preload the background image seperatly to the whole movie...well actually I know there is I just need to be pointed in the right direction or just given some help. I want the preloader to load the whole stage but then where the background image should be displayed a preloader is displayed until the background image has fully loaded.
Any help would be awsome!
thanks.
Loading A Random Background Image With A Preloader
hello
I've been following the Loading a Random Image tutorial from kirupa but I can't seem to make my image*.swf's to work..in it all I have is 3 frames, where the first 2 frames are for the preloader and the 3rd one is for the image.. but all I get is the loadBar fully loaded (but with no animation, just static) and no image... does that code from the kirupa tutorial stop the *.swf to make anykind of anymation?
another question is about how to simple load a movie on enter frame with a movieclip defining the location where it should be loaded to.. shouldn't it be: location.loadMovie("movie.swf") ? simply.... no?
thanks in advance..
Help Loading A Random Background Full Screen
In the bottom layer of my main movie, Id like to put a random background image which loads on entering the frame and stretches to full screen. I would like to use a preloader for the image so Im trying to load a swf using this which I found here:
http://www.kirupa.com/developer/mx/l...ackground2.htm
Code:
choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image0.swf");
break;
case 2 :
location.loadMovie("image0.swf");
break;
case 3 :
location.loadMovie("image0.swf");
break;
case 4 :
location.loadMovie("image0.swf");
break;
case 5 :
location.loadMovie("image0.swf");
break;
}
but I could not get it to stretch full screen. How do I get the externally loaded swf to stretch full screen and be able to resize via a listener from within my main movie?
Thanks!
Rich
Loading Random Fullscreen Background Image
so, i finally got the fullscreen / scaling background to work. AND i can add .swf's and other mc's over top of it without any problem. however, i want to be able to have the background image randomly generated. i know how to do that on its own, but i can't get it to work with this script. any advice?
here's my fullscreen / scaling bg script.
Quote:
Stage.scaleMode = "noScale";
_global.imgConstantWidth = bgImage._width;
_global.imgConstantHeight = bgImage._height;
setImage = function(mc){
var originalWidth = 1280;
var originalHeight = 850;
var widthGutter = (Stage.width - originalWidth)/2;
var heightGutter = (Stage.height - originalHeight)/2;
mc._x = -widthGutter;
mc._y = -heightGutter;
if (mc._width > Stage.width){
mc._x -= (mc._width-Stage.width)/2;
}
if (mc._height > Stage.height){
mc._y -= (mc._height-Stage.height)/2;
}
}
resizeImage = function(mc){
var scaleByWidth;
if (Stage.width/Stage.height > _global.imgConstantWidth/_global.imgConstantHeight){
scaleByWidth = true;
}else{
scaleByWidth = false;
}
if (scaleByWidth){
mc._height = Stage.width * _global.imgConstantHeight / _global.imgConstantWidth;
mc._width = Stage.width;
} else {
mc._width = Stage.height * _global.imgConstantWidth / _global.imgConstantHeight;
mc._height = Stage.height;
}
}
setImage(bgImage);
resizeImage(bgImage);
sizeListener = new Object();
sizeListener.onResize = function() {
setImage(bgImage);
resizeImage(bgImage);
};
Stage.addListener(sizeListener);
AS 2 Loading Random Background FULLSCREEN Images
Hi there,
I have been looking at this tutorial http://www.kirupa.com/developer/mx/l...background.htm
but I need the background images to be FULLSCREEN. Can someone help me out? Is there a way to do this that someone can point me to ? I have a client squirming, and my head is on the block.
I am using as2, flash cs3.
Thanks in advance, Angie.
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?
Random Variables [renamed]
I've been working on a deal or no deal game (my first game) and I'm stuck. I just need a script to make 22 variables that are randomly equal to numbers 1 - 22, so I get a result like this:
box01 = side09;
box02 = side12;
box03 = side19;
...
...
box22 = side04;
thanks
EDIT: I should probably clarify that all 22 numbers need to be different.
Random Motion Problems [renamed]
I am working on a project, and was using the Scripts From:
http://www.kirupa.com/developer/mx/random_motionMX.htm
In my file I have applied the scripts to multiple Movie Clip objects, and need help creating a script that will allow a series of buttons to Stop and Play the MCs. I need also to have all of the action to be frozen initialy but I think that I may have a come up with a way to do what needs to be done for that part.
I have not included the File, as I have not been able to get the bloody thing down below the Limit. I have even removed everything but one MovieClip and the Buttons. And still...."Limit for this filetype is 74.0 KB. Your file is 116.5 KB."
I am still very new to actionScripting and would appreciate any help with this project.
Thak You,
SychoPsamIII
Questions About Random Character Movement And Hit Detection For Game [renamed]
Hey every one i was thinking of making a new game where there are rebel smiley men( because i love smileys) and you just kill them and get as high a score as you can.
What i need to know is how i can make them have random movement.
Not just normal random movment but when it decides to walk up it will change to a different frame within the rebel and make it face the direction of its movment.
i also ened to know if when a mc moves into a invisable barrier or the rebels sight that it will try and kill the mc.
Thanks in advance
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...?!
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...?!
Random Background With Random Text File
I am trying to create a resizable flash file that will act as a background for my html/css website. Within the flash I want to have a script that randomly loads a jpg file from a specific folder on my server as well as a correlating txt file for that background. Here is an example of what I mean.
Say there is a movieclip named "background" and then a dynamic text area named "info" in the lower left-hand corner of the flash movie. I want a script to randomly load a jpg file (say 234.jpg) from a folder named "backgrounds" on the server. I also want it to load the correlating text file into the dynamic text area (234.txt) from a folder named "info". How would I do this and what would the script be?
NOTE: the names of the jpg and txt files would be 1.jpg, 1.txt, 2.jpg, 2.txt, etc.
Thank you for any help you can give!
-- K
[fmx] Problems With Loading Into A MovieClip Via A String [renamed]
Alright, I know this is a mess, please forgive me.
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.
Any ideas?
Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
var myLoader = new com.qlod.LoaderClass();
var picPath = "";
var pics = ['winterrangep1.jpg',
'winterrangep2.jpg',
'winterrangep3.jpg',
'winterrangep4.jpg',
'winterrangep5.jpg',
'winterrangep6.jpg'];
var picText = [''];
var picCount = _root.pics.length - 1;
var objIndex= 0;
var nextX = 265.4;
var nextY = 293.9;
var prevX = 0;
var prevY = 297.4;
MovieClip.prototype.loadObj = function (file, i) {
if (file.length) {
trace(i);
objWhereToLoad = "_root.holder_mc.mc_"+i;
objWhereToLoad = objWhereToLoad.toString();
trace(objWhereToLoad);
myLoader.load(objWhereToLoad, file);
var mc_loader = _root.attachMovie("loader", "mc_loader", 4);
mc_loader._x = nextX-mc_loader._width/2;
mc_loader._y = nextY;
mc_loader.loadBar.onLoadProgress = function(loaderObj) {
this._xscale = loaderObj.getPercent();
trace(this + ' Progress: ' + loaderObj.getPercent());
};
mc_loader.loadBar.onLoadComplete = function(success, loaderObj) {
removeMovieClip(mc_loader);
current_index++;
load****();
trace(this + ' Complete');
};
myLoader.addListener(mc_loader.loadBar);
} else {
trace(this + ' No Image to Load');
}
};
var holder_mc = _root.createEmptyMovieClip("holder_mc", _root.depth++);
current_index = 0;
load**** = function () {
//var mc = loadMovie(""+pics[current_index]+"", holder_mc["mc_"+current_index]);
loadObj(pics[current_index], current_index);
if (last_index == current_index) {
break;
}
var last_index = current_index;
};
load****();
for (i=0; i<pics.length; i++) {
holder_mc.createEmptyMovieClip("mc_"+i+"", depth++);
}
How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en
the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...
basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!
Please if someone could give me a helping hand on this i would really appriciate it!!!!
-AlBERT
Loading An Image Into A MovieClip, Then Into BitmapData [renamed]
Hello,
I am trying to load an image into a movieclip and then draw the contents of the movieclip to a bitmapData object. Below is some sample code.
Code:
target.jpg_mc.loadMovie(url);
target.createEmptyMovieClip("loader_mc", 100);
target.loader_mc.bmc = target.jpg_mc; // movieclip where to load original image
target.loader_mc.tmc = target.bmp_mc; // movieclip with smoothed image
target.loader_mc.onEnterFrame = function(){
bl = this.bmc.getBytesLoaded();
bt = this.bmc.getBytesTotal();
if (bl >= bt && bt > 4 && this.bmc._width > 0 && this.bmc._height > 0){
//target._parent._visible = true;
this.bmc._visible = false;
var bitmap = new BitmapData(this.bmc._width, this.bmc._height, true);
this.tmc.attachBitmap(bitmap, 100,"auto", true);
bitmap.draw(this.bmc);
Stage.addListener(target);
target.gotoAndPlay("in");
this.removeMovieClip();
}
}
For some reason it always draws a white box rather than the image. Has anyone ever seen this happen with the bitmapData class?
Thanks for any help!
Wade
[fmx] Problems With Loading Into A MovieClip Via A String [renamed]
Alright, I know this is a mess, please forgive me.
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.
Any ideas?
Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
var myLoader = new com.qlod.LoaderClass();
var picPath = "";
var pics = ['winterrangep1.jpg',
'winterrangep2.jpg',
'winterrangep3.jpg',
'winterrangep4.jpg',
'winterrangep5.jpg',
'winterrangep6.jpg'];
var picText = [''];
var picCount = _root.pics.length - 1;
var objIndex= 0;
var nextX = 265.4;
var nextY = 293.9;
var prevX = 0;
var prevY = 297.4;
MovieClip.prototype.loadObj = function (file, i) {
if (file.length) {
trace(i);
objWhereToLoad = "_root.holder_mc.mc_"+i;
objWhereToLoad = objWhereToLoad.toString();
trace(objWhereToLoad);
myLoader.load(objWhereToLoad, file);
var mc_loader = _root.attachMovie("loader", "mc_loader", 4);
mc_loader._x = nextX-mc_loader._width/2;
mc_loader._y = nextY;
mc_loader.loadBar.onLoadProgress = function(loaderObj) {
this._xscale = loaderObj.getPercent();
trace(this + ' Progress: ' + loaderObj.getPercent());
};
mc_loader.loadBar.onLoadComplete = function(success, loaderObj) {
removeMovieClip(mc_loader);
current_index++;
load****();
trace(this + ' Complete');
};
myLoader.addListener(mc_loader.loadBar);
} else {
trace(this + ' No Image to Load');
}
};
var holder_mc = _root.createEmptyMovieClip("holder_mc", _root.depth++);
current_index = 0;
load**** = function () {
//var mc = loadMovie(""+pics[current_index]+"", holder_mc["mc_"+current_index]);
loadObj(pics[current_index], current_index);
if (last_index == current_index) {
break;
}
var last_index = current_index;
};
load****();
for (i=0; i<pics.length; i++) {
holder_mc.createEmptyMovieClip("mc_"+i+"", depth++);
}
How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en
the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...
basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!
Please if someone could give me a helping hand on this i would really appriciate it!!!!
-AlBERT
Problems With GetURL Targeting - Loading Into _self [renamed]
Hi!
I'm having a problem using getUrl, can anyone pleeease help??
I've written my own code and used code from here:
on (release) {
getURL("http://www.kirupa.com", "_blank");
}
Everything works fine while testing in Flash, but if you try to load a page into "_self" whilst in a browser window, nothing happens. I'm sure this is something really simple I've missed, but what???
The code I'm using is from a function and goes like this...
//release instructions from function
mc.onRelease = function() {
this.gotoAndStop("down");
this.btnMask._x = btnOut;
getUrl (link, "_self");
}
//function call
btnMC1.onEnterframe =
function() {
menuControl(this, "http://www.google.co.uk")
};
Everything's working fine, except loading pages into _self. Can anyone please help??
Cheers in advance!!
A Little Help With Loading Web Site Content With Button Click Please [renamed]
hi all!
i'm getting closer to my finished site just a few final glitches to clear up.
i have the main guts of the site load up and then when you click on a button i have action script that loads content upon release and the buttons stay put and the page loads up on the left hand side.
http://www.freewebs.com/ex_iled/
however, i do have a page (left side) that i want to have load when the initial page loads up for the first time (the home page). now the buttons and the pictures stay put during all page transitions, okay? so no reloading of those.
how do i get my home page (left side) to load at the same time as you first open the site and also to load if you were to press the home button without causing the buttons and the pics to reload again?
sorry, if this is hard to understand.
i know what the hell i'm trying to say, the question is do you understand what i'm saying!? lol!
thanks!
Loading Dynamic Text Breaks Formmail Forms [renamed]
This matter is something I haven't been able to solve for long and now I'm really desperate to find out an answer.
Here's a link to a very simple zip file (as example) containing the conflictive fla and other files, for those of you who may want to have a look at it.
TO SIMPLIFY THINGS:
It seems that whenever I use a couple of AS instructions to load some Dynamic text from a text file, Forms which are based in formmail, stop working (no matter if these forms are made of dynamic or static text). Why??
INTO MORE DETAILS:
In the attached fla example file here, I've simplified things very much by just leaving 2 Forms (one made with Dynamic text and another one without any dynamic text on it).
Very peculiar, if in frame 1 I call the variables from the text file:
ActionScript Code:
webcontent= "File.txt"loadVariablesNum (webcontent, 0);
the 2 Forms stop working properly: The static one doesn't even seem to submit data and the dynamic one, it seems data has been sent but data is never received.
As soon as I delete these 2 lines of AS, they work properly again (although of course, no words can be seen in the Form made with dynamic text).
Both submit buttons contain the following AS:
ActionScript Code:
on (release) { subject = "Customer Form from your Web"; recipient = "info@mydomain.com"; loadVariables ("http://www.mydomain/cgi-bin/formmail.pl", "", "POST"); _root.Form.gotoAndStop ("Thanks");}
So...I don't have the least idea of what's going on with this all.
Perhaps any of you could explain what's wrong with such a simple thing like this and how to avoid this strange behaviour.
Thank you very much!
Loading Dynamic Text Breaks Formmail Forms [renamed]
This matter is something I haven't been able to solve for long and now I'm really desperate to find out an answer.
Here's a link to a very simple zip file (as example) containing the conflictive fla and other files, for those of you who may want to have a look at it.
TO SIMPLIFY THINGS:
It seems that whenever I use a couple of AS instructions to load some Dynamic text from a text file, Forms which are based in formmail, stop working (no matter if these forms are made of dynamic or static text). Why??
INTO MORE DETAILS:
In the attached fla example file here, I've simplified things very much by just leaving 2 Forms (one made with Dynamic text and another one without any dynamic text on it).
Very peculiar, if in frame 1 I call the variables from the text file:
ActionScript Code:
webcontent= "File.txt"loadVariablesNum (webcontent, 0);
the 2 Forms stop working properly: The static one doesn't even seem to submit data and the dynamic one, it seems data has been sent but data is never received.
As soon as I delete these 2 lines of AS, they work properly again (although of course, no words can be seen in the Form made with dynamic text).
Both submit buttons contain the following AS:
ActionScript Code:
on (release) { subject = "Customer Form from your Web"; recipient = "info@mydomain.com"; loadVariables ("http://www.mydomain/cgi-bin/formmail.pl", "", "POST"); _root.Form.gotoAndStop ("Thanks");}
So...I don't have the least idea of what's going on with this all.
Perhaps any of you could explain what's wrong with such a simple thing like this and how to avoid this strange behaviour.
Thank you very much!
Random Background
i have built a script to load a differenct background picture in random order. the script follows: -
SelectionBGArray = new Array();
SelectionBGArray[0] = "3";
SelectionBGArray[1] = "4";
SelectionBGTotal = SelectionBGArray.Length;
randomBG = SelectionBGArray[random(SelectionBGTotal)];
gotoAndStop (randomBG);
i have different background pictures on frame 3 and 4. the random function returns either 3 or 4 and thus gotoAndStop (3 or 4). i'm not very happy with this and it is very buggy. does anyone know better ways to do this? i would like to put all of the background pictures in one frame and manipulate the x and y coordinates as the .swf file loads. but i think setproperty method only works with on (release) event.
Random Background-mc's?
On my stage I have four buttons, and a background-mc too.
Let's say I want to have three background mc's, and want to random these mc's, so that they change every time I enter the site.
Is there a really easy way to do this? I'm using F4 and Mac.
Thanks ;D
coala
Random Background
I'm trying to design a custom tetris game for a local cricket club that I play for. I want to have a cricket background behind the main game. I want the background picture to change everytime the player starts a new game. How do I tell flash to load a new pic at the start of a new game????
Lee
Random Background
I'm new here so...Hello!
I only really know the basics of Flash, I don't have much knowledge of Action Scripting but I'm keen to learn! So here goes with the first of many (probably very dumb) questions;
If I were to create say 5 different background graphics or images how would I go about being able to have one of them randomly load to the background of my flash page when somebody enters the site?
Hopefully it's nothing too difficult!
Thanks in advance,
Sarah.
Random Background
My client wants to use an image as the background but wants 3 different backgrounds that will be selected randomly at the time of loading. She is trying to avoid having the same background every time. Is this possible?
Random Background
hello.. i was just wondering the correct coding to use to create a randomized background.. im trying to find tutorials.. but no luck.. where the movie clip for the background is in one movie clip.. but i really didnt want it that the site would just be going through the same actual animation.. i wanted to change colour randomly from the ones i set.. and animate.. instead of just running the movie clip.. or making about 200 frames.. where once it gets to one from it stops.. then calls another.
thats actually the question im more so wanting to.. with actionscripting the code to make it count maybe a min or 2.. then go to a randomized frame label. hopefully this is possible. i havent actually touched flash for a while.. been pushed into using visual basic by my boss.. so ya.. if anyone can help.. im using flash mx 2004
Random Background
Fox,
i am very new to flash n need some urgent help,
working on a project where i need 2 things,
1. randomly changing background everytime i open that flash file
2. how to call an swf or a flash file in another flash file n play the animation with the background of the file in which i am calling the other fla.
e.g.
i want "movie X" to be played inside the "movie Y" with the background of the "movie y" and all the components too.
please help, a little urgent
thanks
Random Background
Im looking for a way of loading a random image from xml and resize it to 1280x960 . All the examples i have are for loading multiple thumbnails .
My xml is below , can anyone show me an example .
Quote:
<item type="Wallpaper">
<img><![CDATA[Wallpaper/name.jpg]]></img>
</item>
Random Background
For mostely all of you it's will appair as a stupid question but am searching for a soultion since couple houer whitout figure it
My problem is am trying at to load into my swf a random background each time a visitor come into the site. i read couple tutorial and put some idea from them tougeder.
I called my diferent background (in propriety panel) ''background1'' to ''background6'' and they are occurence of symbole 84 to symbole 89
so here my code
ActionScript Code:
// random background donne une valeur aleatoire entre Background1,2,3,4,5 Nom d'occurence ActBg1,2,3,4,5
K = Math.ceil(Math.random()*5);
attachMovie("Background"+K, "ActBg"+K, 1);
// displayit
"Background"+K = visible.root_;
am not sure of evrething in this code and am realy sorry to bother you whit that basic stuff Any kind of help would be appreciate thx
Random Background
Hi there
I was wondering how I can add a random background to my flash site. This script should generate a random background everytime someone views my site...
Exactly like this site: http://www.exopolis.com/site/
Visit it 2-3 times to see how it does it.
SWF Random Background
Hi,
Got a little problem that I hope all you talented Flash pros could help me with.
I’m creating a Flash site with a random, allow scale, swf background. On top of that background I want my navigation menu, this should not scale with the background.
I used the KIRUPA tutorial to create the random background and it works fine, the problem is that the top navigation menu doesn’t stay the same size….it scales with the background. Think I have to use Fscommand() somehow?
If you go to www.puma.com, you can see exactly what I’m looking for.
Here is the Kirupa tutorial: http://www.kirupa.com/developer/mx/loadingrandombackground.htm
Thanks!
Random Background From XML
hey guys, its been a while since ive been on here. but i need some help.
i am making a full screen flash site and need a random pic as the background but it loaded from an xml file so the client can control it.
i know you guys know how to do this im not looking for new code!!
thanks in advance this place is awesome
Random Background From XML
hey guys, maybe i posted this in the wrong place earlier.
i need help bad, in a bind and need a background of a full window flash movie to be a random image with data loaded from an xml file.
any code or tips you have will be greatly appreciated i need help!!
Random Background
Hi there
I was wondering how I can add a random background to my flash site. This script should generate a random background everytime someone views my site...
Exactly like this site: http://www.exopolis.com/site/
Visit it 2-3 times to see how it does it.
SWF Random Background
Hi,
Got a little problem that I hope all you talented Flash pros could help me with.
I’m creating a Flash site with a random, allow scale, swf background. On top of that background I want my navigation menu, this should not scale with the background.
I used the KIRUPA tutorial to create the random background and it works fine, the problem is that the top navigation menu doesn’t stay the same size….it scales with the background. Think I have to use Fscommand() somehow?
If you go to www.puma.com, you can see exactly what I’m looking for.
Here is the Kirupa tutorial: http://www.kirupa.com/developer/mx/loadingrandombackground.htm
Thanks!
Random Background Help
I followed this tutorial.
http://www.kirupa.com/developer/mx/l...background.htm
It is a step by step guide on how to load a random background image. It loads a .swf into a movieclip on your main timeline. I did everything right, but the thing is, is that I am trying to load the image into a movieclip thats inside of another movieclip. For example it says to load the image into the movie "location." I need to load it into "background" then "location."
The gist of the code says.
choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
now if i need to put it into another movieclip dont i do this?
choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
_root.background.location.loadMovie("image0.swf");
break;
Well I tried that and a bunch of other options, but it didn't work. Someone please help me. Even another link to some better tutorial will help. Anything. Thanks.
Jonathan
Random Background/animation ?
Hi folks,
i've got an question. I want to make an menu for my webpage and so i will creat some animation (example: a dot which follows a line) but i will make it five or six of this animations so that the menu dosn't will be boring. ok now i've got an question: is there a way to make this animations randomize? in one of my flash books i found a script to shange the background after every start (its the code for the background):
Go to an play (Random (_totalframes))
Here the background are on one frame per movie (as background). Is there a way to write an script to randomize some different screens and that there will be a random brake after one screent with the differnt animations (i thinks it's boring too if a animation will change after one ends). And how can i realize this random brake.
I hope someone can help me
Random Background Movieclips?
Hi,
I would like to have at least two different background movieclips - so that the background changes every time I enter my flash site.
Is this difficult? How can I do this?
Thanks // coala
|