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




Trying To Change The BackGround Color On Xml Gallery?



Hey Hey!!

I am try to adapted a new action in the photo Gallery Using XML and Flash. I am trying add a color function? You can see what I am trying todo
here I want the color to change when you goto the next image?? I hope this make sense. I just don't know where to add it? to the xml or the fla?

Thanks



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-28-2004, 01:36 PM


View Complete Forum Thread with Replies

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

Trying To Change The BackGround Color On Xml Gallery?
Hey Hey!!

I am try to adapted a new action in the photo Gallery Using XML and Flash. I am trying add a color function? You can see what I am trying todo
here I want the color to change when you goto the next image?? I hope this make sense. I just don't know where to add it? to the xml or the fla?

Thanks :thumb:

Trying To Change The BackGround Color On Xml Gallery?
Hey Hey!!

I am try to adapted a new action in the photo Gallery Using XML and Flash. I am trying add a color function? You can see what I am trying todo
here I want the color to change when you goto the next image?? I hope this make sense. I just don't know where to add it? to the xml or the fla?

Thanks

Trying To Change The BackGround Color On Xml Gallery?
Hey Hey!!

I am try to adapted a new action in the photo Gallery Using XML and Flash. I am trying add a color function? You can see what I am trying todo
here I want the color to change when you goto the next image?? I hope this make sense. I just don't know where to add it? to the xml or the fla?

Thanks

How Change The Background Color ?
How do you change the background color when the mouse goes over a button (only over) ?
thx guys and chicks

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.

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

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 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

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?

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

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!

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

? 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 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

How To Change The Background Color In AS3
Hi US

I have this code copiled using the Mxmlc (flex SDK)


Code:
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;

public class App extends Sprite
{
public function App()
{
init();
}

private function init():void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;


}
}
}
pretty basic but the compiled file show a "industrial blue" as background color.

How can I change That?

thanks in advance

Change The Background Color By AS
Hello, does anybody know how to do this?

The background of the html page that contains my movie is white, but I would like to change the html background color depending on the posiction of my movie by using AS. By clicking a button the background should change... is that possible?

Thanx in advance

Alright, Now I Know How To Change Background Color
ok, I know how to change bgcolor using flash button,
and the HTML background changes. Initially Black background.

the script that I used was...

------------------------
<script language="JavaScript">
<!--
function changeBgColor(newBgColor) {
if (window.document && window.document.bgColor) {
document.bgColor = newBgColor;
}
}
-->
</script>
-------------------------
on the flash button, I have

getURL ("javascript:changeBgColor('#FFFFFF')");

so that now, it changes its background to white, when clicked...

What I want to know is, how can you use that VERY SAME Button, and sencond time clicked it changes back to black.

and third time it goes to white, and so on.
I know its possible, and I was trying to figure this out for the last past 2 hours...Please help me, with this idea.
Thank you.

URGENT Change Background Color When ...
change background color (ex.: red to blue than blue to yellow) when a new movie clip is loaded

How To Change Background Color With A Button ?
Hi,

I have trouble figuring out how to change movie background color. Here what I want to do: If someone click on a button, the movie's background color will change to the color of the button clicked.

Thank you very much

How To Change Movie Background Color
Does any one knows how to change the background of a flash movie using actionscript.

What I am trying to do is to change the background color of the movie depending on the different swf's that I load.

This project is for Flash projector (.exe) file, so there is no question of html interaction.

ps. I don't want to put a movie clip at the back and change the color using setRGB()

If anyone can help, I shall highly appreciate it.

Thanks a lot

Niyas

Listbox Change Background Color
Hi,

How do you change the background color of the listbox so that you have for example blue/grey/blue/grey background for the data fields ?

Thks,

Smalco

Change Background Color On RollOver
Having some probs with what I thought was going to be an easy task. I have some buttons given names like bN0, bN1, etc and textfields cN0, cN1, etc. When I roll over the buttons, I'd like to change the text in the textboxes underneath them, kinda like a hyperlink in CSS.

Some code:
code:
doc.onLoad = function(success) {
if (success) {
for (i=0; i<doc.firstChild.childNodes.length; i++) {
_root["cN"+i].text = doc.firstChild.childNodes[i].attributes.name;
_root["bN"+i].onRelease = function() {
//I'd like to change it here
};
//trace(doc.firstChild.childNodes[i].attributes.name);
}
} else {
trace("XML not loaded");
}
};


Could it be because it's inside the onLoad for the XML? I'm out of ideas.. that and it's 2:30 in the morning...

Change HTML Background Color?
Hello!

