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




Can Flash Change HTML Bg Image?



I have a flash file that has two different layouts. One for the home page and one for the interior pages. Each layout needs a slightly different background image in the HTML file. Is there a way I can change the background image from Flash with JavaScript or something without needing to open a different HTML page?



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-25-2003, 12:15 PM


View Complete Forum Thread with Replies

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

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

Change Html Image Via Actionscript
Hi there, I have a problem about changing a particular html image via actionscript, anyone know know? thanks very much.

Change Html Image Via Actionscript
Hi there, I have a problem about changing a particular html image via actionscript, anyone know know? thanks very much.

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 Image With Flash
ok, so i have this photo viewer that allows you to change images. i also have an ok button. i want it so that when people click the ok button it puts the image that is currently being viewed onto the html web pagesomewhere and saves a cookie so every time they log in the image is still there.
thank you for looking

Change Html Page In Flash
hi,

i have a html page(A) that calls another html page(B) that has a flash file.

when i click on a link in the flash file, the link will affect only the page in (A), (B) will remain the same.

can this be done?

thank you very much

Lawrence

Change The Bg Color Of Html From Flash
hi guys
this is just a general question.

can i change the bgColor of html page from the flash at run time. The html where the flash is embed.

If yes than how.

any idea

Change .html Title Using Flash
Hi,

is there anyway i could change my page title using flash? for example: there's a navigation menu with all the links (whereby the links are all individual buttons - upon clicking will callout the getURL function)...upon clicking on any of the buttons, the page (frameset in this case as my content will be updated in the content_iframe, instead of having the entire page reload) title will automatically change to the prefix title set in the .swf...

please help..thanks!

Changed Image, But Dont Know How To Change The Flash
hi everyone,

I am new at flash and i wanted to edit a flash file that i was given.
The only thing i wanted to do was instead of seeing everything left to right, i want to see it right to left.
here are two links to give you an example of what i mean.

what i have now is:
http://gomavrix.com/ofer/flash/0200.html

what i need is:
http://gomavrix.com/flash/0200heb.html

What i am trying to do is:
1. Placing the camera to the right where the people are walking.
2. The 3 large pictures need to come from left to right to thier place.
3. The navigation text is placed correctly, but the animation is now. They are all messed up.

Can anyone help me on this one???
I will be glad to send you the .fla file.
Thanks,
Me

Can I Dynamically Change An Image In A Flash Movie
i have a database of images and i want to apply a magnifying glass effect to the entire series, idealy i will not have to create a flash movie for each but rather pass some variable somehow that just calls the necessary image out of the database and places itself into the flash movie. Anyone got any ideas?

Flash 5 - Change Image Possition On(release)
i have a navigation bar that has a box that goes around the last selected link. so, assuming the links range from 'link 1' to 'link 6' (meaning i have six links total), i'd like to make it so that when a person clicks one of the links, the box moves from its previous location to the link they clicked on. sounds simple, right?

i thought so. i just don't know that much about actionscript, and i can't find any particular tutorial that fits my needs. so, i figured i'd come and see what you all had to say about it.

thanks bunches.

-- Cm

Change Hmtl Image Background From Flash
Hi all!

I have my transparent swf with behind the html image background.
I would like to know if I can make a button that will change this html image background.

Thanks.

XML/Flash Slideshow - Change Hyperlink For Each Image?
Hi there,

I'm new to these forums and to Flash in general so my apologies in advance if I leave something important out of my questions. I've used the excellent tutorial at http://www.kirupa.com/developer/mx20..._slideshow.htm to create a slideshow from an XML file generated by PHP/MySQL. I've successfully managed to add a couple extra text fields, but I would also really like to be able to have the viewer directed to a different link depending on what image is clicked. Is this possible? So far, I've only been able to get clicking to open a link by putting the following on the movie:


Code:
on (release){
getURL("http://www.mysite.com/", "_blank");
}
Can anyone give me a pointer as to how I can change that URL with a field from the XML file with the change of image?

