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








Gradient Color Manipulation


I have a shape with gradient color in it, from RED to BLUE.

Is it possible to change the gradient color using ActionScript ?

Thanks




FlashKit > Flash Help > Flash ActionScript
Posted on: 01-04-2004, 05:04 AM


View Complete Forum Thread with Replies

Sponsored Links:

Animated Gradient From Bitmap. (image Manipulation)
A few years ago i found a flash source with gradient animation made from image,
but as i have said it was a few years ago and i can't find this fla over the internet agian

doeas anyone know any examples of gradient animation that is made frombitmap?

TIA

wax

View Replies !    View Related
Animated Gradient From Bitmap.(image Manipulation)
A few years ago i found a flash source with gradient animation made from image,
but as i have said it was a few years ago and i can't find this fla over the internet agian

doeas anyone know any examples of gradient animation that is made frombitmap?

TIA

wax

View Replies !    View Related
How To Change MovieClip RollOver Color(NOT Single Color, But Gradient) Dynamically ?
hi

I have created this for single color.But how to change when it is a gradient color.
for single color rollover code.

Code:
rollcolor = "0xFF0000";
normalcolor = "0x339900";
my_color = new Color(my_mc);
my_mc.onRollOver = function() {
my_color.setRGB(rollcolor);
};
my_mc.onRollOut = function() {
my_color.setRGB(normalcolor);
};
Thanks in advance

View Replies !    View Related
How To Change MovieClip RollOver Color(NOT Single Color, But Gradient) Dynamically ?
hi

I have created this for single color.But how to change when it is a gradient color.
for single color rollover code.

ActionScript Code:
rollcolor = "0xFF0000";
normalcolor = "0x339900";
my_color = new Color(my_mc);
my_mc.onRollOver = function() {
    my_color.setRGB(rollcolor);
};
my_mc.onRollOut = function() {
    my_color.setRGB(normalcolor);
};
Thanks in advance

View Replies !    View Related
Color Manipulation
Is there any easy way to manipulate colors of a clip using ActionScript ?

Suppose I have a clip called "TheClip", how can I change it's RGB color value using ActionScript ?

Any working example (tutorial) ?

Thanks a lot

View Replies !    View Related
Color Value Manipulation
to find the inverse of a colour the following you subtract it from white...

eg..
inverseColor=(0xFFFFFF)-origColor;

however if I just want to keep the same color but want to find a lighter shade of it, how would i work that out?

thanks to any responders J.

View Replies !    View Related
Advanced Color Manipulation
Hello to you all.

I know how to manipulate hex colours by splitting the num bers up and perfoming calcutaions on them using bit-operators. Thats fine...

but i now need to manipulate colour not using the normal RGB. I need to be able to add two colours together like paint. E.g. red and blue equals purple, yellow and blue equals green.

Has anyon e had any experience with this and even more importantly can it be done? (i assume it can... nothings impossible)

cheers

James

View Replies !    View Related
Selective Color Manipulation
Hello all. I've been browsing the forums looking for an answer to a curiosity of mine but to no avail. I was wondering if anyone knows if it's possible to do something like this with AS 2.0:

- The stage contains a text area component filled with random text
- The user wants to change some of the text color from say black to red, but only some of it
- So, much like Microsoft Word, the user highlights the section of the text they want changed and that's where my question arises...

Is there any way to tell what text in the textarea component the user has highlighted so you could change that specific section of the text's color? Not the entire thing, just what is highlighted. Is there any way to do this in AS 2.0? Thanks in advance!





























Edited: 06/28/2007 at 11:44:56 AM by FlashForumName

View Replies !    View Related
Sprite Color Manipulation
Hey guys I have a question about manipulating the color of sprites.

I have a bunch of squares that I created in my document class, and I was able to change the color using colorTransform, but my problem is that I don't want the sprites children to change color too.

I noticed that If the sprite is at 0.5 alpha then the child can still be seen, but if the sprite is 100% visible then it completely covers the children.

What i'm doing is I made a bunch of small squares which Im using to make a slideshow type web page and I add arrows and text to some of the squares for buttons and what-not. I just want to be able to change the color of the squares without changing the color of the text / arrows.


Thanks in advance,

Chris

P.S. I apologize if this is a repeat question, but I looked everywhere.

View Replies !    View Related
Color Like Flash Color+gradient
hi
i am creating a color filling flash in with i want to add colorpicker with gradient color also just like flash color picker .
i know simple colorpicker component implementation but i want gradient with it .Please Give some hint about it .