I have a flash movie embedded in an HTML file (see rough example : http://www.studio209.com/color.html )

When you click on the links ("movie 1", "movie 2", "movie 3") the background color of the flash movie changes.

is there a way to change the background color of the HTML to match the background color of the Flash file?

Thanks!

Where And What?....need To Change A Background Clip Color
Trying to get a background clip or target mc to change its color accoring to the respective tab the user clicks in my application prototype.

Everything now works great, but I am stuck as to how and wehere I would put and call an event handler to the users actions. So for example, the user clicks the purple tab option, it animates up and then also simultanelously fades in a background to the purple color repectively at say 50% or so.

Can anyone help me with this actionscript to get me started so may properly impliment this? Here is the prototype of this so you can see what this looks like: See sample here


I have the following code in the first frame of my movie thus far:

Code:
// declare variables
//
var menuUp:MovieClip;
var menuDown:MovieClip;
var tabBtnShow:MovieClip;
var tabBtnHide:MovieClip;
//
// tab button actions
//
buyingFreshBtn.onPress = function() {
slideMenuUp(buyingFreshBtn, buyingFresh);
};
countyProfileBtn.onPress = function() {
slideMenuUp(countyProfileBtn, countyProfile);
};
countyEventsBtn.onPress = function() {
slideMenuUp(countyEventsBtn, countyEvents);
};
whatsInSeasonBtn.onPress = function() {
slideMenuUp(whatsInSeasonBtn, whatsInSeason);
};
countyInfoBtn.onPress = function() {
slideMenuUp(countyInfoBtn, countyInfo);
};
//
// slides the menu up or down
//
function slideMenuUp(btn:MovieClip, clip:MovieClip) {
tabBtnShow = tabBtnHide;
tabBtnHide = btn;
tabBtnHide._visible = false;
menuDown = menuUp;
menuUp = clip;
slideMenuDown(tabBtnShow, menuDown);
var menuY:Number = 0;
clip.onEnterFrame = function() {
// menu y stop point
var menuStop:Number = 373;
// menu speed
var menuSpeed:Number = 0.5;
with (clip) {
menuY = menuStop-_y;
_y += menuY*menuSpeed;
}
if (clip._y<(menuStop+0.5)) {
delete clip.onEnterFrame;
}
};
}
function slideMenuDown(btn:MovieClip, clip:MovieClip) {
var menuY:Number = 0;
clip.onEnterFrame = function() {
// menu y start point
var menuStop:Number = 565;
// menu speed
var menuSpeed:Number = 0.5;
with (clip) {
menuY = menuStop-_y;
_y += menuY*menuSpeed;
}
if (clip._y>(menuStop-0.5)) {
delete clip.onEnterFrame;
btn._visible = true;
}
};
}
Thanks in advance for your help, I really appreciate it

Change Document Background Color
Hello.

I have a Movie Clip with 2 different labels, and different buttons to go with each label.
An instance of the Movie Clip is on Scene 1.

When the second label's button is released, I want to change the Document's Background Color.
All buttons are symbols, with instance names.

I have looked everywhere, and cannot find a solution to this.
Is it possible?

Thank you.

Change Background Color Of Stage With AS
We I have a preloader that plays behind my transparent movie clip and I want to change the stage to black
when I go to Full Screen. From what I have found most people use a black box but that won't scale in FS.
So does anybody have another solution for changing the background color with AS that would help a lot.

W Bell.

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?

Background Color/ Image Change
my client would like to see a different image each time someone logs onto his website [i am using flash]. also, he wants the background color to change as well....

was wondering if it is possible to have the background COLOR [in html] change automatically each time someone visits a website.

also, how do i have a background image automatically change each time a person visits a flash website. i've seen it done but not sure what coding to use....

Background/foreground Color Change
I ran into a problem. A graphic designer created a beautiful flash interface. But the buttons need to be dynamic and the selected button ends up having a red background on it. The text in the foreground needs to change fonts dramatically from one item to the next (because they are logos for companies) but are always black text on white background. I want to find a way to get the color of the attached jpg to turn red background with white text. I can change the background, or I can change the foreground with the color object and set transform, see this link for a sample.

I do not want to swap a new image in, because that would require two graphics for the client to create. I don't want to create extra work for the admin. If it can't be done, that is fine too. But I want to be armed with that information when I make recommendations to the client.

[as]how Can I Change Background Color Of A Movie
i want to change the color of a moive by passing a color code from a .txt file

how can i do that


helppppppp

Javascript To Change Background Color
Hi to all
I have a flash file I want to use a javascript to change the background color

in IE it accesses the object and works great using the following

nn=Netscape
but I have searched everywhere on how to access it via Netscape that uses the <embed> tag any suggestions

Flashtest is the ID and NAME tags for the object and embed tags



Code:

function doPassVar(args){
if (browser == 'nn'){
document.FlashTest.bgcolor = args;
} else {
window.document.getElementById('FlashTest').bgcolor = args;
}
}



thanks ahead of time

Resize Gallery Background Color
Hi guys,

Maybe it's an easy question, but how can i get this.
I have one of the resizing galleries. Everything is great, I want this spacing room between the border and the container. But when the background color isn't white, but for example blue, you now can see the a blue spacing room between the border and the container.
How is it possible to have a different backgroundcolor (not white) and a white spacing between the border and the container.
I tried to put a white square into the border.mc, but then the container is maybe under that white square.

Does someone know a solution for that problem?

Thank you guys

cheers froesi

JavaScript Change HTML Background Color
Can anybody help me... I'm really bad in JavaScript... I would like to place an action on button to change a background color of current webpage...

Alpha Fade & Change Background Color
How do I alpha fade a background color (blue to red) from 0% to 100% using actionscripting?and vice versa

Would it be easy to attach on a movie clip and script, or do it only actionscript? Which is efficient?

How Do You Change The Background Color Of A Dynamic Text Box?
Hi. I was wondering how you change the background color of a dynamic text box. Also, can you make it a different shape? For example, can you make the corners rounded etc?
Thanks for any help.

How To Change Html Background Color From Flash
heres an easy one(not for me)
how can i change the html bg color from a button or key frame in flash5.

thanks

Background Change From Solid Color To Image.
Hi everyone,
I have mx, and what i needed to do is when the mouse rolls over object I would like the background to change from a solid color to an image. does anyone out there know how to do that. I appreciate any advice. Thanks Good Day

JJ

How Do You Change The Background Color Of A Text Field?
I've been trying to change the color of my text field in FlashMX and I can't seem to figure out how to do it. Couldn't find any tutorials on it anywhere, so I'm posting here instead.

I've got a dynamic text field (loading an external text file) with a scroll bar, but I don't want the background color of the field to be the default white color. How can I change it to something else?

Any help would be greatly appreciated.

Thanks,

-RoG-
http://www.I-Mockery.com

How To I Use Sound In FlashMX And How To Change Background Color?
If I have a total frame of 90. At the 7th frame, I want to put sound starting from the 7th frame to 90th frame. How to do it?

If I have a background color of black, how to change the color from 7th frame onwards to 90th frame if I want the 1st to 6th frame color remains as black?

Change Background Color Of Scrollpane Component
Hi,
could someone pls teach me how to change the background color of a scrollpane from the component menu please?
Thanks!!

Background Color Change From Swf To HTML-image
I've been having problems with some color changes.

The background picture in the flash movie has a color which is similar to that of a picture that lies in a scaleable HTML-table beside the swf in the indexpage.

The problem is that on lowres/low color monitors, you can see the transition from swf to the HTML table. There's a slight color change that is only visible on low color monitors.

How can I avoid that? Does anybody know that...

Change Background Color Of Combo Box Component
Hi
ive got a script that uses the combo box component but i dont want the backgound for the text to be white. does anybody know how to change this?

Regards

Change Html Page Background Color
Is there any way from Flash to change the background color of the HTML page it is embedded in?

Basically I want the html page background color to be white whilst my preloading animation displays and then change to brown once the site has loaded.

Currently the preloading animation and associated code is contained within the main movie.

Any help or tips much appreciated

P

Change Dynamic Text Background Color
For some reason I can't get my background changed

ccText_txt.backgroundColor = 0xcccccc;

I have a dynamic text box with instance name of ccText_txt that starts on frame 1 and spans 30 frames. On a separate layer I have functions that are in frame one and that frame goes across all 30 frames as well. The function layer turns the text box on/off.

Any reason the background won't show? I am using MX 2004 pro and publishing as player 6.

Change Background Color On Parent Movie.
I have some intro movies that i load into a parent .fla and the bg colors are always white. My latest intro i want to have a black background and it keeps defaulting to white whenever it is loaded into the parents movie clip. Does anyone have some quick actionscript that can change the bg color of the parent to black? I'm sure it's pretty easy! Thanks,
-Peter

Change Background Color For A Single Phrase?
Hey there. I have a movie clip on a web site that I am working on. Inside the movie clip is a text box with a variable name, and up and down arrows that control the scrolling of the text within the text box. At the main level, I have an actionscript "onClipEvent load" to call the text for the box. I have changed some of the font colors, but I also need to change the background colors for those phrases. Does anyone know how to do this? I would be much obliged for any help.

Thanks,
Summarah

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