Change Td Background Image With Flash Button
i have a flash file sitting in a html file...

a table td within this html file has the following: <td id="bgTable" style="background: url(images/strip_black.gif)">

i have a button in the flash file, and when it is clicked i want it to change the html td background from images/strip_black.gif to images/strip_white.gif .

does anyone know the correct getURL javascript call to do this???

Thanks and kind rgds!

mitcho

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

Flash Buttons To Change HTML Text
I have a flash menu. How can I get each button to change the HTML text in a different cell on the same page?

Call Javascript In Flash And Change Html
Question.
I have a javascript in my html file and a flashmovie containing all menu buttons. On release of the button a layer in the html file needs to be hidden and an other layer is made visible.
When I use getURL("javascript:showorhide1('div0')"); nothing happens. in html I am not able to use the href="javascript:showorhide1('div0');" instead I must use onClick="showorhide1('div0')" what can I do to make this work. from flash. I tried fscommand, but that doesn't work either, probably I am overlooking something

please help.

Erik

Can I Change The Background Of My HTML Page From Flash?
Can someone tell me if it's possible to dynamically change the background of the holding HTML page from Flash?
I thought it would be possible through making a Javascript call from Flash?

Thanks.


OM

Leaving Flash On Screen, Change HTML Only
How can I avoid having to reload my flash movie, if used as a navigation bar?

I have index.html with my .swf, as well as 7 other pages with the same .swf in the same location.

Any ideas how I can go about leaving my .swf in place, while changing the .html page, without using frames?

Here is my problem.

I want to put a preloader, and a loading sequence in the .swf navbar I built, but do not want the user to have to see it more than once.

Heres the page. http://www.myportfolio.ws

Thanks everyone.

[F8] Need To Change Html Page Title From Within Flash App
Does anyone know how to change the html page/browser title from with a flash file. When a user clicks on the nav I'd like to set the page title to "Home, About Us, etc..."

What I'm trying to do is change the title of the html page dynamically from within my flash app. I've gotten it to work on FireFox using javascript but for some reason it doesn't work in IE. Code being used that doesn't work in IE:
getURL("javascript: window.document.title='"+newTitle+"'; void(0);");

Does anyone know why this isn't working or of another better method (that's simple)?

Any help with this will be GREATLY appreciated!!

Can I Change The Background Of My HTML Page From Flash?
Can someone tell me if it's possible to dynamically change the background of the holding HTML page from Flash?
I thought it would be possible through making a Javascript call from Flash?

Thanks.


OM

Change Html Checkbox Value From Flash Button.
Hey, everyone! I am not very familiar with Flash at all, but I am a skilled programmer. I inherited a project where there's a flash map of a city divided into neighborhoods. Each neighborhood is selectable. When clicking on a neighborhood, a corresponding html form checkbox on the page OUTSIDE of the flash becomes checked. I don't have the original flash fla source file. So, I am going to make a copy of a map with some added neighborhoods. But, I have no idea how to connect the clicking of a flash button to those checkboxes.

If anyone could help me through this, I would be very appreicative!

Thanks!

Is It Possible To Change Html Text Color From Flash?
I have a flash movie and it lives on the same page as some html text. I was wondering if it were possible to change the color of the html text from my flash movie when i click on a button. Any help would be appreciated. thanks.

Printing From Flash Sites - Should I Change To Html?
Hi all

I'm doing a site for a model:

http://www.laurenelise.designreel.com

under construction at the mo

in the portfolio section with the images I need it so that the images can be seen bigger and also printed straight from the site.

Having thought about this I think I should place each pic in a HTML page and then link it externally so the user can click file print.

would this be the best way to go about it?

Regards

Dips

Change Html Background With Flash Button
I've found a few scripts but none seem to work for me. This tutorial does it- http://www.echoecho.com/flashjavascript.htm But it seems to be a bit beyond me. I tried but no go. Anyone know of any simpler ways to do it and work in multiple browsers? I'm on a Mac and the above site worked in Firefox and Safari.

