# Change Background of Page From Flash

**URL:** <https://forum.kirupa.com/t/change-background-of-page-from-flash/15384>\
**Category:** flash\
**Created:** [March 13, 2003, 5:19pm UTC](https://forum.kirupa.com/t/change-background-of-page-from-flash/15384 "2003-03-13T17:19:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazprodotcom](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kazprodotcom](https://forum.kirupa.com/u/kazprodotcom)\
**Post date:** [March 13, 2003, 5:19pm UTC](https://forum.kirupa.com/t/change-background-of-page-from-flash/15384/1 "2003-03-13T17:19:21Z")

</div>

This may sound stupid, but does anyone know if is possible to change the background of an html page in which the flash movie resides via a script in the movie?

Yeah, I am krazy.

thanks.

kaz

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2003, 5:27pm UTC](https://forum.kirupa.com/t/change-background-of-page-from-flash/15384/2 "2003-03-13T17:27:04Z")

</div>

i remember an site with that option, but the link is down for about an year now…

i think the best way to do it is with javascript, flash itself cant do this, but CAN send commands to javascript

try google “change background javascript” or something simular…

here’s a good one:  
[http://javascript.internet.com/bgeffects/background-color-change.html#](http://javascript.internet.com/bgeffects/background-color-change.html#)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2003, 5:30pm UTC](https://forum.kirupa.com/t/change-background-of-page-from-flash/15384/3 "2003-03-13T17:30:34Z")

</div>

Unfortunately, I do not know how to intigrate java with flash, YET.  
But I will. And thanks so much for your help.

I will go to the most allustrious Google.  
:sigh:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 13, 2003, 5:33pm UTC](https://forum.kirupa.com/t/change-background-of-page-from-flash/15384/4 "2003-03-13T17:33:31Z")

</div>

```auto

// how to call javascript function on an button
on (Release){
getURL("javascript : function(vars)")
}

```

easy as that

edit:  
it seems that the AS tag replaces “javascript:” to “about”  
edit2  
fixed, added space between “javascript” and “:”
