ActionScript 2.0 :: Changing Browser Background Colour?

Oct 12, 2009

I want to make the colour of my browser to change when my swf reaches a certain frame in the time line.

In my flash project I have placed the following actionscript in one of the frames.

ActionScript Code:
getURL("JavaScript:changeBgColor('#000000')")

and I want place the following javascript in my HTML file:

ActionScript Code:
<script language="JavaScript">
<!--
function changeBgColor&#40;newBgColor&#41; &#123;
if &#40;window.document && window.document.bgColor&#41; &#123;

[Code].....

but I don't know where in my HTML file to place it as there is alot of Java I don't understand. I have tried to place it in myself but it won't work. The HTML file I wanna place the Java into, is attached.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Changing Background Colour Of Opened Window?

Jul 6, 2007

I've used script -[URL] to open a centralised window on the release of a button. It works brilliantly but how to change the background colour of the opened window to black. I'm no programmer so don't really have much of a grasp of Action or Java script but having looked on the web, I think what I need to do is use document.bgColour('#000000') somewhere in the script but have no idea where to put it or even if it's right!

View 1 Replies

ActionScript 3.0 :: Changing Colour Of A MC With A Colour Picker?

Aug 17, 2009

i have a background and i want to be able to change the colours of it using a colour picker... if the MC was to cover the whole stage... how could i then get a colour picker and make it so it would change to whatever colour i wanted from the colour picker?

View 5 Replies

ActionScript 2.0 :: Changing The Colour Of A MC?

Nov 21, 2002

I am trying to automatically change the colour of an MC when it comes into play and am having a few problem. I used the code I found in the Flash AS Help, but it's not working.

Here's what I used:

myColor = new Color(rollover);
myColor = setRGB(0x993366);

Rollover is the instance of the MC I want to target.

View 14 Replies

ActionScript 3.0 :: Changing The Colour Of An Image?

Dec 10, 2008

I have a client that has a series of products that come indifferent colours and different textures. What I need to do is havepicture of the product. When the user runs a mouse over the colourpalette the product changes it's colour to represent the chose madeby the customer fro the various choose in a colour palette. FordCanada does this when I pick the colour of my car. I can run overred and the car will change colour to red.

View 3 Replies

ActionScript 3.0 :: Changing The Colour Of MovieClip?

Feb 9, 2010

Basically, I want to change the colour of a component in my fla file that is called 'EDL Arrow' using Actionscript
 
'EDL Arrow' is a Movieclip and is part of another movileclip called 'EDLClipDisplay' - which exports to my actionscript file: 'Export: CIS.FLVPlayer.EDLClipDisplay'
 
How can I change the colour of the component 'EDL Arrow' from the actionscript file 'EDLClipDisplay'
 
I understand how to do colorTransforms but I just don't understand how to connect this component 'EDL Arrow' with my Actionscript file.

View 1 Replies

Professional :: Colour Changing Upon Export?

Jul 27, 2010

I'm working on a game at the moment, and I'm running into a problem. I was testing the vector files that I export of the art I made, and upon re-importation to flash the colours have changed significantly. Then, when the game is running in a browser, it looks different again. It even looks different between different browsers.

View 2 Replies

ActionScript 3.0 :: Changing Text Colour Please?

Jul 15, 2011

I have a set of textfields created in a for loop and I want individual textfield text to change colour on mouse roll-over. I can't get it to work - it throws a 1009 null object reference error:

Code:
var textField = new TextField();
textField.x = 150;

[code]....

View 2 Replies

ActionScript 2.0 :: Changing Colour Of Text?

Sep 7, 2011

should be simple anyway . I'm using flash CS5 but have continued using AS2 because that is what I know how to use. Im trying to change the colour of a Dynamic text field in which the string is constantly changing. I am trying to use the code:

Code:
_root.textField1.textColor = 0xFF0000;to get change it from white to red, but it does not work. I am thinking it is maybe because in CS5 you have to embed fonts (I dont know how to do this!). If this is the case is there an easy way to embed a whole font with all colours etc?

View 7 Replies

ActionScript 2.0 :: Changing Colour Of Movieclip?

Apr 27, 2006

I have this piece of actionscript working

Code:

var my_color = new Color("mymc");
my_color.setRGB(0xFF0000);

This works when I call the actionscript say from a button on the same timeline as the movieclip. What I can't get my head round is how I change the colour of an object on a different timeline, say if the path to the movieclip was _root.mc1.mc2.mymc

View 1 Replies

IE Showing Wrong Background Colour?

Oct 2, 2007

I made a website a year back or so and I'm having to update it now. However I've noticed the flash menu I have on the site doesn't seem to appear correctly anymore when I check in on a PC using IE.

Basically in the bottom left hand corner the swf background colour should appear grey (#333333) not white. Seems to work fine on Safari and Firefox.

View 1 Replies

ActionScript 3.0 :: XML Background Colour Property?

Dec 20, 2011

This is probably easy, but I'm an AS3 noob and google is returning every result under the sun apart from the ones I want. Is there a way to set the background colour of a flash movie according to a value pulled from an XML file?I already have the background colour property set as BGCOLOUR within my XML file, and I've used the code in line six to pull that value through (I think)...

ActionScript Code:
function processXML(e:Event):void {
var my_xml:XML=new XML(e.target.data);
my_speed=my_xml.@SPEED;
my_images=my_xml.IMAGE;

[code].....

Since adding the sixth line of code in the section above, it's broken the project, so I've had to remove that line.

View 9 Replies

ActionScript 2.0 :: Change The Colour Of Background?

Feb 22, 2006

I finaly got the code I needed to change the colour of my background but it clearly needs altering. At the moment it works but I have to click the button twice for the colour to change. Now for once I see that this makes sense because I have onRelease twice!

This code is on the button:

on (release) {
home_btn.onRelease = function() {
var myColor:Color = new Color (this._root.background1);
myColor.setRGB(0xFF8844);}

However i'm unsure how to alter the code correctly....I assume the second onRelease needs to change to something else? I tried just: home_btn = function() { but am really just guessing.

View 2 Replies

ActionScript 2.0 :: Change Colour Of Background

Jun 6, 2003

I got this code from Kax. This allows me to change colour of my background. This use to work on my movie but now is just not working anymore!Since i created a button loading a .swf file this has stopped working, Any suggestions anyone?[code]I understand that I have to replace "myMovieClip" with the name of my clip!

View 14 Replies

ActionScript 2.0 :: Way To Change Background Colour

Mar 17, 2007

I'm trying to change background colour

var color:Color = new Color("stage");

color.setRGB(0x000000);

its currently purple, how come it doesn't change

View 5 Replies

ActionScript 2.0 :: Set Background Colour Of A Line?

Feb 23, 2010

I'm trying to set the background of a createTextField(), BUT only for the lines, not the whole box.

If I use background and backgroundColor, it sets the whole text box bg to be white, but I only want the lines filled in.

For example, if you 'select' the text on an HTML page, only the lines are highlighted. Can this be done in Flash?

I'm using CS3 AS2.

View 6 Replies

ActionScript 3.0 :: Changing Colour Of Checkbox Label?

Jan 22, 2010

I'm writing a section of code which displays a series of checkboxes on the screen, but as they are placed on a dark background the default label text colour of black is no use, as they can't been seen. When I initialise them I use the line:
 
checkboxArray[i].setStyle("textColor", 0xFFFFFF); to set the text colour to white, but this only seems to work when the checkboxes are disabled (checkboxArray[i].enabled = false) and reverts to black again once they are enabled. I have tried including the setStyle line of code again after they have been enabled, but this doesn't make any difference.

View 2 Replies

Professional :: Changing Colour Of Pasteboard In Flash CS5

Oct 30, 2010

I'm looking for a way to change the color of the Pasteboard in Flash CS5 on a Mac.I'm talking about the Pasteboard (the blank area around the Stage).I found a shortcut that did it for CS3, but heard you can't do it in CS4 and CS5.I'm thinking surely that's a mistake because that would be absurd.

View 3 Replies

ActionScript 1/2 :: Changing The Colour Of Multiple Objects?

Jan 21, 2011

I have written code that continually adjusts the colour of a targetted movie clip using a Color object called 'myColor' and an Object called 'colTransform' to adjust the colour of a movie called 'myClip':
 
//creates colour object and links it to movie
myColor = new Color(myClip);
//creates object that dictates colour adjustment
colTransform = new Object();
//adjusts object

[Code]...
 
I could also write a loop that loops through a number of objects and applies the colour changes to each in turn but I'm looking for a simpler solution - is there a way of doing this?

View 2 Replies

ActionScript 3.0 :: Changing The Colour Of Text Inside A MC?

Sep 16, 2009

I am having trouble changing the text I've created inside a movieClip.Wha I do below is place a movieCLip from the library onto the stageI add an eventListenerThen I create a text field inside the movieClip and add some text from an arrayThen, when the user clicks the button I want to change the text colour but it keeps giving me an TypeError: Error #1010: A term is undefined and has no properties. (Where I commented the code with // ########)I can adjust the movieClip's position but I don't seem to be able to access anything inside it.

Code:
var createButtonArray:Array=new Array("BUT1","BUT2");
var len:Number=createButtonArray.length;

[code]....

View 3 Replies

ActionScript 2.0 :: Changing Color (colour) Using Buttons?

May 19, 2005

I'm trying to make it so when the user clicks a button, it fades from it's current colour to a pre-defined one... simple enough in theory Here's the AS I've got so far:

Code:
var startColour = {r:50,g:100,b:250};
var endColour = {r:250,g:0,b:120};

[code].....

View 2 Replies

ActionScript 2.0 :: Changing Colour Of Clips On Stage?

Oct 25, 2006

I have 20 odd little swfs, each of which will be loaded into a body swf at one point or another.Each of these contains anywhere between 4 and 20 single-colour buttons. What I need is for each of them to simply change colour when rolled over/out. The naming convention is just b1,b2 etc depending on how many said buttons are in each clip.

Code:
this.i = 0;
while(this["b" + (i++)]) {[code]....

View 3 Replies

ActionScript 2.0 :: [Flash8] Changing The Colour Of Text?

Sep 25, 2007

I'm trying to create a crossword puzzle, and I was wondering whether its would be possible to change its colour if the letter was right. For example if the right answer was C and C is entered in the box the letter goes green or something similar.

View 5 Replies

ActionScript 2.0 :: Changing Movie Clip Colour With AS?

Apr 16, 2008

I'm trying to get AS to change the colour of several MC's - but it's not working... I wondered if anyone could please tell me where I've gone wrong? I have 5 large MC squares - when hovered/rolled over they reveal text/colour within. That part works!

What I am trying to achieve is: When rolling over 1 of the squares (i.e. sq1) to tint the colour of the other 4 squares to grey - so that the one that is hovered over is full colour, but the other 4 are greyed out. On rollout of sq1, the other 4 grey squares return to their coloured state.

I worked through the Kirupa - Changing Colours with AS tutorial, and tried to apply that to my situation, but I still can't get it to work.

[Code]...

View 7 Replies

ActionScript 2.0 :: Changing Drawing Board Pen Colour?

Mar 19, 2005

im making a drawing board and i want users to be able to press colours on my swf to be able to change the colour of the pen how can i do this? if you dont know what i mean just check a paint package out and look at how you chose your colour thats what i want to do?

View 9 Replies

Flash :: PrintJob Printing Background Colour Only?

Sep 14, 2010

Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.here's my code:

public function print():void {
//bitmap_to_print.smoothing = true;
var print_page:Sprite = new Sprite();

[code].....

View 1 Replies

Flex :: Change A DropDownList's BackGround Colour?

Sep 17, 2011

This is what I've done so far.

<!-- fill -->
<!--- Defines the appearance of drop-down list's background fill. -->
<s:Rect id="background" left="1" right="1" top="1" bottom="1" >
<s:fill>

[Code].....

If you look closely you'll see that I've changed the default value for the bgFill color. However, when I run my application, the background color for the dropdownlist is still the default white.

View 1 Replies

ActionScript 3.0 :: PrintJob Printing Background Colour Only?

Sep 14, 2010

Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.

ActionScript Code:
public function print():void {
var print_page:Sprite = new Sprite();
var sp:Sprite = new Sprite();

[code]...

View 0 Replies

ActionScript 2.0 :: Change The _root. Background Colour?

Nov 9, 2005

Is it possible to change the _root. background colour with actionscript.

View 5 Replies

Professional :: Text Object - Changing Colour In Animation

Aug 19, 2011

I've created a text object, writing let's say "HELLO". I then made it into a picture, and erased parts of the text, all the while taking frame captures (F6). It ended up looking great, even though I had 900+ frames. However, I now want to change the font colour...in each of the frames. Any easy way to accomplish this, I cannot go frame by frame. The object is in the same place each time, so if I could just put a mask on all the frames or something to change the colour to black, that would be sweet. I followed this tutorial [URL].

View 4 Replies







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