Thanks in advance
shobha1

View Replies !    View Related
Gradient Color Transformation
Ok yeah, we've all heard of changing colors, and fading things with actionscript, assuming that the object has only one color though! So! What do you do when you have a, ... I don't know a green sphere ... that has a gradient fill from green to a dirty brown green, and you want to use Actionscript to make copies of the same vector, but with a gradient that is slowly going from the green gradient to a red and dark red gradient?

I am sure it is possible by tinting the object, but I am not sure how to write the script myself ... still looking in the reference

Anyway, if you know any method(s) please post, thanks

View Replies !    View Related
Transparent Color In A Gradient
Can anyone tell me how to make a color transparent in a gradient in Flash. Assistace would be most appreciated.

TY in advance...

R

View Replies !    View Related
Preloader Gradient Color
Hi all,
I am building a preloader, everything works fine.
I want to make the preloader white when it first starts and fade to....blue when its at 100%

I have no idea where to put the code, or what the code is for that matter.

If someone has a few seconds to help, I would greatly appreciate it.
Thank you so much!

View Replies !    View Related
Gradient Color Change
I am trying to create a movie clip of a gradient square that gradient colors change smoothly. I have tried to use the shape tween and had no luck. i have also tried messing with alpha. any tips will be appreciated. thanks in advanced

View Replies !    View Related
BG Gradient Color Change
Code:
this.createEmptyMovieClip("port_bg",0);

clients.swapDepths (2)
port_bg._x = (0 - ((Stage.width - 800) / 2));
port_bg._y = (0 - ((Stage.height - 600) / 2));

var color1_mc = 0x4D7F5D;
var color2_mc = 0x223829;
var color3_mc = 0x152219;
var color4_mc = 0x0F1812;

var color1:Number = color1_mc;
var color2:Number = color2_mc;
var color3:Number = color3_mc;
var color4:Number = color4_mc;

ex = ((Stage.width / 2) - (Stage.height / 2) - 150)
var colors:Array = [color1, color2, color3, color4]; //LOCUMS
alphas = [100, 90, 80, 100];
matrix = {matrixType:"box", x:ex, y:0, w:Stage.height, h:Stage.height, r:0};

if (Stage.height < 900) {ratios = [25, 165, 255, 255];}
else {ratios = [25, 145, 220, 255];}

port_bg.lineStyle(0,0x000000,0);
port_bg.moveTo(0,0);
port_bg.beginGradientFill("radial", colors, alphas, ratios, matrix);
port_bg.lineTo(Stage.width,0);
port_bg.lineTo(Stage.width,Stage.height);
port_bg.lineTo(0,Stage.height);
port_bg.lineTo(0,0);
port_bg.endFill();
This is what I've done so far as a background for my liquid flash site. What I hope to do with it is for each page, I'd like to have a different set of colors for the gradient (and a smooth transition between the colors). I want it so that I can change the colors as I click the menu button for each page. I've been able to figure things out up to this point, but now I'm completely stuck.
Tried Ultrashock, tried Actionscript.org. I completely forgot about FlashKit. I sure hope someone knows how.

Any help would be appreciated.
Thanks in advance.

View Replies !    View Related
Gradient Color Change
Code:
this.createEmptyMovieClip("port_bg",0);

clients.swapDepths (2)
port_bg._x = (0 - ((Stage.width - 800) / 2));
port_bg._y = (0 - ((Stage.height - 600) / 2));

var color1_mc = 0x4D7F5D;
var color2_mc = 0x223829;
var color3_mc = 0x152219;
var color4_mc = 0x0F1812;

var color1:Number = color1_mc;
var color2:Number = color2_mc;
var color3:Number = color3_mc;
var color4:Number = color4_mc;

ex = ((Stage.width / 2) - (Stage.height / 2) - 150)
var colors:Array = [color1, color2, color3, color4]; //LOCUMS
alphas = [100, 90, 80, 100];
matrix = {matrixType:"box", x:ex, y:0, w:Stage.height, h:Stage.height, r:0};

if (Stage.height < 900) {ratios = [25, 165, 255, 255];}
else {ratios = [25, 145, 220, 255];}

port_bg.lineStyle(0,0x000000,0);
port_bg.moveTo(0,0);
port_bg.beginGradientFill("radial", colors, alphas, ratios, matrix);
port_bg.lineTo(Stage.width,0);
port_bg.lineTo(Stage.width,Stage.height);
port_bg.lineTo(0,Stage.height);
port_bg.lineTo(0,0);
port_bg.endFill();
This is what I've done so far as a background for my liquid flash site. What I hope to do with it is for each page, I'd like to have a different set of colors for the gradient (and a smooth transition between the colors). I've been able to figure things out up to this point, but now I'm completely stuck.
Any help would be appreciated.
Thanks in advance.

