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




HTML Background Affects Flash Functionality...



closed....



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-30-2008, 05:46 PM


View Complete Forum Thread with Replies

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

HTML Background Affects Flash Functionality...
I tried to apply a fullbrowser background so that all my swfs appear on top of this background...and the background fills the browser...this works fine...but the swfs are affected somehow...one function that does not work for me (using firefox) is my mouse wheel scroll...when you are over the list components the mouse wheel should scroll the list...and when youre not over the list...it should zoom in/out on the main map...neither of these functions works...

here is my html code:

Code:
<html><!--xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -->
<head>
<!--<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />-->
<script type="text/javascript" src="swfobject.js"></script>
<title>EXPOCAD FX 1.0</title>
<div id="contents">
<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Click here to download Macromedia Flash Player to view the content of this page! Once the install is complete click Refresh to view this page.</a>
</div>
<script type="text/javascript">
var so = new SWFObject("protected_main-0.5x.swf", "EXPOCAD FX 1.0", "100%", "100%", "8", "#ffffff");
so.addParam("wmode", "transparent");
so.write("contents");
</script>
<style type="text/css">
body {margin:0px;}
#bg_image {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
z-index: 0;
}
#contents {
z-index: 1;
position: relative;
}

</style>
</head>
<body>

<div id="bg_image">
<img src="background.png" style="width: 100%; height: 100%;">
</div>

<!-- this puts the contents of the page ontop of the background image -->

<!--<div id="contents">

</div> -->


</body>
</html>
http://www.expocadvr.com/new/default.html

has anyone ever encountered this before?

HTML Link Affects Flash Movie
Hi people! I've 'stucked' in a problem and wishes someone helps me out!!!
I'm just developing an hybrid website (flash+HMTL) and I want to add a simple feature:HTML link who affects the flash movie. Basically, I got the flash-menu in the top... and the HTML menu in the bottom... content stays between them - I'm using the same links in both.

AMT TELECOM

The obective is to put animations/transitions in each section... no mather what kinda link did you use.

So, who can show me the light about this issue?!

ps: similar effect is used in 2advanced.net!

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

Losing Html Tags/functionality
Experiencing a problem with MX (not 2004/Pro) reading in XML that contains HTML tags.

Although the field has HTML properties set, text gets truncated. For example:


xml parsing code...then:

myField.html=true
myField.htmlText="loreum ipsum <a href="http://www.ultrashock.com">alor sit amet</a>....

The displayed result is just "lorem ipsum".

Subsequent XML entries are displayed ok if there are no HTML tags in them. There are no masks involved, all fonts are embedded.

Any clues?

Loading Image With Actionscript HTML Functionality
Hello,

I'm using a scrollbar/scrollbox with the text loaded dynamically through a variable. That works fine, as well as the html hyperlinks I include in the text. What I would like to do is use an <img src=""> tag in the text variable that is passed to the scrollbox. Does anyone know how to do that, or is it possible? Thanks

Luke

After Affects - Flash 8
I have taken a full 30 slide power point and with using after affects rebuilt the entire show. Now I have saved each silde as an flv. I need to put it all back together using flash. I am new to flash and have really no clue on how to do this. Can someone help me. Please.

Thanks ahead of time.

there is also audio embeded into the after effects that why we took it out of power point. Needed real sounding audio.

Flash And After Affects
is there a way to save or publish a swf file so it imports into after affects. swf is one of the choices for importing, but then is says invalid media?

Adding HTML Functionality To Billy T's Dynamic Scroller
I've been working with the dynamic scroller Billy T created.

I've created scrollers in the past that use a txt file and have ability to underline, href, etc but I believe this code doesn't allow that because of textFormat code. Could somebody take a peek and let me know if its possible.

Thank you the code is below:

ActionScript Code:
// code by Billy T
// initialise some positions
textBwidth = 348;
textBheight = 200;
theMask._height = 100;
// set this to whatever you want
theMask._width = 348;
theMask._x = 0;
theMask._y = 0;
dragger._x = Math.round(theMask._width);
dragger._y = 0;
theText._x = 0;
theText._y = 0;
border._width = theMask._width+dragger._width;
border._height = theMask._height;
border._x = 0;
border._y = 0;
// set a variable
targY = 0;
// set the drag action of the dragger
// drag is restricted to the height of the mask
dragger.onPress = function() {
    startDrag(this, false, this._x, 0, this._x, theMask._height-this._height);
};
// stop the drag
dragger.onRelease = dragger.onReleaseOutside=function () { stopDrag();};
// set the mask for the text
theText.setMask(theMask);
// the scrolling animation
theText.onEnterFrame = function() {
    // set a variable
    // this variable basically stores info regarding what fraction of the total text
    // is being displayed through the mask and ensures that dragging the dragger
    // from top to bottom will reveal all the text.
    // this allows you to change the amount of text and the scroller will update itself
    //
    scrollAmount = (theText._height-(theMask._height/1.3))/(theMask._height-dragger._height);
    // adjust the height of the dragger to reflect the amount of content available to see
    dragger._height = theMask._height/scrollAmount;
    // set a new target y position
    targY = -dragger._y*scrollAmount;
    // set the y of the text to 1/5 of the distance between its current y and the target y
    // change the 5 to a lower number for faster scrolling or a higher number for slower scrolling
    // Math.round() keeps it on a whole pixel number - good for pixel fonts
    this._y -= Math.round((this._y-targY)/5);
};

The code which formats the text is:

ActionScript Code:
this.createTextField("theTextBox", 1, 0, 0, _parent.textBwidth, _parent.textBheight);
theTextBox.textColor = "0x000000";
theTextBox.selectable = false;
theTextBox.wordWrap = true;
myTextFormat = new TextFormat();
myTextFormat.font = "thaFont";
myTextFormat.size = 8;
theTextBox.embedFonts = true;
loadData = new LoadVars();
loadData.load("content.txt");
loadData.onLoad = function(success) {
    if (success) {
        theTextBox.text = loadData.theText;
        theTextBox.setTextFormat(myTextFormat);
        theTextBox.autosize ="center";
    } else {
        trace("failed");
    }
};

Flash CS3 Preset Affects
Thank God for actionscript because the flash preset effects are cheesy as hell! Anyone would be better off using Swish...

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?

Don't Want Flash Doc Background In Html
Could someone please help me

I have a flash document swf and html to export into dreamweaver.
In flash document dimensions are set to 1280 by 1024.
This what my display properties sceen resolution is set to.
I have the flash movie set to the same size as the document but when I publish and open the html in dreamweaver there is the document background color around the swf movie. No matter what settings i use there still is a 5 pixels odd of document background which looks like a border.
I have tried to adjust in the publish settings dialog box the Dimensions settings to 100% and also scale. No luck. etc
How do I get rid of the background . I would like the swf to take up all of the width of the html page. No borders.


Thanks for your help
Tiaka

Html/css Background Flash Help
I seriously need some help. I am somewhat new to flash and need some help as soon as possible (ANY REPLY will be greatly appreciated). I submitted an earlier post under the topic "masking a fading image," but no one has replied (I didn't mean for it to sound ignorant or retarded, but I'm just trying to find the right words to accomplish what I'm trying to do. I will break the entire task down into more appropriate topics and take it one step at a time.

My first step is as follows: I've created a flash movie file that I would like to set as the background in an html page. Is this possible? I do know when I publish the flash as a transparent web page, I can view the source, copy that, and integrate it into the html page I want to create (with a background color ="#000000") as long as the flash file is saved within the directory of the web content. However, the code (since it is transparent) seems to be just placed on the html page (on the foreground), and the animation will hover over any links or pics that are also place within the page. Is there a way to set the whole flash file in the background of the html page, so it doesn't seem to hover over other content? Thank you ahead of time.

Joe

Flash As HTML Background
Is it possbiel to make flash as a html background?

well.. this is what i typed in


Code:
<embed src="main.swf" style="postion:absolute; left:0px; top:0px;">
it did show up however my minline frame covered the flash even though ive set the alpha of the inline frame to 75.. it should be a little opaque.. anywayz i need help! Thanks

Flash Background In HTML?
Is is possible to have an .swf file as a background in an HTML file so that it covers the users browser 100%? I am able to get the background as 100% scalable but I am having a hard time figuring out how to add tables and content to it? I would like for it to be compatible in IE and FireFox. Heres a snippet of the div tag and swf settings.

Sorry if this is the wrong category for this thread and thanks in advance.

This is placed in between my body tags.

<div id="branding" style="position:absolute; left:0px; top:21px; width:100%; height:100%; z-index:199; visibility: visible; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="100%" hspace="0" vspace="0" width="100%">
<param name="loop" value="false">
<param name="menu" value="false">
<param name="movie" value="bg_login.swf">
<param name="quality" value="high">

<embed src="bg_login.swf" height="100%" hspace="0" loop="false" menu="false" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" vspace="0" width="100%"/>
</object>

</div>

Flash As A Background, Html On Top, Possible?
is it possible to place a flash video into an html document as a background of a cell? with html text over top of the flash video?

?

thanks,

jh.

Flash As HTML Background
Is it possbiel to make flash as a html background?

well.. this is what i typed in


Code:
<embed src="main.swf" style="postion:absolute; left:0px; top:0px;">
it did show up however my minline frame covered the flash even though ive set the alpha of the inline frame to 75.. it should be a little opaque.. anywayz i need help! Thanks

Flash + Html Background
Hi all.

A lot of times I've seen flash websites with two vertical bands at the sides of the swf, especially when that bands had a drop shadow.

I have two questions:

1) Are that bands included in the swf?

2) What is the best way to use drop shadow laterally to the swf?

Thx to all and sorry for the bad english

Html And Flash Page Background
I would love to know how the guys who did www.south.uk.net made the dropshadow on either side of the body.

I can see the use of www.south.uk.net/sides3.swf for the background, but where does the dropshadow come into it?

Any experts out there at pulling apart sites - I would love your help.

Thanks.

Flash HTML As Desktop Background
I made a nice desktop swf animation which serves as a , well i dont know how to explain it but, look :

http://nsad.web1000.com/misc/desktop01.jpg

yeah, and i was wondering if there is anyway to get rid of the background of the text on the bottom of the icons? I know those things cant be get rid of if the desktop background is HTML though.

Thanks in advance for any help.

Flash SWF As Background On HTML Page?
Is it possible to set a SWF file as the background of an HTML page (or table)? We want to have a moving background on the page using Flash, but we want to be able to put HTML text / graphics / etc over the background. Is this possible? If so, how? I use Dreamweaver. Thanks!

Flash As HTML Page Background
I have seen a few site in the past using a swf as the sites background while the remainder of the site is HTML or PHP.

The last site I saw doing this was a section of bbc.co.uk but htey have since removed that section other wise I would of looked at their code to see how it was done.

So my question is how would I do this? I am guessing Javascript but does anyone have an example?

Cheers

Kevin

Transparent Flash Background In Html In Mac?
Hi,there!

There is a serious problem:I have a flash with triangle stage,and I want to publish it in html on mac and transparent its background.But it seems has no effect.

How should I do?Can anybody give me any idea?

Thanks!!

Background Color Different From Flash To HTML
Hi,

I've just published my first flash page on the web. It appears to behave a little bit different depending on which computer I use to view it. On other computers than the one I created the files on I can clearly see a difference between the background color that's in the swf-file and the background color in the HTML document that the swf-file is pasted into. I tried to use a safe background color as #cccccc in the flash file and in the HTML document that surronds it but they do not look the same.

On one particular computer I find some problems with pixelfonts in a dropdown menu becoming blurry and when a swf-file is about to load some jpegs into a MC nothing happens. These problems doesn't appear on any other computer. They all have Flash Player 6 or better.

You can see the demo on www.thiberg.com

Many thanks

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?

Using Flash As HTML Background Image?
Can I use a SWF as a HTML background image?

I've tried this a couple of different ways...

Any tricks to make this work?

Flash As Html Body Background
i was wondering is it possible to use flash as just a background with html on top.

i thought it might be possible by linking the html backround to an .swf file. but that didn't work. Then i tried using style sheet layers and placed my .swf file on the bottom layer.(z-index=0) and tried putting an image and text over it again using style sheet and DIV tags to control the layering but no luck so far.

so i ask you fellow flash members. is setting a flash swf file as a background possible at all or am i trying to do the impossible??

erase

Flash As Background For For HTML Page?
Hi:

Can anyone give me an idea about what I'm doing wrong for making a Flash move as the background for my page? I can't get the movie to show up.

I'm doing this:


<html>
<head>

<style type="text/css">
<!--

#myContent
{
z-index: 2;
position: absolute;
}

#mySwf
{
z-index: 1;
position: absolute;
}

-->
</style>

</head>

<body>

<div id="myContent">
Test of Text over Flash Movie
</div>

<div id="mySwf">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="Flash_BG">
<param name="allowScriptAccess" value="sameDomain" />
<PARAM NAME=wmode VALUE=transparent>
<param name="movie" value="images/Flash_BG.swf" /><embed src="images/Flash_BG.swf" wmode="transparent" width="100%" height="100%" name="Flash_BG" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

</div>

</body>
</html>

Any ideas? My research says this is possible, but no luck.

Thanks in advance,

SP

Help In Changing The Html Background Using Javascript In 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");
}

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

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 Background Colors Not Matching HTML
I want you to look at something if you have a chance.

www.forestsaver.com/new/index.html

The top navigation consists of six flash movies with expanding tables between. Do you see a color shift between the movies and the background? My client is the only one that sees this so far and I'm wondering if anyone else does. So, how to remedy?

The Flash movies are set to have a background that is the same hex color as the .gifs. The .gifs that make up the background are adaptive. Should they be selective? Any advice appreciated.

Thanks,
Lou

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

Flash Movie As A Background In An HTML Page
Abit new to flash.
I have made a swf that I want to play in the background of an HTML page while other HTML elements are on top, image buttons, etc. (I cant make the other elements flash due to some other issues in the enviroment I am designing this for at this time.) But it seems no matter what I do, the flash movie cant have anything on top of it. I have tried as a seperate frame in the background and as an embedded object at a lower layer number.

Is it even possible, and if so any hints or help to get that to work?

Thanks for any suggestions, much appreciated.

Using A Flash Movie As A Background Image In HTML?
I want to use a flash movie as a background image in HTML. Can this be done? If so, how do I make it happen. I've tried various solutions, but no luck so far. Thanks in advance for the help.

Josh

Flash As Background Image Of HTML-Page
Simple question!?

is it possible to place a Flashmovie (swf) as a background-image into a HTML-table as you can using *.jpg's and *.gif's.

bye

smik

Tiling Html Background In Flash Form
I have a small gif that i have tiling in the html background, and i need the flash movie to be transparent so that the background is visible. This is possible only in Explorer, but not in Mozilla, netscape and the like. So my question is not how to make the flash movie transparent. Instead, my question is how can i achieve this tiling effect, without coding it into my html.

I was thinking of simply making the small gif tile manually in my flash movie, but that would never match exactly with the tiling within the html; so that idea was scrapped.

I would appreciate some suggestions on how i could go about achieving this effect.

Take care.

Flash To HTML (Switching Out Background Tables)
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 my table using flash as the controller?

Thank you for your time.

--J

How To Make A Flash Background In Html-file?
Hi everyone! I wanna make a flash background in html-file, i've already searched all over, but found nothing

Can Flash Control HTML Background Color?
Does anyone know if Flash can control the background color in the HTML page it sits in without the visitor refreshing the browser?

I'd like to allow the visitor to adjust the color scheme for my site, which will include the background color as well as the Flash elements.

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

Html Background While Flash Object Loads..possible?
Hi guys, to see what im getting at please goto www.ldistudios.com/showcase/index.html and you will notice that before the flash kicks in there is a white space in the center of the screen where the flash object will appear. Is there any way to apply am image to this area while the object initializes so the html page looks seamless.

Appreciate any help you can give thanks.

Chris

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

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

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