Another site that does it- http://www.philipharvey.com . Click on a tab and the background changes color.





























Edited: 12/29/2006 at 09:16:25 PM by smaudlin

Change Html Title Dynamic From Flash
Hi,
I want to change the Title of the Html page dynamically from the embedded Flash.
The Title, that appears on Browser bars etc.
Could I do this?

On init I can load the Html source code in with LoadVars, and onData (src) change the Title with subString method, but, how then could I pass the new value back to the Html page, so the Browser Title changes?

Thank you.
Luciewong

Is It Possible To Change Html Text Color From Flash?
I have a flash movie and it lives on the same page as some html text. I was wondering if it were possible (javascript probably but I'm not sure how) to change the color of the html text from my flash movie when i click on a button. Any help would be appreciated. thanks.

Can I Change The Background Of My HTML Page From Flash?
Can someone tell me if it's possible to dynamically change the background of the holding HTML page from Flash?
I thought it would be possible through making a Javascript call from Flash?

Thanks.


OM

Is It Possible To Change Html Text Color From Flash?
I have a flash movie and it lives on the same page as some html text. I was wondering if it were possible (javascript probably but I'm not sure how) to change the color of the html text from my flash movie when i click on a button. Any help would be appreciated. thanks.

Change Colour Of Html Page From Flash Swf
Does anybody know if it's possible to change the colour of an html page from within flash, preferably without the html page refreshing?

Cheers

Telling HTML To Change Variable In Flash
I have a flash navigation on a HTML file, how can I tell dreamweaver to change a variable inside flash, to tell the flash navigation where to go when loads.

I have my variable on the first frame of flash, on root level, something like this:

selectedClip = _root.home;

This make a clip go to the Home button. And I want the HTML to change this variable when it loads and tell the flash movie:

selectedClip = _root.contact;

This will make the movie clip to go to the Contact button, when the contact.html loads.

Is there a way to do this in Dreamweaver or with HTML or JavaScript?

Thanks

Change Flash Frame By Html Link
Say I have a flash movie with 30 frames (each frame containing a stop command) and on my html site (with flash embedded) i have 30 buttons.
How do I make the html act so that if someone clicks on button 17, flash will jump to frame 17...

thanks

Change Html Search Form To Flash
i have a html search page and i'm trying to make the same look in flash...but im stuck trying to make the pull down list of the states so when a state is chosen it populates the choices of cities in the cities pull down list.....can some one give me an example of how to do this and what to change to fit my site...
http//:www.nightspotz.com/search.htm
and of course my site is....
www.nightspotz.com

Flash 8 - Change Image To Black And White And Blur
Hello, I am trying to change an image to black and white plust blur it just a little all at the same time with actionscript. I have an image on the stage name "mc" and 2 buttons. The 1st button changes the picture, the 2nd reverts the picture back to the original state.

The trouble I am having is I cannot get the two filters to work at the same time. I am not what is wrong with it.. I commented the blur part so the color adjust works.

Any ideas??? Here is the my code:


stop();
import flash.filters.BlurFilter;
import flash.filters.BitmapFilter;
import flash.filters.ColorMatrixFilter;
//
var mc:MovieClip;
var blurX:Number = 0;
var blurY:Number = 0;
var quality:Number = 3;
var desaturation:Number = 0;
//
function mcChange() {
this.onEnterFrame = function() {
if (desaturation<=0) {
des = 0.025;
} else if (desaturation>=1) {
delete this.onEnterFrame;
}
desaturation += des;
var fColorMatix:ColorMatrixFilter = new ColorMatrixFilter();
mc.filters = new Array(getDesaturationFilter(desaturation));
//blurX++;
//blurY++;
//var imageBlur:BlurFilter = new BlurFilter(blurX, blurY, quality);
//mc.filters = [imageBlur];
};
}
//
function mcRevert() {
this.onEnterFrame = function() {
if (desaturation<=0) {
des = 0;
delete this.onEnterFrame;
}
desaturation -= des;
mc.filters = new Array(getDesaturationFilter(desaturation));
//blurX--;
//blurY--;
//var imageBlur:BlurFilter = new BlurFilter(blurX, blurY, quality);
//mc.filters = [imageBlur];
};
}
//
function getDesaturationFilter(t:Number):BitmapFilter {
t = t ? t : 1;
var r = 0.212671;
var g = 0.715160;
var b = 0.072169;
return new ColorMatrixFilter([t*r+1-t, t*g, t*b, 0, 0, t*r, t*g+1-t, t*b, 0, 0, t*r, t*g, t*b+1-t, 0, 0, 0, 0, 0, 1, 0]);
}
//
change_btn.onPress = function() {
mcChange();
};
//
revert_btn.onPress = function() {
mcRevert();
};

Change Html Pages In Other Html_frame From The Buttons Of The Flash Mov
OK.my html page have 2 frames

the topframe with the flash mov
and the mainframe with the html content.

I need to change html pages in the mainframe from the buttons of
the flash mov

Change Html Background Color With Flash Button
I've found a few scripts but none seem to work for me. This tutorial does it- http://www.echoecho.com/flashjavascript.htm But it seems to be a bit beyond me. I tried but no go. Anyone know of any simpler ways to do it and work in multiple browsers? I'm on a Mac and the above site worked in Firefox and Safari.

Another site that does it- http://www.philipharvey.com . Click on a tab and the background changes color.

Change External Html Text With Embeded Flash
I want to change some text that isn't inside the flash movie, but using flash.
i want to change "jimmy" to "james"
<span id="lblrank" class="WhiteText">jimmy</span>

any ideas?

Change Image Number Area: XML/Flash Photo Gallery
I'm following the tutorial for the Photo Gallery using Flash and XML, but I'm wondering how I can customise the number area.

I'd like it to be set out like this:



I prefer the layout with the current image number on top of the total image number (rather than the 2 / 4 format).
How can I customise the ActionScript code so that it works in this format (eg: this is set up using two dynamic text boxes- one for each number)

I've been following the tutorial but I'm not sure how to implement this change.

Any help would be greatly appreciated!!

Image Flip - MouseOver Button Triggers Image Change
Hello all,
My appologies if this question has already been answered if so i must have missed it.

My question is easier to explain by pointing here...

http://www.htmlgoodies.com/beyond/dualflip.html

The thing is the example above is in javascript and i would like to do the same thing in Flash.

Roll the mouse over a button and an image on the stage changes, then being a roll over the "image" natually flips back onMouseout.

i'm thinkin' typ

shownew == image1

on(mousover)
{
shownew(image2);
}
stop()

on(mousout)
{
shownew(image1);
}
stop()

on(press)
do what ever.


Hope this makes sense and please ask for more info if needed, or if possible a tutorial some where. 'cos this would really help me.

Thanks for your time, reading this and even more thanks if you can help me.
Mutex

Image Flip - MouseOver Button Triggers Image Change
Hello all,
My appologies if this question has already been answered if so i must have missed it.

My question is easier to explain by pointing here...

http://www.htmlgoodies.com/beyond/dualflip.html

The thing is the example above is in javascript and i would like to do the same thing in Flash.

Roll the mouse over a button and an image on the stage changes, then being a roll over the "image" natually flips back onMouseout.

i'm thinkin' typ

shownew == image1

on(mousover)
{
shownew(image2);
}
stop()

on(mousout)
{
shownew(image1);
}
stop()

on(press)
do what ever.


Hope this makes sense and please ask for more info if needed, or if possible a tutorial some where. 'cos this would really help me.

Thanks for your time, reading this and even more thanks if you can help me.
Mutex

Load Image Using LoadMovie - Can You Dynamically Change The Image Size?
Hello,

Is it possible to dynamically change the size of an image that is loaded into flash using the loadMovie function?

loadMovie("/images/tripOne/image1.jpg", "image1MC");Regards
Rob

Newbie Question: Can An Html Link Change A Flash Movie Clip?
I was wondering if it is possible on a page to click an html link and make a movie clip in flash change.

For instance, you have a music website with links across the top including news and pictures. In the news section you want to include a link to the pictures section, but you want the flash background to change like it would if you clicked on the pictures button within the flash nav. Is that even possible? I hope this makes sense. Any help would be greatly appreciated.

Change Width - Height In Flash Movie According To Html Window Size
I know how to change the flash movie to fit all screen in the browser window using WIDTH="100%" and HEIGHT="100%"

But! How to make it like this side: http://www.ego7.com/

In that site the width and height is 100% but the content in the flash movie is the same width all the time. The only thing that changes is the background of the flashmovie. The background is getting scaled in height, how is this possible?

When i try to do this it scales my whole movie.

How Do You Change The Shape Of An Image And The Image Looks Proportionally Modified?
I want to be able to distort an image and for it to look in perspective to the shape. Like a normal picture of a boat and when I distort/reshape it into a circle, it looks like a picture of a boat thru a fish eye lens.

I also want to use this in tween.

eg.
from a hexigon to a rectangle.

Using Flash In HTML, Alt-image?
Currently, I'm using flash for a navigation bar on a otherwise HTML only page. The owner doesn't wish the entire site to be in Flash and also wants non-flash compatability. Is there a way using dreamweaver, frontpage, or some HTML code that would allow me to display an image or possibly even an image-mapped graphic if the user doesn't have flash installed.

I suppose there would be a way to change the content if I ran a javascript to check for the exsistance of the plugin but I havn't explored Javascript plug-in checks for a long time.

The Html Image Tag In Flash
Hi
I was messing around with html in flash and to test what it can do I made a little swf.. there are to textfields, an input text and a dynamic.. type in your html and press "til html" the dynamic box shows the html formatted..

This works fine except for the img tag, I put up a picture in this folder and type this but nothing happens..

try it here:

html formatter


the path of the pic:

<img="http://www.ors.dk/html/pic.gif">

anyone?

HTML With Image And Flash
Hi, I have a Flash file with the following code in it:


Code:
// Create a new style sheet object and set styles for it.
var styles:TextField.StyleSheet = new TextField.StyleSheet ();
styles.setStyle ("html",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'12px', color:'#0000FF'});
styles.setStyle ("body",{color:'#00CCFF'});
styles.setStyle ("h1",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'24px', color:'#006600'});
styles.setStyle ("p",{color:'#000000', fontSize:'14px'});
styles.setStyle ("a",{color:'#0000FF', fontSize:'14px', fontWeight:'bold', textDecoration:'underline'});
//
/* Assign the style sheet object to myTextArea component. Set html property to true, set styleSheet property to the style sheet object. */
myTextArea.styleSheet = styles;
myTextArea.html = true;
myTextArea.focusTextField = null;
//

var myVars:LoadVars = new LoadVars ();
// Define onData handler and load text to be displayed.
myVars.onData = function (myStr:String):Void {
if (myStr != undefined) {
myTextArea.text = myStr;
} else {
trace ("Unable to load text file.");
}
};
//
myVars.load ("references.htm");
//
THEN, I have the file references.htm to be loaded:


Code:
<p>Text text text. <br/>[<img src='images/imagepopup.gif' width='15' height='15' vspace='0' hspace='0'/><a href="http://www.cnn.com" target="_blank">Link to CNN</a>]</p>
The problem is that the image that is in the HTML code does not appear in the same line with the text (inside the []). Instead, it appears in a line below.

It looks like this:
Text text text.
[Link]
Image

But it should look like this:
Text text text.
[Image Link]


Is there anything wrong with the code? Please advice.
Thanks,

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