Change Background Dynamically
Hi everybody, how could I change colour of background dynamically? I don't want to do it with new mc, because I need standalone projector. Than result depends on user's resolution and proportions of sides (in full-screen). If someone has wider screen then would see two strips on sides. Is there any way how to change originally set background? thanks chulimanga
FlashKit > Flash Help > Flash General Help
Posted on: 05-13-2006, 03:44 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Change Background Dynamically
hello,
i've done some research but i can't seem to find what i'm looking for. i've visited flash sites that change the backround each time the page is reloaded. how is this done? does anyone know? is there a background mc with an OnClipEvent 'onload' that runs a script that selects a random bg? or is this done with the use of a javascript?
if anyone knows of a script please post the link or something. all help appreciated.
thanks
Change Background Color Dynamically
Hi! I have a movieclip in a scene. I want to be able to change the color of one certain object/graphic in the movieclip without hardcode it. Is this possible?
I Am Deperately Trying To Change The Background Color Dynamically ?
Hello everybody,
i am actually working on a portfolio website. I want the background color change each time we click on a button on the navigation bar. My problem is that when you click on a button it changes the background from the start
(white background), not from the previous one clicked.
i am trying to make the effect on this site www.mecompany.com.
can someone please help me, i am in despair.
thanks
Attach Code
stop();
function chgAbout(event:MouseEvent):void
{
background_mc.gotoAndStop(1)
}
function chgPrint(event:MouseEvent):void
{
background_mc.gotoAndStop(2)
}
about_btn.addEventListener(MouseEvent.CLICK, chgAbout);
print_btn.addEventListener(MouseEvent.CLICK, chgPrint);
Whats The Way To Dynamically Change Background Image?
Whats the way to dynamically select background image so that on original background it gets replaced??? i need something like this -
http://www.27bobs.com/components/PenPad_online.html
But in this thing I want an option for the user to change background color if he wants??? Please help.....
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
How Dynamically Change The Image In Dynamically Created Row Of Images?
Hi everybody,
I am wondering if someone can help me to find out on how to replace the images in row of dynamically loaded images. I need on Press of an icon from the row of images replace the image of this icon to new one. Below is the code of creating the images row based on array and XMl data. I create an array based on data taking from XML.
Code:
var numOfImages:Number;
var thumbHeight:Number = 8;
var thumbSpace:Number = 100;
var thumbTotalDistance:Number = thumbHeight+thumbSpace;
var xCounter:Number = 5;
var thumbsCollectionHeight:Number;
var currentImage:Number = 0;
var moveOutDist:Number = 10;
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
var IM_Img:Array = new Array();
var IM_Title:Array = new Array();
//==================================================================================================================
//=============================== THUMBS IMAGE LOADER ==========================================================
//==================================================================================================================
var thumbImgLoader2:MovieClipLoader = new MovieClipLoader();
var thumbImgListener2:Object = new Object();
thumbImgListener2.onLoadProgress = function(target:MovieClip):Void {
};
thumbImgLoader2.addListener(thumbImgListener2);
thumbImgListener2.onLoadComplete = function(target_mc:MovieClip):Void {
};
//==================================================================================================================
//=============================== XML ==================================================================================================
//==================================================================================================================
var totalXML:XML = new XML();
totalXML.ignoreWhite = true;
totalXML.onLoad = function(success) {
var TNnode = this.firstChild.childNodes[1].childNodes;
numOfImages = TNnode.length;
//---------------- ATTACHING THUMBS -----------------
//===========================================================================================================
for (i=0; i<numOfImages; i++) {
var mc:MovieClip = imCollection_mc.thumbs_mc.attachMovie("mcThumb_IM", "thumb_" + i, i);
mc._y = 0;
mc._x = xCounter;
xCounter = xCounter+thumbTotalDistance;
thumbImgLoader2.loadClip(TNnode[i].attributes.thumb,mc.loader_mc);
IM_Title.push(TNnode[i].attributes.title);
imCollection_mc.thumbs_mc["thumb_" + i].mc_title.title_txt.text = IM_Title[currentImage];
mc.id = i;
trace (mc.id);
mc.onPress = mc_im_onPress;
mc.xx = mc._x;
mc.yy = mc._y;
}
};
//-------------------------------------------------------------------------
totalXML.load("images.xml");
Here is onPress event where I was thinking to add this functionality:
Code:
function mc_im_onPress() {
mcToSelect = this;
if(this.id==8){
//here I need to tell to replace the image from mc8 to new image from array to image#34 from xml
}
}
Any advice is highly appreciated. Thanks.
Can A Background Change
Hello another question
If you have a background in your movie,and want it to change to another background say 10 sec later is this possible?
Background Change Help
Hi there,
I need to add a button to a site that when clicked will change the flash movie background colour and also the browser background colour to match.
Only thing ive managed to find online was for flash 5, when I publish to Flash 8 or 9 it wont work.
can anybody help please?
Change Of Background
Hi, is it possible to change the backgrounds? For example, In frame one it is black and in frame two it is white. Is this possible without having to draw a rectangle larger than the screen of the desired color? If it is can anyone tell me how to do it?
Thanks in advance
Background Change
Hello to everybody. I need an ugrent help. I am making a site and i encountred a problem that i can not solve.
I have a html page...and in the center of the page i have a flash movie (main.swf).
My index.html page has a red background.
The flash movie (main.swf) has also a red background. I want, that when I load a movie (test.swf on level 1 "this one is blue"), the color of the index.html changes to the blue color.
I hope this is possible.
Thank you for your help. This is realy urgent.
Best regards and a good work to all
Jernej
Change That Background
Ok, guys I have yet to find the answer to this one...
Here is my ongoing portfolio. Only the CONTACT and CHINATOWN is functional at the moment. You see when you click between the two how the background on the .SWF changes and not the HTML? How do I make that change as well? I don't want to make a huge movie.
Example: http://www.bigspaceship.com/
Thanks guys.
Background Color Dynamically
Hi,
Can someone tell me, how can I change the Background color of a flash movie Dynamically in Flash 8.
CHEERS!!!
PALLAV SAMADDAR
Load Background Dynamically (MX)
I'm having a slight problem with loading backgrounds dynamically. When the index page loads i need one bg.swf to load dynamically, but when the user clicks another background button, a new background will replace the default bg.swf that loaded automatically when the page opened. I understand to load the new bg's into an empty clip. I just need to know how to automatically load a .swf once the page opens. Pretty basic, i suppose. Any help would be appreciated, thanks.
victor.
Load Background Dynamically (MX)
I'm having a slight problem with loading backgrounds dynamically. When the index page loads i need one bg.swf to load dynamically, but when the user clicks another background button, a new background will replace the default bg.swf that loaded automatically when the page opened. I understand to load the new bg's into an empty clip. I just need to know how to automatically load a .swf once the page opens. Pretty basic, i suppose. Any help would be appreciated, thanks.
victor.
Change Background During Run Time?
How can you change the color of the movie background during run time? (eg. Say if the background is white and want to change it to #000000 - how do I do that?)
Thanks...
Background Change Colors?
how do i get my background ot change colors? i have the mc made, and it is named background. now what?
How Can I Set The Background Picture To Change?
if i will to do a site with a menu..
lets say there is 5 pages inside that menu
how can i set the background image to change each time 1 of the page is clicked or when the page changes??
and if possible can i set it to change randomly??
maybe like i put 10 images in a folder and ask the movie to grab any one each time...
another qn is how can i setup something like a blog in flash so that pple can comment??
i dont know how to integrate html with flash movie..
someone please teach me or point me in any direction of help
Change A Background Image
I basically have 10 pictures in JPEG / or GIF , and want to show the pictures for 5 secs each, then swap to another picture. That's all I really need in the movie, nothing else..
I have imported them into the library,, but beyond that, I'm kinda flustered...
I'm not entirely sure if I shouldn't just use javascript for this, but I would like not to have an annoying 'navigate' sound everytime I want the picture to change...
Change Background Color
Greetings, can you change the background color of a movie by using actionscript and also have the new color fade in slowly? Would like to do this without clicking on a button. Thanks.
How Do You Change The Background Color
Can someone please tell me how to change the background color of a movie clip w/ actionscript? I swear I've seen the answer to this in another post, but I can't find it or figure it out! I'm quite handy when it comes to changing the color of an MC but I don't want to cheat by using an MC to fill the background.
Thanks.
Change Background Colour
I would like to change the colour of an mc which is on the main timeline using some A script, can anyone help!
Advance thankyou to anyone who helps
PEACE...
Change Background Colour
OK, i have two scens in a movie. The first scene goes with my intro movie with a certain background color. And of course, when the movie moves on to the second scene it has the same background color. What actionscript do i use that i can put on scene 1 enter button that will direct it to scene two frame one but yet at the same time, change the background color into something else? Can it be possible that you can make the background color change slowly? thanks...
Background Colour Change?
hi. is there anyway to be able to change the colour of the background?
i have a website. and i want each section to have a different background colour. i dont really want to make a huge coloured box to go behind everything. so is there an actionscript way?
thanks.
How To Change The Background Color?
hi there I need a function that will change the backround color of my flash file. I tried a lot of this but none worked. I suppose someone will know here about this.
I have a flash file and I want to change the background dynamicaly the file will be on full screen but the actuall content will be centered, thus I want to change not only the contents background but the whole screen.
thanks in advnace
dimitris
Background Colour Change.
Howdy people. Im looking to create a flash website which, when a button is pressed goes to a different section of the website.
However, when, for example you go from the 'homepage' to the 'about' page I want the background colour of the actual html page itself to change to a specific colour.
Any ideas? Anyone know if this is possible?
Any help appreciated.
Liam
Change Background Problem
I have changed my bg projects from white to teal color. It does change on Flash program, but it does not change on the published ( swf ).
Thanks for all helps
How To Change Background Color?
I know it's possible to change your flash document's background color by going in the property inspector, but I'd like to know if there's actually a way to change it by actionscript?
Background Colour Change
I have an online folio and want to have a few different options for background colour. You click a button and the colour changes. Is there some way you can change the document background colour by code?
Thanks in advance
Background Change On Time
I am working on a website, and I am wondering, how can I make a flash background change according to the viewers clock.
I would be dividing up the time into four parts.
10pm-4am
4am-10am
10am-4pm
4pm-10pm
Also, if anyone also knows how this can be done in html/php/javascript as well, that would be neat.
Background Color Change?
Hey, I have a sort of simple question but it's hard to find a solution for it (well for me) I have a background that i want to change colour on every page ie. home = blue, about = pink, work = orange, contact = purple. For an example of what i'm after check out this site. http://www.earforce.nl
Does anyone know how to achieve this effect? is it the hue color change dynamically or mc alpha fades? I'm stumped
Thanks.
ps. im using flash 8
Change Background To Transparent
I am running into some trouble with my rounded borders on a new flash project.
The stage I already colored #000000 when I first created it. How do I change it to invisible/transparent?
Is there any way to change it via code or just by editing the actual stage imaging?
Furthermore.. I have tried this._alpha=0; & Window Mode: Transparent Windowless. The black sticks out of the project very blatantly.
Any help appreciated!
How To Change MC Background Color?
hi, everyone
It's the first post here.
I loaded a extern swf in the stage.
now I wanna to change its background color(not include the swf's border)
can anybody help me?
I am a newbie, any help will be very appreciated.
thanks.
btw, I can change the extern swf's color with ColorTransform class.
but it changes everything, including border's color and the background color.
the border and background are mixed together, I don't want that one.
so, can we have any other solution?
How To Programmatically Change SWF Background
I am trying to figure out how to programmatically change the background of my pure ActionScript 3 application. I'm not using Flash (no canvas) or Flex framework. I'm building the SWF from FlashDevelop and setting the initial background in the project properties for compiling.
I have a Sprite for my main object in the display list. I have tried changing the opaqueBackground of that sprite but it doesn't have any effect. I tried to change the stage object opaqueBackground property but that produces a run time error. I tried to change parent. OpaqueBackground which confirms the sprite's parent is in fact the stage by giving the same run time error.
I am targeting the SWF for Flash 10 and testing it strictly in the Adobe Flash Player 10.
Jim Freer
http://freerpad.blogspot.com/
I Just Can't Change That Background Color...
Hi everyone:
I've asked this question on this forum before but I guess I couldn't explain it well enough. I don't know any better way than to show you it thru this small example. (See attached FLA and SWF).
My goal is to change the background of my own drawn object in the timeline of a movie clip, but somehow it just doesn't want to happen
Any contributions will be appreciated!
Background Color Change...
Ok, I can't seem to find this here or anywhere on the web so I'm hoping that this isn't so simple a question as to waste someone's time.
I would like to change my flash movie's background color (not image) programatically and/or it's corresponding html file. Here's what I am trying to accomplish.
Most people view pages in 800x600 now, but people vary on their resolution selections. If I create a movie with a black background and the corresponding html file has a black background then everything is blended and it looks nice. If I change the movie color background to red now you have a red square with a black html frame. What I would like is to be able to fade in from black to let's say red for both flash and html. I don't know if this is possible, but if it is I would imagine you guys would know.
Thanks much.
PDAGuy
Change Background Transparency
When a user clicks on a button, I would like the flash web page (background) to go transparent to an alpha of about 50%? Any ideas? thanks,
- Gabe
Background Color Change
Right then me lovely's! I want to know if it's possible to change the bacgkround color of diffrent scenes. ie! it's set to white, but I want just one scene (the preload page) to be a diffrent color to the rest of the site. I know!!!!! that I can make a box with the color I want, but it leave's a white border ( I do not what that). So can I change the color of the background for just once scene? Or tell me code, to make a colored box fill the hole page when viewed live so there is NO white border! Lot's of love ME!
How To Change A Background Image
We just inherited a web site with a flash animation. One is a location map. How do I edit the background image of the United States? I need to change the color of some of the states.
Background Change By Time Of Day. (MX)
I'm redesigning my MySpace page and would like to have a background of the an ocean/beach view with the sky in the background. It's just like your average background yet the picture changes depending on what time of day it is. So, if someone's viewing my page during the day, it shows a picture of the beach during daytime and if someone views my page at night, it shows that same picture at nighttime. This could either be achieved using three images (day, dusk/dawn/ and night) or if there was some way of creating a gradation, so the color slowly changes as time passes.
I've found a few codes online for this type of background (one that changes depending on what time it is)...but they're all in javascript, which MySpace doesn't allow.
I kind of figured the only way this might be possible is through Flash, but I don't know whether you can have a .swf file as a background or any other file that would allow for the coding that's needed.
So basically I'm asking...is this possible and does anyone have any idea as to what the actionscript would be?
I'd really appreciate any help.
Change Background Color
Hello,
By using following tutorial I have changed background color of a movie clip (Note: movie clip and buttons are in one .fla file as taught in the tutorial)
http://www.flashkit.com/tutorials/Ge...-526/index.php
Till now I could manage. Wanted to experiment a bit but miserably failed. I have a fla file which contains three buttons, I want to load one more swf file on the level 1 and change the color of the movie clip (which is on level 1) by using the buttons which are there on level 0. I hope I could explain my problem. If anyone of you knows how to do this then please guide me. I currently use Flash 5
Background Colour Change.
Hello.
I was wondering if it was possible for me to change the colour of my background gradually using setTransform()? I dont know how to use it yet. But im guessing its something along the lines of..
ActionScript Code:
var myVar:Color = new Color(myMC);myVar.setTransform(Insert loads of rr, rg, rb stuff in here..);
But I want to do it gradually..
From what I remember, setTransform() is only a tint. Should I really be using setRGB()?
Thanks for ANY help .
An example of what I want can be found here : www.deathjr.com (SKip the intro, on the main site, then click 'Characters', choose any of them and watch the background colour change.
? Change Background Color
I want to make 2 buttons and when 1 press the first the Background Color be blue and by presssing the second the background will be green , who can i do this ???
Change Background Colour Help.
Hello,
I,ve used Kirupa's script
( http://www.kirupa.com/developer/mx/centered_popup.htm )
to open a centralised window on the release of a button. It works brilliantly but I can't for my life work out how to change the background colour of the opened window to black.
I'm no programmer so don't really have much of a grasp of Action or Java script but having looked on the web, I think what I need to do is use document.bgColour('#000000') somewhere in the script but have no idea where to put it or even if it's right!
If someone could help me out on this one I'd be most grateful.
Cheers,
Mat.
|