Use 'web Only' Colors?
Aug 11, 2009If I'm creating a Flash file (ActionScript 3.0) based off of a Photoshop file, do I need to use web only colors in Photoshop? I creating a pop-up page for a site.
View 6 RepliesIf I'm creating a Flash file (ActionScript 3.0) based off of a Photoshop file, do I need to use web only colors in Photoshop? I creating a pop-up page for a site.
View 6 RepliesI wonder what kind of class(es) I should use to accomplish this task. I have two predefined colors, 0xFF0000 and 0x00FF00 (red and green), and I would like to set a number of gradiants of colors between these two colors. [code]This generates a random color, but I don't want to generate just any random one. Does anyone know what kind of color class I should use to accomplish my task objective?
View 5 RepliesI want to make a box that changes color when the mouse rolls over it, and changes randomly between 10 different colors.
View 1 RepliesI am trying to style a DataGrid component so that the background is transparent (Flex 4). Rgba colors work fine if I make "alternatingItemColors" an attribute on the component, but if I try to declare it in my css stylesheet, I cannot declare the alpha value.
Works (mxml):
<mx:DataGrid id="songGrid" width="800" height="529" dataProvider="{songs}" itemClick="handleRowClick(event);" x="145" y="168" headerStyleName="dataGridHeader" alternatingItemColors="[0xFFFFFFFF, 0xFFFFFFFF]">
[Code]...
If I enter the values as "0xFFFFFFFF", I get a parse error, because it's not proper css (of course, most of flex's css isn't proper css, but I digress...). So, is there any way to declare the alpha value of these colors in the css?
I used the example of the "Changing Colors Using ActionScript" from your site to add to a rollover state on a movieClip. It works fine but how to I reverse the state when I rollOut. eg goes to black on rollOver and then back to its original full color image on rollOut?
View 3 RepliesI'm working on a Mac. Now I made a site and when I compare colors on pc I get a huge difference:s. My green grey looks like it's black. How do you manage to get the colors wright on both platforms? The calibration of my screen is perfect for print.
View 1 RepliesI've searched a few times, but I can't seem to find how to reverse this formula which takes Visual Basic's BGR format and turns it into RGB: var RGB = (color & 0x000000ff) << 16 | (color & 0x0000FF00) | (color & 0x00FF0000) >> 16 I need to take the RGB and turn it into BGR to feed into VB. I'm sure it's a simple bitwise operation, but I keep getting weird effects, like blue turns to green when it converts.
View 3 RepliesI have my first color from some code I found, so I did a screencap & sampled it in PhotoShop to get the hex color for the color chip that changes my grayscale bitmap to that color on rollover.
Code:
myColorTransform.ra = 50;
myColorTransform.rb = 244;
myColorTransform.ga = 40;
myColorTransform.gb = 112;
[code]....
hex is about #f9c480 and I'm cool with my first accidental color. But how do I get more colors. How to start with a hex color and figure out what to put for rb, ga, ba, etc?
I have several (300 actually) movie clips, just plain shapes, which I would like to change colors randomly by fading from one color to another. I would like each one to be different, so they don't appear as if they are all changing at the same time. Sort of a psychedelic effect...I've searched the web day and night and can't find anything thing even close.
View 14 RepliesI'm in a bit of a pickle with this problem. How the heck can I create a function which rotates a uint value gradually through all colors? E.g, start with red, fade to yellow, then green, blue etc. over time then back to red.een rattling my noggin (and google) now for a while but come up with noBthing that wouldn't be insanely long-winded. There must be an easy-ish way to do this?
View 5 RepliesIve been editing a template for a photography website (in flash) but she wanted the font changed through out the site and the colour of this font changed to. Ive been playing around with it and managed to chage the font but only for some of it, but what ever im doing is having a knock on affect with other parts of the site.I have a index page and various other files and folders but dont know if im looking in the correct place.When i look at the libary of contents its not very clear what is what and cant see anything reffrencing the text.
View 1 RepliesActually I am starting with AS, but what I see is that some tutoriales, have the script in blue, and other letters in green and red, is that important?
View 2 RepliesI'm trying to make an array of colors. I have uint's representing my colors now:
var btnColor:uint;
btnColor = 0x999999;
But when I trace these button colors, they come out funny.The color above comes out as:
10066329
And this is the way they get pushed into my array. I tried converting them to Strings:
arrBtncolor.push(String(btnColor));
But it was the same 10066329 that got put into the array. It must be a small thing I'm doing wrong, but so far, I haven't figured out what it is.
I'm trying to make an array of colors. I have uint's representing my colors now:
var btnColor:uint;
btnColor = 0x999999;
But when I trace these button colors, they come out funny. The color above comes out as:
10066329
And this is the way they get pushed into my array. I tried converting them to Strings:
arrBtncolor.push(String(btnColor));
But it was the same 10066329 that got put into the array.
I am exporting a RGB Illustration done in Photoshop with really strong colours. I export it for my website from the option save for web, (I also tried save as with all kind of formats) but the colors get really pale when I took it in Flash. I don't understand, the same image has really bright strong colors in Photoshop. I tried to play with the option from flash - color- advanced- alpha,but they just get darker or wierder.
View 9 RepliesIn coloring an object using the toolbar fill palette, I'd like to simply be able to double click on the color swatch in the toolbar, rather than click on the swatch and mouse down to the color and click again with the eyedropper. What's happening is that the color swatch in the toolbar contains a variety of colors around the one that it nominally represents. e.g. If the swatch is ff0000, double clicking on the swatch is likely to color the selected object anywhere from f30000 to fe0000 depending on precisely where in the swatch you double click.
View 1 Repliesi need to change the animated logo's color in the left from green to blue.I have never done anything in flash before, this is the first time i've used the program, but so far i was able to figure out how to change the navigation and bar color and the text. but i can't seem to see where the color of this logo is coming from....
In screentshot 1 you can see that the Logo_Anim is made up of the Logo_1 - Logo_5 movie clips.Each of the logo_# clips is a piece of the logo.I'm not sure if something in the Logo_Anim is controlling the change in color of each piece of the logo, but it doesn't seem like the indiviual logo_#'s have any kind of setting..
I imported a .psd file that I created with Photoshop CS4 into Flash CS4 and the colors did not transfer over correctly. The colors (specifically the green text coloring) is a lot lighter/paler than they were in photoshop. How do I import a .psd over to Flash without the colors I used in Photoshop. Attached are a .jpeg image of what the photoshop file looks like and the resulting .SWF file after importing the .psd file.
View 2 RepliesIs there a file or some code I could make in order to add an extra color or two for syntax highlighting? Like having a certain color for function names and a different one for numbers etc.?
View 1 RepliesWhen I import layers from Photoshop CS5 into Flash CS5 the colors aren't nearly as bright or as rich. I can compensate by increasing the saturation in PS5, resaving the file, and then re-importing it back into Flash. But it's hit and miss to get it right. It also usually takes several tries. I've tried uping the color in Flash by using the Properties panel for the individual files or movie clip but it's not the same.
View 1 RepliesWell the heading is basically what my question is:
How can I have different colors for different tabs in SuperTabNavigator.
Below is the code to my SuperTabNavigator with three tabs:
<containers:SuperTabNavigator x="0"
y="10"
width="100%"
[Code].....
I want to have different color for every different tab.
How should I do this.
I know there is a firstTabStyleName and lastTabStyleName: is there any way to have the secondTab or the middleTab
I've got some text that includes links that I display in a RichEditableText component. How do I change the color of the links from the default blue? I tried the example posted by Peter deHaan but it doesn't work with SDK 4.1. I found a way to do this in MXML, but the text needs to be localizable which means I load it at runtime based on the locale, so I can't just include it inline with the MXML.
To recap: How do I set the link colors for a RichEditableText component that displays HTML that gets loaded at runtime?
I've been using a pipeline of copying complex vector data from Adobe Illustrator and pasting it into Flash Professional.In most instances, especially in the first instance, the colors during the import will remain the same, but sometimes they come in faded.This has happened across several versions of both software.This is the typical AI Import dialog, with layers not maintained and vector.it could potentially save me a lot of time I usually spend tweaking back to it's AI appearance.
View 1 RepliesI want to reproduce Photoshop's Replace Color feature in AS3. Here is what i want to achieve on 8-bit images:[URL]..I want the user to be able to :
1 - select a color using an 'eyedropper'
2 - select a threshold ( example : http://cl.ly/3J3Q1f1M242E2Q1z0F25 )
3 - select a replacement color
it is important that the color replacement blends well and does not have banding/dithering.
I want to appear one of a set of colors randomly on timer fire using the below code:
var myTimer:Timer = new Timer(1000);
myTimer.addEventListener(TimerEvent.TIMER, timerFunction);
function timerFunction(event:TimerEvent) {
[Code].....
This works to randomly generate a color, but I want to call one of a set of colors. this.graphics.beginFill only takes a numeric value or a fixed color value.
How would I add the var here to activate my set?
var myArray:Array=new Array("0x000000","0x0000FF","0x00FFF0","0x0FFFFF") ;
var i:int;
for(i=0;i<myArray.length;i++){
I want to change the color of many text fields at once. I created an array, then a for each loop where I datatype the var to a TextField. For some reason, Flash reads this variable as a String, so I can't change the text field's color.
[Code]....
I have managed to color the rows of a data grid object separately, however giving them a nice tween effect is proving to be more tricky. I wish to make it so that when a row is edited it turns gray and then fades back to white.When I edit a single row this works fine. But when I edit a second row the tween shows up on both of them. The sprite sent to gridColor is indeed the same independently of which line I am editing (weird imo).(Each element in my dataprovider has two extra values color and color_to so that it knows when to tween. )Managed to solve it by looking at the datagrid source code and playing around. Below is the solution:
ActionScript Code:
package Controls
{
[code]....
I'm working on a school project that will work so that a webcam can scan a grid of colors and determine what color it is and there by playing a sound tha is connected to that color. You can then create music by drawing different colors on a grid.I know that this is doable in AS3, I just don't know how exactly since im kind of new to this.So i managed to import the webcam image to flash, and that's all. How do I Proceed?
* How do i get the webcam to detect colors? (Green, Blue, Red, Yellow and Black)
* How do i connect these color detections to start playing a sound/movieclip?
i have this code which used to work if all movie clips were on the same layer, when i put them on different layers it stopped working. i have created a blank layer to carry thew action scripting. what do i need to do to make this work?
var colorend = color1;
var awaycolorend = color2;
circGK.onMouseMove = function ()
[code]......
I am trying to figure out a way to add 2 colors (hex values) to generate a new color.I am not sure as to how this can be computed. Is the new color an average of the hex values of the 2 colors?
View 7 Replies