View Replies !    View Related
Can I Use Gradient Color On Text ?
I want to gradient fill my text..but all i can seem to do is make it one color only. is there any way to do it ?

View Replies !    View Related
3 Color Gradient Using Matrix
Im trying to create a simple 3 color gradient in a rectangle object.

It supposed to go from Green --> Yellow --> Red.

Here is the code I am using.. Can't figure out how to add that 3rd color.

Any help would be great! Thanks!
Lance


ActionScript Code:
import flash.geom.*
import flash.display.*

// SET THE VALUES FOR THE GRADIENT FILL
    var fillType:String = GradientType.LINEAR;
    var colors:Array = [0x00CC00, 0xFF0000];
    var alphas:Array = [1, 1];
    var ratios:Array = [0, 0];
    var matr:Matrix = new Matrix();
    var spreadMethod:String = SpreadMethod.PAD;
   
    // DRAW THE 3 COLOR RECTANGLE
    var square:Sprite = new Sprite();
    square.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
    square.graphics.drawRoundRect(100, 100, 90, 35, 10, 10);
    square.graphics.endFill();
    matr.createGradientBox(20, 20, 0, 0, 0);
    addChild(square);

View Replies !    View Related
Color Gradient Transition
Hi,

Any thoughts why this doesn't work? What have i left out? I'd like to transition between two separate gradients each containing three colors. Something is wrong with this script i think.


