Flash :: Modifying The Background Color Of Page In HTML

May 28, 2009

I had published the Flash project which resulted in the creation of a HTML file. I previewed what the web page would look like by opening the HTML file in a browser. The first obvious issue was that the page was not centered, but left-justified. I think that I know how to satisfy that issue by reading the HTML file into Dreamweaver and adding a <center> tag just below the <body> tag. The issue that I cannot figure out is that my page is a bit smaller than my monitor size, so there is naturally the white "fill" areas to the margins. Is there a way to change this color to black?  Is that the bgcolor variable that is in the <body> tag?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Changing Text Color & HTML Background Color

Jun 18, 2009

So i'm working on this website and I want to be able to switch out the entire color scheme on the website everytime a button is pressed, I've stepped away from flash for awhile and actionscript 3 is new me. Plus I haven't quite found any truely useful stuff on forums yet.
 
What i can't figure out is when a button is pressed the HTML background color changes to one of 5 preselected colors (that alternate ever time the button is pressed). Then for each background change the text changes too as it is part of a entire new color scheme.
 
What I've managed so far is to change the color of the background thats within the Flash file. What i did was to make a movie clip that plays to a next frame and stop everytime the button is pressed. Now i just need to also get to change the HTML color and the font colors.
 
//"homeText" being the name of dynamic text field and "Button" the name of the button and "background" being the movie clip that is the background within the flash file.
  
Button.addEventListener(MouseEvent.CLICK, Button_CLICK);
function Button_CLICK(e:MouseEvent):void{
background.play();    homeText.TextFormat(color "0x000000");}
  
I'm not sure if my code is just sloppy or if i'm completely going the wrong route here.

View 1 Replies

ActionScript 2.0 :: Change HTML Background Color From Flash

Apr 3, 2009

Im using this code to change the HTML background color from Flash:

In Flash:

Code:
on (release) {
getURL ("javascript:changeBgColor('#ff00ff')");
}

[Code].....

It does work when i publish flash till Flash Player 7- for 8 or 9 it does not work. What else i can do to make it work for Flash Player 9..

View 2 Replies

ActionScript 2.0 :: Change The Background Of HTML Page From Flash?

Jun 28, 2006

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?

View 1 Replies

Professional :: FLV To SWF To HTML - Loads The Background Color Of The Flash File But It Doesn't Play The FLV?

Nov 26, 2010

I made a 'movie' in Premiere and exported as FLV., Its suppose to be a banner on the top of a web page. The site was made with Dreamweaver. When played locally, the banner does great. When I put it on the server, thats a different story. I can tell thats something is there because it loads the background color of the flash file but it doesn't play the FLV.

View 1 Replies

Professional :: Change HTML Background Color With AS3

Jan 13, 2011

I'm looking or a way to change my HTML background color trough Flash. here is the code i'm using

[Code]....

View 3 Replies

Html :: Center MC + Change Background Color?

May 24, 2010

I am quite new to AS3 and I have never worked with classes, so I am encountering a couple of problems.

I'd like to center a movieclip, have it so that it doesn't scale. And then I'd like to add a background color that stays there no matter how I scale the browser.

Can someone please explain me this in babysteps? Since I don't know how to implement a class and make it work with my fla.

View 2 Replies

ActionScript 3.0 :: Changing The Background Color Of Html Pages?

Aug 2, 2009

I made a movieclip that has 3 plain color thumbnails and 1 image thumbnail pop up when my "change theme" button is clicked. I can't figure out how to go about changing the background color/image when the appropriate thumbnail is clicked. I know I need to set up an addeventlistener, but I don't know where to go from there. Maybe I need to have Flash load a new CSS file for every thumbnail clicked?

View 3 Replies

Flash :: Read Flashvars Into File By Modifying The Standard HTML Published Out Of CS5

Sep 30, 2010

I'm trying to read flashvars into my flash file by modifying the standard HTML published out of Flash CS5. The following isn't working:[code]

View 2 Replies

Professional :: Changing Color Without Modifying Existing Items

Jul 28, 2011

I'm reletively new to flash, and am trying to modify a template and am running into a problem and I don't seem to know why Flash is acting so strange. I am going into a movie clip to edit the color of an item, and when I do so with a tint, it overrides any additional effects such as light, and text. The color appears almost as if it were just slapped on top of everything. When I edit the color in advanced mode, it is really a hit-or-miss to get the correct color, and will only modify when changing the offset RGB.

