Changing The Background Image In Html From Flash
I have several frames of a flash movie. I want the back.jpg image in the html page to change to back1.jpg when I click in my flash movie to frame two.
I'm a designer, and not a programmer, but, I assume it's a simple javascript issue.
M
FlashKit > Flash Help > Flash MX
Posted on: 02-20-2004, 01:35 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Changing An HTML Background Image From Flash
Hi all,
I am building a site right now that gives the users the option to change the color scheme of the site.
The problem I am running into is my footer an image outside of flash as the background colour of a table.
Is there a way that I can create some sort of function in flash that speaks with the html of the page to change that table cell's background image? I assume it would be javascript if it's possible.
Changing A DIV's Background Image From Within Flash
Hello,
I figured out how to change a div's background with javascript. When I try to do this with flash, I fail horribly. Anyone out there can help me out in this situation please? Here is the code I have to change a div's background image with just a javascript call within the code. Thank you very much.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked: See forum rules)">
<html xmlns="(URL address blocked: See forum rules)">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Untitled Page</title>
<style type="text/css" media="all">
#npcontainer {
background-color: red;
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div id="npcontainer">HELO ROBOCOP</div>
<p><a href="#" onClick="document.getElementById('npcontainer').style.background='url(test.jpg)'">CHANGE IT</a> </p>
</body>
</html>
HELP IN RUNTIME BACKGROUND CHANGING OF HTML THROUGH FLASH
hi
Is anyone know how html background can be changed from flash movie. I got script also but somehow it does not work.
The script is as below
on (release) {
getURL ("javascript:changeBgColor('#535678')", "_self");
}
__________________
sanjay
Changing Background Color In Flash & HTML
I've been trying to figure out how to change the background from scene to scene in the same flash document and match that with html. For instance: I created an intro that I want to have a white background, but all of my page backgrounds are tan after the intro.
i found one site that is doing sort of what I want: http://www.trappingsinc.com/
Background Image In Flash Or HTML
Hi there!
I've got a Flash movie with a photo background for added effect, the problem is, this is bumping my movie up to 118 K, its 72K without the background.
I've tried putting the background in HTML, but it won't scale to fit the screen. I've also tried using layers with a 100% sized image, but this screws up if the browser is resized.
Should I put my background in Flash or HTML? Which will be faster at downloading?
[CS3] How Do I Change The HTML Background Image From Flash?
Hi,
I'm new to the whole forum thing, but i'm running out of ideas of how to resolve this issue.
I've created a transparent flash movie, for a new portfolio website. I've dropped it into an html page with a full bg image (2000x1500) but i want to change the html bg image each time i click on a new area of the flash movie.
Can this be done? I know it requires javascript and actionscript, but as a designer i am having a real hard time trying to find any solutions or understanding any code thats out there.
Please help if you can...
Cheers in advance.
Html Background Image Covered By Flash Stage
http://rufushale.com/test.html for example.
I am using Flash Pro 8 and DW 8 on ibook g4.
The problem is that i cannot seem to prevent the Flash "stage" from taking up most of the screen, covering the bg image, which is the green stripes. It does not matter how small I make the stage in Flash.
Here is the page code:
<html>
<head>
<link rel="shortcut icon" href="Assets/Images/favicon.ico" >
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style7 {font-family: Arial, Helvetica, sans-serif; color: #996600; }
.style8 {font-family: Arial, Helvetica, sans-serif}
body,td,th {
background-image:url(http://rufushale.com/vertstripes.jpg);
background-attachment:fixed;
background-repeat:repeat;
background-position:center;
}
{font-family: Arial, Helvetica, sans-serif;
color: #3399CC;
}
.style12 {font-family: Arial, Helvetica, sans-serif; color: #FF9900; }
.style13 {
color: #FF9900;
font-weight: bold;
}
.style14 {color: #FF9900}
-->
</style>
</head>
<body bgcolor="#FFFFCC">
<div align="center">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="test3.swf">
<param name="quality" value="high">
<embed src="test3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>
</object>
</div>
</body>
</html>
Changing Background Image?
Is there a way to let the user change an interface's background image using actionscript? What I was thinking of doing is having 3-4 buttons that would change the background to a different .gif. Is this possible with actionscript or will I just have to jump to different frames?
thanks
dk
CHANGING BACKGROUND IMAGE
Hi guys...I'll like to achieve this effecthttp://www.prada.com
You see, I'll like to create the background effect whereby the background image changes to a different image everytime the browser is refreshed.
Can anybody let me know how to do this...thanks in advance.
CHANGING HTML BACKGROUND
hi anyone
plz help me, that how i can change the html background from the flash movie.
if possible plz send me the fla.
Changing The Background Of .html
if you have a white .swf background, then your .html will be all white. etc. how do i make the .swf grey or something and make the .html a pattern? suchas a this site..
http://www.squidfingers.com
heres my source..
<HTML>
<HEAD>
<center>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE>PixelExplosion</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="750" HEIGHT="400" id="PixelExplosion" ALIGN="top">
<PARAM NAME=movie VALUE="PixelExplosion.swf"> <PARAM NAME=quality VALUE=best> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=devicefont VALUE=true> <PARAM NAME=bgcolor VALUE=#033366> <EMBED src="PixelExplosion.swf" quality=best scale=exactfit wmode=transparent devicefont=true bgcolor=#003366 WIDTH="750" HEIGHT="400" NAME="PixelExplosion" ALIGN="top"
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
<style type="text/css" media="screen">
@import "/pattern3.css";
</OBJECT>
</BODY>
</HTML>
Changing The Background Of .html
if you have a white .swf background, then your .html will be all white. etc. how do i make the .swf grey or something and make the .html a pattern? suchas a this site..
http://www.squidfingers.com
heres my source..
<HTML>
<HEAD>
<center>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE>PixelExplosion</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="750" HEIGHT="400" id="PixelExplosion" ALIGN="top">
<PARAM NAME=movie VALUE="PixelExplosion.swf"> <PARAM NAME=quality VALUE=best> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=devicefont VALUE=true> <PARAM NAME=bgcolor VALUE=#033366> <EMBED src="PixelExplosion.swf" quality=best scale=exactfit wmode=transparent devicefont=true bgcolor=#003366 WIDTH="750" HEIGHT="400" NAME="PixelExplosion" ALIGN="top"
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
<style type="text/css" media="screen">
@import "/pattern3.css";
</OBJECT>
</BODY>
</HTML>
Randomly Changing Background Image
Hi
I'd like to make a randomly changing background image for my flash site.
The idea would be that the background image changes every 30 seconds. The images would probably be individual swf movies that load into a movie holder on the main timeline
Any ideas on the best way to achieve this?
Thanx
Dirk
Changing The Background Image By Date
Hi,
I'm a newbie, and I have this big problem :
I need to obtain the data of the server, than load in my movie a background image, depending on what date is.
Exaple:
If it is the 4 march, I should load 4.swf
If it is the 13 march, I should load 13.swf
Could you help me please?
Thanks so much (:
Changing A Table Background Image?
Hey,
I have a flash animation with a black background which is inside a table. the rest of the table has a black background repeating image (black.gif).
at one point in this flash its background changes to have a line through it and i want to change the table background from black.gif to line.gif.
any idea how i would do this?
Changing Background Image Without Refreshing Page
Hello guys,
I have a question for you. Maybe someone can find it easy to answer:
I have a button in a swf. On press action I would like it to change the background image of its html page.
Someone in another forum told me it is possible to do that with php, but didn't show how to do.
Can someone help?
Do you think that when changing the background image with php it is necessary to refresh the page?
Thanks for help.
All the best,
Pat Baudy
Changing A Background Image Based On The Time Of Day.
hi i want to change a background image based on the time of day.
eg between 6 and 9 in the morning there be sunrise image. 9-5 a day image, 5-10 sunset and 10- 6 a night image. ive got it so that it displays 2 pictures but im finding it hard to do these 4 images. if anyone could help that be really cool. thanks.
[FMX04] Changing Background For A Image With One Click On EVERY Scene - How ?
Hi there, i was wondering of any of can helpme with this dilema i have.
I have set up ma flash project to have various scenes.
One of these scenes is a page whereby when a user clicks on a button he/she can change the background image on every scene in my project.
On each scene i have made a layer called 'background' and drawn a black rectangle which is the default background. This has been converted to a graphic using F8.
What i'd like to be able to do is when the user clicks on the button he/she can change this default background to 1 of 4 photo's i have in my library.
i have tried the code:
on (release)
{
colorchange = new Color("/rectangle");
colorchange.setRGB(0x0000FF);
}
but all this does is change the colour of the background and not the photo i have in my library. Please also note i have to have this change applied to all my scenes.
I hope someone can help, Many Thanks
Html Background Image?
How would you do a background like this and make it line up with the flash movie? -----> EXAMPLE Woul I use CSS or what? Thanks for the help!
Changing An Image On An HTML Page
I need to swap out an image (jpg) that is embedded in the same HTML page as my swf, using a button embedded in the swf. I cannot use LocalConnection between two swfs because of browser compatibility issues. Does anyone out there know any tricks to do this?
Can you use FS command within the same browser window (no frames)??
Changing An Image On An HTML Page
I need to swap out an image (jpg) that is embedded in the same HTML page as my swf, using a button embedded in the swf. I cannot use LocalConnection between two swfs because of browser compatibility issues. Does anyone out there know any tricks to do this?
Can you use FS command within the same browser window (no frames)??
Background Image Question (HTML)
Hi, I'm trying to achieve creating a Flash movie which has its background set to transparent, then having a background image loaded into the HTML. (Partly inspired by being impressed with a similar effect on Less Rain
I am just about to grips with basic HTML & my transparent movie works fine on top of the image. The problem I have is that the 800 x 600 background image begins to tile on the edges of the page. Does anyone know how I can make the HTML auto-size the backgrond image to fit the entire browser please?
Alternatively, are there ways of getting Flash to embed an image instead of a colour as the background? I use both Flash 5 & 8 depending on project- though I'm relatively intermediate on both.
Hope someone can help, thanks in advance
Hiab-x
Background Image For The Published Html
hi guys...super basic, i know. i even looked around the forums, google, etc with no luck (likely cause i just didn't know how to verbalize this). I am curious how to create a background with gradient onto my published html. Must it be an image in the body tag (<body background="image.png">)? i tried this but no luck. I'm hoping the answer may avoid an image for these reasons:
1-i don't know how big the image will need to be
2-it takes longer to load
3-it looks funny trying to fit the flash movie ontop of the image...it's not smooth
any thoughts? thanks
Adding A Background Image With HTML?
Just a quick one. Want to add a background image to the html of a flash site so the background image can scale and the content of the flash site not scale. Any ideas anyone??
Thanks all!
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...
Changing Image Size Using HTML Width And Height
Hi,
How do I change the image size of JPG images in Flash, that are loaded into a text field, from an external folder ?.
If I imported the photos and converted the bitmaps into movieclips, this would increase the Flash file size, therfore slowing down the opening of Flash ?, compared to loading a JPG image, into a text field, from an external file, which wouldn't slow down the opening of flash ? Which is the best method ?
Thanks,
Paul
Attach Code
createTextField("picholder_txt", 100, 300, 50, 450, 400);
picholder_txt.html = true;
picholder_txt.htmlText = "<img src='february2007/24-02-07 020.jpg' width=200 height=300>";
HTML Background Matching Flash Background
Hey, I have a flash website that opens as a pop up, the pop auto fullscreens. The background in the flash document is a gradient, and I have a gradient in the background of the html. My question is how would I get the background of the HTML to always match up with the flash background using a percentage?
www.flippingsweet.net/index2.html
Changing The Background In Flash
What's up everyone,
My nam is Poz and I just started working with Flash 8 Professional. I'd like to know how to change the backgound of the stage and work area. I realize this is very much a basic question, but I was just looking for some insight.
Thanks for the help...
Poz...
Changing A Table Background From Flash
I am trying to build a flash controller which changes out a background located inside a table inside of my html document.
Currently I have the Flash trying change the background to my html file through javascript.
In javascript, I am using document.write(' ' +args ' ') and having it controlled by a function inside of flash to keep switching out the background(text). . . I am having Flash pass this data out, and I can call it from an alert, but I am not able to write out that information using the document.write command (like above).
I think document.write is called only once on the page load. I need it to be called anytime I hit the next button inside of flash.
Does anyone know of a way to cycle out the background image of a table using flash as the controller?
Thank you for your time.
--J
Changing The Background Colour In Flash
Hi,
I am making an application which will have a black background with light text. My tutor has suggested that for accessibility there should be the option to change the background colour to white and also the the text throughout the application to black. Does anyone have any ideas on this?
thanks
Gavin
Flash As A Background Image
HEy all,
Anyone know if its possible to have a flash animation
playing as a background image?
and if so is it stable and how is it done?
It would be so awsome to have!
Anyone got any comments?
Flash Swf As A Background Image
this would be incredible if I could use a swf as a background image in either html or css. Anyone know if it can be done? Or does anyone know a workaround. I am trying to (i know it may be against the rules) make a simple rounded rectangle with some attnetion getting animation that surrounds the google ad. When I insert flash it moves the javascript down. This may actually be legal since I am not directly telling the user to to click the links, just using the flash as layout. Thanks
http://flashmailforms.com
Background Image In Flash.
I am in the process of putting together my own site. Currently I have a background image in my html that repeats horizontally and vertically. I then placed my Flash movie on top of the page and set the background of the Flash movie to be transparent. It looks great and works but, unfortunately, the transparent background combined with my animations are a little too processor intensive.
So my question is, how can I place a background image in my Flash movie so that it will cover entire browser background (a.k.a. tile) without being processor intensive? Also, I'm trying to avoid using an enormous image for the background.
BTW: This weeks site of the month seems to be pulling it off. http://layouts.drawingart.org/
Flash 8 Background Image
hi i was hopeing someone could help me with flash 8, i have a image i want to set as the background but it doesnt fill the background!!! there is still white areas
i have used the linkage option and it still doest fill the page when on the browser can anyone help??
Background Image In Flash.
I am in the process of putting together my own site. Currently I have a background image in my html that repeats horizontally and vertically. I then placed my Flash movie on top of the page and set the background of the Flash movie to be transparent. It looks great and works but, unfortunately, the transparent background combined with my animations are a little too processor intensive.
So my question is, how can I place a background image in my Flash movie so that it will cover entire browser background (a.k.a. tile) without being processor intensive? Also, I'm trying to avoid using an enormous image for the background.
BTW: This weeks site of the month seems to be pulling it off. http://layouts.drawingart.org/
Flash As Background On Html
I would like to know how is possible to add a flash movie as a background in a html site already with text and imagens...
Thanks so much...
Flash Background In HTML
Hey all,
A background in html is an image that is tilled to seamlessly fill the screen...right?
So...
Is it Possible to have my background as a swf??
Scaled to 100%, it surly could cover the entire background of the site, with endless motion. eg. bubbles...or wind...
has anyone done this?
or CAn some one tell me how?
thanks everyone!
Background In Flash And HTML
Hello,
i am just posting my web site and i got a big problem.
My flash movie has areas where there it is empty. So i want those areas to get the same texture as the background which i use for the page where that flash movie is inserted.
I tryied to insert an image in flash but it doesn't look perfect in the transition. Do u know how to solve this?
Thank You,
Miguel
Flash As HTML Background
Hi,
I know this has been covered before, but I can't get the suggested methods to work. I have followed the instructions from here: http://www.kirupa.com/developer/flash5/dhtmlflash.htm
I basically want to do the opposite of that, i.e. I want the Flash under the text, not on top of it. I thought I could just change the Zindex of the Flash to 0, or -1, but it didn't work.
I'm using Flash MX 2004 Pro, although I doubt that makes much difference as I think the solution will lie in the HTML.
Thanks.
Using Flash As A Background In Css Html
Is it possible to use a .swf for a background in an xhtml/css file and then put text and other <div>'s over top of it? If so, are there any browser limitations?
|