ActionScript 3.0 :: Can Set Colour Of Stage
May 5, 2009
i have a few rectangles and text fields that i have in my library but i exported them through actionscript. All i want to know id how do i set the rectangle behind the text fields.And i also want to know how i can set the colour of the stage
View 3 Replies
Similar Posts:
Apr 13, 2011
Is there a way I can change the stage colour using a list box for example Inside a list colours -
-Red
-Green
-Blue
When the user chooses red, the stage colour would change to red.
View 1 Replies
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
Nov 14, 2009
I am using the drawRect() method. The only way I know how to colour something is by using beginFill and endFill(). But if it's already drawn then how can I change it? It
View 2 Replies
Jul 31, 2009
i have a "Textinput" textbox on stage i named it the instance name "tf" , How can i change the size, font colour, font?
i tried this , but it only works if ure calling out from script How can i make it work if my textbox is on Stage with an instance name "tf" ??
Code: Select all var tf:TextFormat = new TextFormat();
tf.size = 25;
tf.color = "#FEFEFE";
var ti:TextInput = new TextInput();
[Code].....
View 1 Replies
May 9, 2011
I've got two functions running that change the colour of certain objects within my stage. I'm wondering if I can combine them into one which would half the code (and eventually quarter the code because I'm planning on adding two more colours).
[Code]...
View 3 Replies
Apr 27, 2005
how do you control the backround colour of a movie clip and the stage? i have thought about placing a mc within the mc as a backround_mc, then change the tint attribute from my main timeline, is this on the right track?
i have a movie where a user loads images into an image viewer (mc) i have craeted. If a user clicks on gallery 1, the loader appears, and load the jpg and then tells the viewer to show onceloaded. But, if a user clicks on gallery 1, then clicks on gallery 2, the movie finishes loading picture 1, before loading picture 2, is there any waqy i can force the loader to stop loading one,a dn load two immediately.
I have careted a class, now, how do i assign an mc to be an object of that class, from the main timeline or the onclipevent load event
View 3 Replies
Aug 5, 2009
I'm new to actionscript 3 but I do have a little actionscript 2, but, what I want to do is change the colour of a movie clip or the stage using local time. From what I could gather you can't change the stage colour but you can change the colour of a movie clip.[code]...
View 3 Replies
Jul 14, 2010
I want to create a flash document that allows me to change the colous of an image using a colour palette of my own. I am a complete beginner and have no idea where to start this, hence i would need to know what to do and how to do it. I basically want the image to be a simple 2d image that i will create using different layers in photoshop and import them into flash, the layer images will all be one colour so the colour of the whole layer changes. so the colour palette will be on the side of this and when i click on an image and then a colour the image changes to the colour i clicked.
View 3 Replies
Oct 31, 2011
I am parsing colour codes that I get from a Flex(Flash ActionScript) application, then creating HTML div elements with that same colour. My Problem: The colours are all only 8 digits long. So they cant be RGB colour values can they? What color value format are they in? If I can figure the format they are in I can convert them to RGB. Maybe the last/first digit signifies its 0. alpha value?
PS: Should I convert the colours to RGB or something else?
This is an example of the colour code values I getting from the flash application:
View 1 Replies
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
Jul 24, 2007
I need to change all the elements in my movie that have the color X and change their color to color Y. Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?
View 1 Replies
Jun 18, 2009
Below I have set up a movieclip and now I want to set the colour
Code:
this.attachMovie("bgimg","bgimg_mc",this.getNextHighestDepth());
bgimg_mc._x = 10;
bgimg_mc._y = 96;
I dont want to tween the colour just set it something like Code: bgimg_mc._colour = #ffffff I know that's not how to do it but you get what I mean from that.
View 8 Replies
Jan 21, 2010
Why does this not work?
Code:
package
{
[code]......
View 3 Replies
Jun 21, 2010
I have a psd that is to be the background of a flash site that i'm working on. I've tried every combination of exporting from photoshop and flash but the end result (in the browser) is always significantly brighter.Does anyone know what the best prossess for keeping the colour of imported raster content accurate in swf while keeping the size moderate?
View 1 Replies
Jul 28, 2009
Currently I skin videos with Steel External no volume. However my client wants a lighter grey, not as light as Mojhave but lighter than steel. I wonder if anyone knows if I can get other coloured flash skins (just the basic ones) from anywhere. Im happy to purchase but all I can find are fancy skins rather than just more variety of the standard skins.
View 1 Replies
Sep 7, 2009
I'm having a problem I haven't seen before with a Flash application I'm working on. I have attached two images of a part of the screen: one is taken with 16 bit color setting and the other with 32 bits. The texts are standard dynamic text fields.when i view the app at 32 bits all colors seem to be OK, but when I set it at 16 the textboxes seem to have a different background color, even though it's set to transparent!
View 1 Replies
Nov 13, 2009
I have this code in a function to change the colour of a mc called Tab1. It works fine. But when the mc is tweened it doesn't move. If I don't change it's colour with this function it tweens fine. What have I done wrong?
[Code]...
View 3 Replies
Jul 14, 2009
I want to take the colour of a certain pixel in a movieclip and make the colour of another movieclip that colour. How do I do that?
View 1 Replies
Apr 15, 2007
Is there a way of tweening colour using actionscript. Like you would using an alpha fade but using color instead.Say I have a button that once pushed it turns a square from orange to blue, but gradually fading.
View 3 Replies
Nov 21, 2009
I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked. Do I make a duplicate symbol which is already red to replace it when clicked? And I'm also unsure of the actions I'm supposed to use if any??
View 1 Replies
Jun 21, 2010
I have a psd that is to be the background of a flash site that i'm working on. I've tried every combination of exporting from photoshop and flash but the end result (in the browser) is always significantly brighter. Does anyone know what the best prossess for keeping the colour of imported raster content accurate in swf while keeping the size moderate
View 1 Replies
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
Jul 22, 2007
I'm sure this question has been tackled previously, but is it possible to change the colour of the artboard in CS3 from white, or even get a line around the document?
View 8 Replies
Oct 6, 2009
The goal is to have a link to a url, that changes colour when you roll the mouse over it. I'd rather it wasn't a btn as there are a lot of links similar and it would be very time consuming to change them all to symbols and stuff. I'm using flash CS4 [AS2]. Currently, I have a dynamic text box on the stage and a link in the link box. ***please see attatched screenshot*** Please can someone send over some AS2 script that I can use to change the colour of the text on mouseover?
View 3 Replies
Nov 21, 2009
I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked to show that it's selected. Do I make a duplicate symbol which is already red to replace it when clicked? And I'm also unsure of the actions I'm supposed to use if any??Another thing, when I click on a different button, I don't want the previous button to still be selected.
View 1 Replies
Mar 13, 2010
CS4 - Colour fill for on clicking?
View 2 Replies
Jul 6, 2010
what i am trying to do is add some script to buttons within a movie that will fade/tween the background movieclip to a predefined (not random) colour.does anyone know of any resource/posts/tuts to do this?so the user clicks a button and the main bg mc goes from say, yellow to orange with a faded transition?
View 2 Replies
Sep 21, 2010
I'm currently adapting the flash file "levTextSpace" from [URL]. Everythings working fine except for one teensy weensy little problemette. I want to be able to assign a random colour to each word as it appears on stage. The generic code I have for this is:
var myColor = Math.round(Math.random()*0xFFFFFF);
myRdmColor = new Color ("target");
myRdnColor.setRGB(myColor);
"target" being the name of a movieclip. I'm assuming I need to apply this to each instance as it's created but anything I try either doesn't work at all or crashes. I'm completely stuck, I'm sure it can't be that difficult but after several days ny head hurts.
View 2 Replies
Mar 8, 2011
He doesn't do much, just an integer what adopts a value between 0-100. I also have a line drawing function. He does lots of things and draws lots of pretty lines. All in just one colour mind.I'd like to be able to change that colour based upon the value of 'n', but I don't know how to convert this integer into the 0x000000-0xFFFFFF format used by linestyle. I can scale and convert 0-100 into a hex string but I'm stumped at how to prepend 0x to the string and how to use this within linestyle...Here's what I have so far....
//rgb = n*16777215/100;
//hex = rgb.toString(16);
//mcImage.lineStyle(1, 0x000000, 100, true, "normal", "none");
[code].....
View 2 Replies