And also when doing this, the text gradually changes color, for example: there are 4 items in total that I want to edit the color of. Each item is a different colored box with text on the front (for a main Navigation of the website). --- The first item, the text will stay white. Gradually through the second and third items it starts to change, and by the fourth / last item, the text is completely blue. Is it possible for a portion of text to be connected somehow to an object within the animation in a movieclip? If so, is it possible to go inside and edit this? -the shape, animation, and text? Is there an easier way to change the color of an item inside a movie clip? I can supply additional information if needed.. files etc.

View 1 Replies

Html :: Flash - Play A Background Audio Across Multiple HTML Pages.?

Nov 17, 2010

Is there a solution to have the background audio/music play across multiple page on a website, WITHOUT restarting on every page load.The website currently uses a frameset, but I'm looking for an alternative.

View 2 Replies

ActionScript 3.0 :: Making New Page For Site - Modifying Template?

Oct 19, 2011

I have a template that I want to modify. I want to add two subpages to a products page, and I don't know how to do it. The site is: [URL]. I tried with simple goto but it generates errors. I think of loading a swf when you click on the sub-buttons but that doesnt work too.

View 0 Replies

ActionScript 2.0 :: Assign A Color Those Labels In The "AC_FL_RunContent" Script In The Html Page

Feb 4, 2009

1. I have a collection of text input fields and each one has a label next to it. Right now those labels all appear in black. How do I get them to display in white so they are readable on a dark blue background. Can I assign a color those labels in the "AC_FL_RunContent" script in the html page or does it have to be done in the fla? If it has to be done in the fla can you describe the steps I need to take.

2. I have to pass a URL with getURL which is functioning BUT, I need to append a series of parameters so it looks something like this

Code:
getURL("http://mymail.playourvideo.net/forwardvm.php?acct=the valuse of the acct textfield instance");

I've tried doing this for each parameter in the function that fires when I click the Send Button it's obviously the wrong approach.

Code:
function doSendButton()
{
_root.acct.text = acct;
_root.sname.text = sname;

[code]...

View 11 Replies

ActionScript 2.0 :: Make A Dynamic Text Boxes Border A Certain Color Along With Background Color

Oct 18, 2003

How would I make a dynamic text boxes border a certain color, along with background color.

View 1 Replies

Flex :: Changing The Background Color And Border Color On Selection On A Tilelist?

Apr 23, 2010

I am using a tilelist I want to change the border color and the background color of the tile on selection.

View 1 Replies

Flash :: Program An Html Page To Move To A New Web Page On User's Clicking An Item Of An Embedded Movie?

Nov 21, 2011

Let me ask how to program an html page to move to a new web page on user's clicking an item of an embedded flash movie? But , in detail, I actually want to do a little different thing. I want that the parent html page remains there ,instead I want a child html frame has a new page after user's clicking the list item of the embedded flash movie.

View 2 Replies

Professional :: Preloading An HTML / Flash Page On PREVIOUS Page

Jul 1, 2010

I have a site where all the pages have a common SWF embedded at the top (Nav and banner), but the rest of the page is HTML.Everything is working fine, but I'm finding the 'independence' between the HTML and Flash is making for some sloppy transitions from page to page.I was expecting the SWF to be delayed, at least for the first page visit(and I have a preload routine inside the swf to make it's delay and appearance a bit more visually pleasant), but was surprised to sometimes find the SWF appearing and playing while the HTML content was delayed (resulting in a SWF floating in black).What I'm wondering is if there's a way I can do some sort of preload on my index page.BUT, not the standard one that I'm sure everyone would suggest (like the javascript image 'preload', or the newer 'css visibility' preload trick). The problem with the standard one is that it doesn't check to see if everything is loaded.What I'm after is a routine on my index page that invisibly loads some of the elements from my inner pages (common swf, maybe some of the images) and WAITS until it's done before moving to the inner pages (displaying the company logo and/or a load status in the meantime).Many people would suggest a preloader inside the common SWF on my inner pages (which I have), but the problem with that on its own is that it doesn't stop the HTML from displaying.

I'm trying to figure out a way to do a preloader (like those in a SWF, which loops until everything is loaded) that controls both the SWF AND the HTML.Recently, I found that you can use one swf to preload another, which would be a potential solution, as I could make an SWF on the index page whose sole purpose is to load (invisibly) the common SWF, displaying the load status and then loading an inner html page once it's done.Problem is, I have bee having trouble finding the coding for that, as most searches for preloaders end up being about standard preloaders, where it's monitoring the same SWF that the code is on, as opposed to controlling a second, external SWF.Can someone point me to or provide me with the proper coding/procedure for a preloader that controlls a second external swf or give me a better solution?
 one?

View 1 Replies