ActionScript Code:
function animate(ratio) {        // change the ratio position, limiting it between        // 10 and 245...        ratio.x += ratio.speed;        if ((ratio.x>245) || (ratio.x<10)) {                ratio.speed = -ratio.speed;        }        return ratio.x;}////// define the beginGradientFill parameters...matrix = {matrixType:"box", x:0, y:0, w:550, h:100, r:0};colors = [0x00CC66, 0xFFCC00, 0XCC3300];alphas = [100, 100, 100];ratios = [null, null, null];//// set our animated ratio points...ratio1 = {x:15, speed:.5};ratio2 = {x:240, speed:.5};ratio3 = {x:255, speed:.5};//// create our clip and give  it an// onEnterFrame scripr to animate it...//_root.createEmptyMovieClip("clip", 0);clip.onEnterFrame = function() {        // set new point positions        ratio1.x = animate(ratio1);        ratio2.x = animate(ratio2);        ratio3.x = animate(ratio3);        if (ratio1.x<ratio2.x<ratio3.x) {                ratios = [ratio1.x, ratio2.x, ratio3.x];        } else {                ratios = [ratio3.x, ratio2.x, ratio1.x];        }        this.clear();        this.lineStyle(0, 0xff0000, 100);        this.beginGradientFill("linear", colors, alphas, ratios, matrix);        this.moveTo(0, 0);        this.lineTo(550, 0);        this.lineTo(550, 100);        this.lineTo(0, 100);        this.endFill();};

View Replies !    View Related
Color & Gradient Tutorials
Hi All!

I've recently wrote a color tool for ActionScript 3 (mojocolors).

I created two tutorials, one showing how to work with colors:
Color Tutorial

And one to show how to create nice gradients:
Gradient Tutorial

I hope some of you can use it and have fun with it. If you find errors or have questions, please post it here or drop me a mail.


thanks,
P.

View Replies !    View Related
Gradient Color Change
Code:
this.createEmptyMovieClip("port_bg",0);

clients.swapDepths (2)
port_bg._x = (0 - ((Stage.width - 800) / 2));
port_bg._y = (0 - ((Stage.height - 600) / 2));

var color1_mc = 0x4D7F5D;
var color2_mc = 0x223829;
var color3_mc = 0x152219;
var color4_mc = 0x0F1812;

var color1:Number = color1_mc;
var color2:Number = color2_mc;
var color3:Number = color3_mc;
var color4:Number = color4_mc;

ex = ((Stage.width / 2) - (Stage.height / 2) - 150)
var colors:Array = [color1, color2, color3, color4]; //LOCUMS
alphas = [100, 90, 80, 100];
matrix = {matrixType:"box", x:ex, y:0, w:Stage.height, h:Stage.height, r:0};

if (Stage.height < 900) {ratios = [25, 165, 255, 255];}
else {ratios = [25, 145, 220, 255];}

port_bg.lineStyle(0,0x000000,0);
port_bg.moveTo(0,0);
port_bg.beginGradientFill("radial", colors, alphas, ratios, matrix);
port_bg.lineTo(Stage.width,0);
port_bg.lineTo(Stage.width,Stage.height);
port_bg.lineTo(0,Stage.height);
port_bg.lineTo(0,0);
port_bg.endFill();
This is what I've done so far as a background for my liquid flash site. What I hope to do with it is for each page, I'd like to have a different set of colors for the gradient (and a smooth transition between the colors). I've been able to figure things out up to this point, but now I'm completely stuck.

I'm also posting this in Flash 8 because I'm working on it, but if it is more appropriate in the Actionscript category, could a moderator kindly move it for me?
Any help would be appreciated.
Thanks in advance.

View Replies !    View Related
Tip For Gradient Color Changer
(Note:-Here mc means Movie Clip and AS means Action Script)

Hi,
I am Omar and today I will ask as well as tell you a tip about for making Gradient color changer.

1. First Create a mc name it "chip" and make a shape of white color.

2. Then make another mc named "main" and put your chip mc in this mc. Select Chip mc and name it in instance panel "chip"

3. Now create a new layer named DGradient in main mc. Please align the chip mc in the center. Copy the shape of chip mc and paste it on DGradient layer. select the shape and in mixer panel select radial color. For first knob it must be of white color of 0 alpha and for second it must be black with 100 aplha.

4. Drag out the main mc to the stage and just paste the script

ActionScript Code:
onClipEvent (load) {
    colour=new color(chip);
    ColourTransform=new Object();
    Delay=0;
}
onClipEvent (enterFrame) {
    Delay=Delay+1;
    if (Delay>=5) {
        Delay=0;
        Red=ColourTransform.ra=random(255);
        Green=ColourTransform.ga=random(255);
        Blue=ColourTransform.ba=random(255);
        colour.setTransform(ColourTransform);
    }
}

Please Tell me how you like it.. For Explanation of Code ,send me a PM




Use as it is name to work properly

View Replies !    View Related
Color Gradient Transition
Hi,

Any thoughts why this doesn't work? I'd like to have two gradients blending together very very slowly. This script doesn't seem to work though.


ActionScript:

function animate(ratio) {
// change the ratio position, limiting it between
// 10 and 245...
ratio.x += ratio.speed;
if ((ratio.x>245) || (ratio.x<10)) {
ratio.speed = -ratio.speed;
}
return ratio.x;
}
//
//
// define the beginGradientFill parameters...
matrix = {matrixType:"box", x:0, y:0, w:550, h:100, r:0};
colors = [0x00CC66, 0xFFCC00, 0XCC3300];
alphas = [100, 100, 100];
ratios = [null, null, null];
//
// set our animated ratio points...
ratio1 = {x:15, speed:.5};
ratio2 = {x:240, speed:.5};
ratio3 = {x:255, speed:.5};

//
// create our clip and give it an
// onEnterFrame scripr to animate it...
//
_root.createEmptyMovieClip("clip", 0);
clip.onEnterFrame = function() {
// set new point positions
ratio1.x = animate(ratio1);
ratio2.x = animate(ratio2);
ratio3.x = animate(ratio3);
if (ratio1.x<ratio2.x<ratio3.x) {
ratios = [ratio1.x, ratio2.x, ratio3.x];
} else {
ratios = [ratio3.x, ratio2.x, ratio1.x];
}
this.clear();
this.lineStyle(0, 0xff0000, 100);
this.beginGradientFill("linear", colors, alphas, ratios, matrix);
this.moveTo(0, 0);
this.lineTo(550, 0);
this.lineTo(550, 100);
this.lineTo(0, 100);
this.endFill();
};

View Replies !    View Related
Gradient Drawing API Color Picker
Hey,
Here is some code that I just thought I would share. Just paste it into a 550 x 125 pixel movie and it should work fine. Its all code driven and there are no "real" movieclips in it. Any suggestions would be appreciated on how to make it better.
Whats wrong with it? The only thing I could see is that the color doesn't exactly match up with the color the mouse is over. If anyone has any good ideas for that please pass it along. One thing I'd like to do is dynamically generate the colors array based on the distance of the mouseover gradient bar and color spectrum that are needed. Anyway, hope you enjoy.


Code:

//extend the movieclip class so its easier to set the RGB value of a clip - thanks to Robert Penner for this one.
MovieClip.prototype.setRGB = function(colorValue) {
new Color(this).setRGB(colorValue);
}


// create an empty clip to draw to
gradient_mc = createEmptyMovieClip("gradient", 4);
box_mc = createEmptyMovieClip("box", 3);

function drawGrad() {
gradient_mc.clear();
// define 6 colors
colors = [0xFF0000, 0xFFFF00, 0x00FF00, 0x00FFFF, 0x0000FF, 0xFF00FF];
// all of the colors should be opaque
alphas = [100, 100, 100, 100, 100, 100];
ratios = [0x0, 0x33, 0x66, 0x99, 0xCC, 0xFF];
// this takes the mouse position and gets the angle from the
// middle of the gradient as radians.
angle = 0;
// this is our matrix
matrix = {matrixType:"box", x:50, y:50, w:500, h:500, r:angle};
// put all that together in the beginGradientFill
gradient_mc.beginGradientFill("linear", colors, alphas, ratios, matrix);
// draw the bounding box
gradient_mc.lineStyle(1, 0xffffff, 100);
gradient_mc.moveTo(50, 50);
gradient_mc.lineTo(500, 50);
gradient_mc.lineTo(500, 65);
gradient_mc.lineTo(50, 65);
gradient_mc.lineTo(50, 50);
// close up the fill
gradient_mc.endFill();

updateAfterEvent();
}

function drawBox() {

//box_mc.lineStyle(1, 0xFFFFFF, 100); // we dont want an outline.
box_mc.beginFill(0x333333, 100);
box_mc.moveTo(0,0);
box_mc.lineTo(550, 0);
box_mc.lineTo(550, 125);
box_mc.lineTo(0, 125);
box_mc.lineTo(0,0);
box_mc.endFill();
}

function changeBackground() {

var colors = new Array("FF0000", "FF1100", "FF2200","FF3300","FF4400","FF5500","FF6600","FF7700","FF8800","FF9900","FFAA00","FFBB00","FFCC00","FFDD00","FFEE00","FFFF00", "EEFF00","DDFF00","CCFF00","BBFF00","AAFF00","99FF00","88FF00","77FF00","66FF00","55FF00","44FF00","33FF00","22FF00","11FF00","00FF00", "00FF11","00FF22","00FF33","00FF44","00FF55","00FF66","00FF77","00FF88","00FF99","00FFAA","00FFBB","00FFCC","00FFDD","00FFEE","00FFFF", "00EEFF","00DDFF","00CCFF","00BBFF","00AAFF","0099FF","0088FF","0077FF","0066FF","0055FF","0044FF","0033FF","0022FF","0011FF","0000FF", "1100FF","2200FF","3300FF","4400FF","5500FF","6600FF","7700FF","8800FF","9900FF","AA00FF","BB00FF","CC00FF","DD00FF","EE00FF","FF00FF");
//50 is the offset from the left edge of the movie to where the gradient bar begins. I derived 6 by dividing 450 (length of the gradient bar) by the length of the array, to distribute the color spectrum evenly. Obviously its not perfect but still looks cool.
if (Math.floor(_root._xmouse - 50) % 6 == 0) {
box_mc.setRGB("0x"+ colors[Math.floor(_root._xmouse - 50)/6]);
}

}

// call the functions
drawGrad();
drawBox();

gradient_mc.onRollOver = function() {
mouseOver = true;
changeBackground();
}

gradient_mc.onRollOut = function() {
mouseOver = false;
box_mc.setRGB("0x333333");
}


gradient_mc.onMouseMove = function() {
if (mouseOver) {
changeBackground();
}
}

View Replies !    View Related
Changing Gradient Color With Ascript
hi there -
i have a shape that has a gradient fill - i want o change this gradient color from blue to red with the click of a button

how would i do this?

thanks a lot!

View Replies !    View Related
Applying A Gradient Color Without A Form
Imagine a whant to do a spinning sphere. To do that I use a normal Oval form but then i whant to apply a gradient that goes from the inside left to the inside rigth of the sphere.......ok!
To have the effect i aplly a tweening motion to the gradient ( and an APLHA increasing and decreasing gradient)............. itīs like the reflection of a ligth that goes from left to rigth on the sphere.
The problem is:

i only can aplly a gradient color ( this gradient is like a ligth) to a form ( is that true?)
if so, when the gradient appear all is movement , the borders of the form were the gradient exist will be over the inside of the sfere , and that gives me a image (were the gradient is) over the sphere!!!!! (like 2 different images one over the other)


Is there a way to aplly just a gradient ( without a form ) witch can be like smood ON the sphere while itīs in motion, and giving us the inpression that the sphere is speening?

Thanks

View Replies !    View Related
Dynamic Color With Gradient Fill
Hi there,
I'm trying to figure out how to use dynamic colors within a gradient fill. This borrowed script works fine with hex colours, however when I use a dynamic field in there it doesn't take (line 2). It seems to not like the square brackets -the line style (a few lines down), has no problem taking the dynamic field. Any help would be appreciated..
Thanks

fillType = "linear";
colors = [_root.rollcolour,0x0000FF, 0x0000FF];
alphas = [75, 100, 25];
ratios = [50, 100, 200];
matrix = {matrixType:"box", x:200, y:150, w:150, h:100, r:0/180*Math.PI};
_root.lineStyle(0, _root.rollcolour, 100);
_root.beginGradientFill(fillType, colors, alphas, ratios, matrix);
_root.moveTo(200, 100);
_root.lineTo(350, 100);
_root.lineTo(350, 200);
_root.lineTo(200, 200);
_root.lineTo(200, 100);
_root.endFill();

View Replies !    View Related
Color Banding On A Large Gradient, How To Fix?
I am trying to get a nice clean simple gradient going accross my mc. Using this code:

Code:
var fillType:String = GradientType.LINEAR;
// Orange var colors:Array = [0xde892e, 0x9b560c];
var colors:Array = [0x263a3c, 0x1d2223];
var alphas:Array = [100, 100];
var ratios:Array = [0x00, 0xFF];
var matr:Matrix = new Matrix();
matr.createGradientBox(this.stage.stageWidth, this.stage.stageWidth, 1, 0, 0);
var spreadMethod:String = SpreadMethod.PAD;
this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
this.graphics.drawRect(0, 0, this.stage.stageWidth, this.stage.stageHeight);
this.graphics.endFill();
It works fine, except it causes huge banding on a large canvas. It looks fine when i shrink the movie down so it compresses the bands.


So my question is simple, how can i reduce the banding? Is it simply because there are a limited number of colors in the hex color range? So when colors are close to each other, and spread cross a large area, there is no find gradient between the two? Because it looks fine if i go froma very light color to a very dark color.. but then it defeats the color range i want.

View Replies !    View Related
Read Color Gradient Informations?
Hi,

is it possible to read out the informations of a gradient fill from an existing movieclip (fillType:String, colors:Array, alphas:Array, ratios:Array, matrix:Object, [spreadMethod:String], [interpolationMethod:String], [focalPointRatio:Number]) ?

Thanks.

View Replies !    View Related
How Do I Delete The Gradient Color Tabs?
In the Color Mixer window while Linear fill or Radial fill is selected, a long, thin, horizontal gradient preview shows what your current gradient looks like. Upon this preview are sliders you can use to mix up your gradient, and add more colors.

How do I delete/remove these so that I can get rid of superfluous tabs and be left with only the original two?

View Replies !    View Related
Applying A Gradient Color Without A Form
Imagine a whant to do a spinning sphere. To do that I use a normal Oval form but then i whant to apply a gradient that goes from the inside left to the inside rigth of the sphere.......ok!
To have the effect i aplly a tweening motion to the gradient ( and an APLHA increasing and decreasing gradient)............. itīs like the reflection of a ligth that goes from left to rigth on the sphere.
The problem is:

i only can aplly a gradient color ( this gradient is like a ligth) to a form ( is that true?)
if so, when the gradient appear all is movement , the borders of the form were the gradient exist will be over the inside of the sfere , and that gives me a image (were the gradient is) over the sphere!!!!! (like 2 different images one over the other)


Is there a way to aplly just a gradient ( without a form ) witch can be like smood ON the sphere while itīs in motion, and giving us the inpression that the sphere is speening?

Thanks

View Replies !    View Related
Gradient Color Display Problems
Hello all,

My problem deals with the gradient colors and how they won't display correctly, or not at all. Here's my website:
http://lynnandjanuel.com (a work in progress, of course)

When you click on the different buttons it brings you to different screens. Each of those screens has different gradients behind the text. Now, when I edit those gradients in flash, they are displayed smoothly, with so much gradient-goodness. But, when I publish and upload the .fla, the gradients seem choppy on the display, and some have bizarre lines running through them. I want them to be sharp and smooth, like in the edit mode.
Can this be corrected in the Publish settings? Or is it a problem of computer performance, too many layers or too much data in the .swf, or all of the above? I do have a lot of garbage in the .fla that I haven't gotten around to deleting yet, but I'm not sure that would be the problem.

Any help is greatly appreciated.

View Replies !    View Related
Gradient Color Display Problems
Gradient Color Display Problems
Hello all,

My problem deals with the gradient colors and how they won't display correctly, or not at all. Here's my website:
http://lynnandjanuel.com (a work in progress, of course)

When you click on the different buttons it brings you to different screens. Each of those screens has different gradients behind the text. Now, when I edit those gradients in flash, they are displayed smoothly, with so much gradient-goodness. But, when I publish and upload the .fla, the gradients seem choppy on the display, and some have bizarre lines running through them. I want them to be sharp and smooth, like in the edit mode.
Can this be corrected in the Publish settings? Or is it a problem of computer performance, too many layers or too much data in the .swf, or all of the above? I do have a lot of garbage in the .fla that I haven't gotten around to deleting yet, but I'm not sure that would be the problem.

Any help is greatly appreciated.

View Replies !    View Related
Mc_tween Engine - Gradient Color
is it possible to achieve a gradient color with mc_tween engine?

View Replies !    View Related
Applying A Gradient Color Without A Form
Imagine a whant to do a spinning sphere. To do that I use a normal Oval form but then i whant to apply a gradient that goes from the inside left to the inside rigth of the sphere.......ok!
To have the effect i aplly a tweening motion to the gradient ( and an APLHA increasing and decreasing gradient)............. itīs like the reflection of a ligth that goes from left to rigth on the sphere.
The problem is:

i only can aplly a gradient color ( this gradient is like a ligth) to a form ( is that true?)
if so, when the gradient appear all is movement , the borders of the form were the gradient exist will be over the inside of the sfere , and that gives me a image (were the gradient is) over the sphere!!!!! (like 2 different images one over the other)


Is there a way to aplly just a gradient ( without a form ) witch can be like smood ON the sphere while itīs in motion, and giving us the inpression that the sphere is speening?

Thanks

View Replies !    View Related
Changing The Color Gradient Dynamically
i am in deep trouble as my bose gave me a problem to solve.I was asked to change the color of the bg dynamically(color in the sense, the gradient ) the shade of the bg shud increase as the value which is fetched from a text file increases.
i cud fetch the value from the text file & cud make the movieclip play dynamically according to the value but dont know how to change the bg color gradient.the problem is that we have objects in the movieclip and that shud not be changed & only the bg layer's color shud be changed. plzz help me come out of this problem



luv
Andrew

View Replies !    View Related
Color Fade Into Background Image (using A Gradient), Who Knows How
I have an image of a house that I want the color blue to 'fade' into the house.
In photoshop, I would do this using the eraser tool, and just erase using the background eraser tool.
In flash mx, since the image of the house is a symbol, I cant exactly use the method of erasing,or can I
I would assume I would have to use the gradient tool and go from the blue color to the background color (which the background would be the image of the house )


How would I do this .
Post back if this is not clear.

Thanks

View Replies !    View Related
Gradient Color Values Stored In Arrays ?
Hi,
A question about setting colors when using the mx drawing api.
I want to fill an array with color values with a script. I have no idea how ... maybe something like.???

col = the base color;
incr = the gradient increment.

colorArray=new Array();
for(j=0;j<100;j++){
colorArray[j]=col+=incr;
}

If I wanted to fill an array with color values from say blue to black how do I do this??

Shipstern

View Replies !    View Related
Transform An MC Fill Color From Plain To Gradient
How can i transform the fill color of a custom shape from plain fill (rgb color) to a gradient fill ??

View Replies !    View Related
Color Fade Into Background Image (using A Gradient), Who Knows How
I have an image of a house that I want the color blue to 'fade' into the house.
In photoshop, I would do this using the eraser tool, and just erase using the background eraser tool.
In flash mx, since the image of the house is a symbol, I cant exactly use the method of erasing,or can I
I would assume I would have to use the gradient tool and go from the blue color to the background color (which the background would be the image of the house )


How would I do this .
Post back if this is not clear.

Thanks

View Replies !    View Related
Color Fade Into Background Image (using A Gradient), Who Knows How
I have an image of a house that I want the color blue to 'fade' into the house.
In photoshop, I would do this using the eraser tool, and just erase using the background eraser tool.
In flash mx, since the image of the house is a symbol, I cant exactly use the method of erasing,or can I
I would assume I would have to use the gradient tool and go from the blue color to the background color (which the background would be the image of the house )


How would I do this .
Post back if this is not clear.

Thanks

View Replies !    View Related
Color Differences Between Flash & Bg (photoshop) Gradient
I tried searching the forum for this one and came up with nothing. I used a gradient in photoshop for the background for a site i am building, my nav is in flash and i took the hex color value of the background from the top of the nav and the hex color value of the background from the bottom of the nav in the gradient so that my background in flash would match the design, however, when i put them together in dreamweaver, the background colors are off.

are colors rendered differently between flash and photoshop? is there any way to fix this aside from trial and error?

View Replies !    View Related
Saving Gradient Colors In The Color Mixer/Swatches?
hey guys, i basically would love to save some of the gradients im making to reuse them over and over, even if it's simply in the current project im working on?

is there a way to do that?

View Replies !    View Related
From Gradient Dynamic Text, To Gradient Dynamic Image.
Earlier I had a huge struggle getting to be able to place a gradient on Dynamic text, where the text is entered using Action Script. I figured it out though. Now I am wanting to place a gradient fade on a Dynamic Image, using loadMovie.

Here is the code I used for Dynamic Text Gradient

Code:
OS.text_mc.dtext.text ="woot"
OS.mask_mc.setMask(OS.text_mc);
I tried to change it to loadMovie, and place a jpg image into the same folder as the .swf but it isnt gradienting. I get the image, just no gradient. Some help would be much appreciated.

Here is the FLA to the Dynamic Text Gradient:
GradientText.fla

View Replies !    View Related
How Is This Txt Manipulation Done?
Hello,

I need some help please!

I am working on a project where the user picks a font, types a message and can manipulate the text once added. I have searched all over for clues on how this is done with no luck.

I am attaching a .jpg of a site that has something similar that I need to do for reference, and here is the link http:// www.designAShirt.com.

Any help pointing me in the right direction would be greatly appreciated.

xcaliber

View Replies !    View Related
XML Manipulation
Hi,

Can anyone tell me how I would go about using E4X XML processing to return the elements labelled "//this" below. I have tried using things like conditions.descendants() which will return the greater and lessThan elements, but that ignores the equalityCondition elements.

Is there some easy solution I am over looking?



Code:
<conditions>
<equalityCondition questionID="id5" response="1" /> // this
<andGroup> // not this
<greaterThanCondition quesitonID="id6" response="-1" /> // this
<lessThanCondition quesitonID="id3" response="2" /> // this
</andGroup> // not this
</conditions>


Thanks in advance

View Replies !    View Related
XML Manipulation
Hi, I'm a beginner in this stuf and I want to do in flash a simple prices table (a list) that I "import" from Excel and I transformed in XML throught FileMaker.
I'm lost in many information and I want a good source of information in order to understand that (if possible in portuguese or spanish).

Thanks in advance

View Replies !    View Related
OT: XML Manipulation
This is a bit off topic, but not entirely un-Flash related. I'm doing some on-line training that has some questions at the end. I'm converting a course made by somebody else into our system. The existing questions are in an XML format and have various attributes and such that we don't use. Additionally for example their code marks the correct answer with a "1" and we use "true" etc.

I'm hoping to find some kind of tool for manipulating XML in an easy way. Anybody have any tips?

View Replies !    View Related
Variable Manipulation
hey
i'm trying to make a guest book, but when i try sending data that has html tags to my php3 script, it gets cut off so what i want to do is replace some of the html tags.

if i type in:
"This is a test message
From PaladinL"
into a text box that has html checked off
the real data looks like this:

<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000">This is a test message</FONT></P><P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000">from PaladinL</FONT></P>

now what i want to know how to do is
transform

<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000">This is a test message</FONT></P>
<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000">from PaladinL</FONT></P>

into
this:
This is a test message
lFrom PaladinL

basically i want to remove all the:
<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000">

and replace all the:
</FONT></P>
with:
l

how can i do this?
i really need to know how to do this for my guest book
thanks to anyone who helps

View Replies !    View Related
String Manipulation
Im thinking about creating an application which loads text from an external file and displays it on screen.

What I need to do is some way of making sure that the text string has the apropriate format where words are not split in half when a new line is added.

Does anyone know of any good examples like this?

View Replies !    View Related
Photo Manipulation?
Is there any way to work with photos after they've been brought into Flash? I'm wondering if some of the drawing functions can be used to manipulate them. Also, can I get photos to change scale like text?

View Replies !    View Related
Copyright Đ 2005-08 www.BigResource.com, All rights reserved