Flex :: Transparent White Color To Background Color Of Image?

May 21, 2009

I have an image and i want to remove white color from image.That removing color is same like its background color. If anybody have any idea of this problem please answer?And my application in Flex 3 so please send me action script code of this problem.

View 2 Replies

ActionScript 2.0 :: Control Both The Text Color And The Background Color Of The Textfield?

Jun 17, 2005

I have a dynamic textfield that displays different text. What I want is the ability to control both the text color and the background color of the textfield.

View 1 Replies

ActionScript 2.0 :: Passing HTML Form And Hidden Variables From Flash To Html Page

Dec 3, 2003

I have a html/flash site now, [URL]. i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire <form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window. now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:

[Code]...

View 1 Replies

ActionScript 3.0 :: Color Picker Component Background Color?

Jul 18, 2011

Is it possible to change the background color of AS3 Color Picker component using AS3? It is always black behind the swatches and I would prefer it be white but even after alternating the skins in the library it always appears black.For example, I would like the swatch to initially be a circle which I have done and have it open to a grid of circular swatches.

View 1 Replies

ActionScript 3.0 :: Color Picker Component Background Color

Nov 1, 2009

Is it possible to change the background color of AS3 Color Picker component using AS3? It is always black behind the swatches and I would prefer it be white but even after alternating the skins in the library it always appears black. For example, I would like the swatch to initially be a circle which I have done and have it open to a grid of circular swatches. I have done this but an overpowering black box always appears below.

View 5 Replies

ActionScript 2.0 :: Flash + HTML + Variables - Go To The Home.html Page An Animation Will Play From Start And Then Stop At The End Of It

Feb 25, 2010

when you go to the home.html page an animation will play from start and then stop at the end of it. However, for all other pages i.e contact.html aboutus.html we need the animation to skip to the end straight away and not to play the whole animation through. I was thinking this would be controlled by a variable or some kind of external text file ect. Basically in the first frame the actionscript needs to basically say

"if this html page is aboutus.html then go to the last frame and stop" and with the index page it would say "if this html page is index.html then keep playing"

View 2 Replies

Flash :: Set The Background Color In SwfObject?

May 17, 2010

I am using swfobject to display some Flash content (please don't tell Steve Jobs) and I need to set the background color of the swfobject content to black so it blends nicely with the black page it is on.I tried using the following code but it didn't change anything:

<object id="flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="600" bgcolor="#000">

What is the correct way to set the background color to #000000?

View 2 Replies

Flash - Make Set Background Color The Mc?

Sep 30, 2011

I wanto to make set background color the mc.

1.mc-2.mc-3.mc-my_mc

This codes not show bacground.

var bg_colour:Color = new Color(1_mc.2_mc.3_mc.my_mc);
bg_colour.setRGB(0x6546a0);

var bg_colour:Color = new Color(1_mc.2_mc);
bg_colour.setRGB(0x6546a0);

View 2 Replies

Html :: Set Link Of Another Html Page On Flash File

Mar 11, 2011

I want to set link of another html page on flash file.

View 1 Replies

Flash :: Html - SWF Object Rendering At The Html Page

Jun 19, 2011

I would like to ask when swf object rendering at the html page? Is it rendered only it's visible? If swf at the page bottom that is not visible, will swf be rendered when I scroll down? The problem is that swf object raises some events when it's rendered and I would like to force rendering even if swf object is not visible.

View 1 Replies

Html :: Works When Tested In Flash, But Not On Html Page?

Feb 29, 2012

I am trying to create an ad for a website. When someone clicks on the ad, it is supposed to redirect them to a website, and register the click with google analytics.I have done this with the following script:

import flash.external.ExternalInterface;
movieClip_3.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void {

[code].....

View 2 Replies

Professional :: Changing Background Color In A Flash Exe?

Mar 20, 2011

I am trying to change the background color in a flash 8 .exe file that seems to extract setup variables via an xml file.  The xml file reads as follows:

*?xml version="1.0" encoding="utf-8" ?**settings*  *min*10000*/min*  *max*10119*/max* *exclude*  *range min="12" max="14"**/range* *range min="16" max="18"**/range* */exclude*  *putbackin*false*/putbackin*  *titletext**![CDATA[*font color="#000000"

[code].....

View 3 Replies

Image Instead Of Background Color In Flash Logo ?

Nov 18, 2004

I cant edit the .fla as this is .swf and .jpg app all i do is change the image. how do i change this background stuff in this code from color to an image ie

background Value="myback.bmp"
(The Code)
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=6,0,40,0"[code]........

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved