Linear Gradient
Hi everyone I have a little question about liner graidents Whenever i try to make a the gradient looks horizontal I can't! I just don't know how to do it..it is by default set to vertical..how could i change it to horizontal? Any help is highly appreciated it! Thanks in advance
FlashKit > Flash Help > Flash Newbies
Posted on: 02-01-2002, 01:58 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Linear? Gradient
argh,
this isn't really an ActionScript question, but does anyone have any idea about the curve used to produce the 'linear' gradient??
I was hoping that if I had two gradients
from 0% to 100% (/)
and
from 100% to 0% ()
then when laid one over the other, I would have a solid shape
this is far from true, it's still fairly transparent
does anyone know how transparency is combined, I would have thought that they were just added together
I guess if flash had some kind of control over the gradient curve...
any ideas from all you clever people
cheers,
glenn
Linear Gradient
When I click on a linear or radial gradient, it doesn't register the colors being used.
Example:
I created a button with a linear gradient blue/white. Later on I created something else with red/black.
If I click on the first button I created, the Color Mixer shows red/black and it doesn't change to the blue/white that I used. This feature does work in Flash 5 and it's driving me crazy, please help!
Linear Gradient
how do you change a horizontal linear gradient to a vertical linear gradient.
i use to just rotate boxes and shapes, but you can't do that with text
Linear Gradient
On linear gradient, how do I delete those little paint buckets?
I know how to add them, but now I have too.
Thanks
Ecinele
Linear Gradient Direction Help
In my program i want to change my linear gradient's direction so it goes verticly instead of horizontally. How can i change the direction?
Vertical Linear Gradient
Is it possible to create a vertical linear gradient with the colour mixer instead of a horizontal one? Flash only seems to provide a horizontal linear gradient.
Thanks
Control Linear Gradient Dynamically
Hi!
I would like to control a linear gradient dynamically. e.g. I have a bar with 4 different colours, and depending on the choices of the viewers, the colours would change, and also their relative position.
I know how to change the colour of whole movieClip with .setRGB / .new color(), but I do not know how to connect this property with the gradient!
Thank you.
TP
Changing Linear Gradient Source, Is It Possible?
I'm fairly new to flash and I was wondering about how can I determine source lightning gradient like in Illustrator in Flash.
Like the gradient tool in Illustrator the elastic thing that can make you change a gradient source light by the start of the elastic and the shadow on the end of the elastic.
I don't know how to describe it, but if you get my Idea I am trying to figure how to do this in Flash if it possible.
Is it possible??
thanks
Dynamic Gradient Linear Fill
I have a 600x200 Pixel Box and want to change its color dynamicaly (with an Array of Colors maybe?) to a Linear Gradient Fill with 4 Colors (Red,Blue,Yellow and Cyan).
Can any1 help me out with this???
I'm Having Trouble Creating A Linear Gradient
I am trying to create a linear gradient, with beginGradientFill.
I need it to be a solid color. The middle needs to have an alpha value, and both ends need to fade out to 0.
This is acting weird:
PHP Code:
var backdrop:Sprite = new Sprite(); backdrop.graphics.beginGradientFill('linear', [gradColor,gradColor,gradColor], [0,1,0], [0,128,255]); backdrop.graphics.drawRect(0, 0, 100, 60); addChild(backdrop);
Any idea why?
Linear Gradient Becomes Radial On Publish?
Hi
I have a flag flappin gin the wind, and am shape tweening 2 instances of it. Each instance has a similar colored linear gradient in it, witht he second instance moving the gradient so when you view it, the shadows and highlights move as the flag flaps.
When I scrub this in look correct. But when I publish, my l inear gradient is suddenly radial.
If I do not move the gradient at all between the two instances it works fine. But obviously me being a perfectionist would like the gradient to move.
Anyone have this problem before?
Any ideas?
Linear Moving Bar
Hi
I am creating some tutorials in flash. I am a very basic actionscript bod, I am learning though. I have created a time line bar that tells you how much of the tutorial is left. I want to put a button on it or a movie clip that is draggable so you can scroll along the timeline if you missed a bit.
Can anyone help please?
Here is an example of what i need http://www.computer-training-software.com/flash5.htm - click on screen areas....
coopskevin@hotmail.com
Non-Linear Animation?
Does anyone know of a simple way to implement non-linear animation?
What I am trying to achieve is this - I have four main nav buttons. Underneath these main nav buttons is an area for the secondary nav (nav within each of the main nav areas). Simple so far?!... I could just get each set of secondary nav buttons to fade in and out depending on which main nav button is clicked. But (there's always a but), it would be nicer if the secondary nav buttons were all on one line and 'slide' into view when the relevant main nav button is clicked. This is fine if a person is navigating through a site in a linear fashion, but what if they want to go back to a previous page? How do I get the secondary nav to 'slide' back the other way to the right spot?
If anyone can point me in the right direction I would be most grateful. Thanks in advance
Linear Color?
Hello,
code:
var set1 = new Color(target);
set1.setRGB(parseInt("0x00FF00", "0xFF00FF", 40));
I am tring to get a movie clip colored with two colors so that it is linear, How can this be done with flash 5?
Thank you.
Linear Direction?
Just been messing around with the colouring options for vector graphics and come across linear. However I've notice it will only shade in a preset direction and was wondering how or if this could be changed??
Just seems a little restrictive ...
thks.
z3ph.
Non Linear Animation
I posted this before but I've tried to make it less confusing.
All my Flash work in the past (limited as it may be) has always been in a very linear timeline style. Things just happen when you get to that point in the timeline.
But now I need to make something happen when a certain event takes place. So I guess I need some kind of loop to check to see if this event has happened.
How do I keep checking for event while alowing the rest of my movie to keep playing.
Thanks for any feedback
Kevin
Non-linear Animations
I have created nine short animations is flash and I want these to be accessed in a non-liner way and once they have all been viewed it opens up a final sequence which can only be watched once all nine have been seen. So I'm basically looking for some action script that says once all animations have been accessed go to scene or label whatever. Any ideas?
Non Linear Fade
Hi, I need some help
Very simply put; I have 4 frames 1,2,3,4 with different backgrounds:
1 - blue
2 - yellow
3 - red
4 - green
What i want is when you're at frame 1 and push the button for frame 4 the background fade from blue to green, and if you push the button for 3 the background will fade from blue to red etc.
I guess I will have to do this using some kind of action script command, but i have no idea what.
Any ideas?
I use Flash CS3 AS2 (/AS3)
Linear Fills
How do you do a vertical linear fill?
hope this isnt a daft question but ive tried everything.
you can only seem to fill a shape horizontally, ive been working around this by rotating my shape then filling it and rotating it back but im sure this cant be right!
How To Draw Linear?
x² - 5x + 4 = 0
ActionScript Code:
t = d2*d2 - 4*d1*d3;
x1 = ((-d2)+Math.sqrt(t)) / (2*d1);
x2 = ((-d2)-Math.sqrt(t)) / (2*d1);
i just know the formula of this, any expert can teach me what should i calculate and how to draw the linear?? Thanks
Linear Graphic
i m new in flash program. i need help in making graphic x y axis.
i have make inputbox, then i want to make it to be an equation (ex. 2x+3y=5) and make the graphic in x y axis scale.
anybody can help me???
Flash CS3 Linear RGB
Hi
Can anyone give me a simple explanation of the check box Linear RGB in the Colour Panel in Flash CS3. I believe it has a smoothing effect on a gradient fill if the shape is scaled later. Therefore are they any advantages to to checking or not checking this option.
Any help much appreciated.
Regards
George
Flash CS3 Linear RGB
Hi
Can anyone give me a simple explanation of the check box Linear RGB in the Colour Panel in Flash CS3. I believe it has a smoothing effect on a gradient fill if the shape is scaled later. Therefore are they any advantages to to checking or not checking this option.
Any help much appreciated.
Regards
George
Linear Background?
Ok, my question is:
Can I make the background colour in Flash Linear,Radial or something else than just solid? In that case, how is it done?
Thanks
Linear Intersections.
I have just tried to look up explanations on how to perform linear equations - mathematically - so that I can process it and manipulate into my flash applications. However, my Math book with linear intersection no longer exists... I did find http://mathworld.wolfram.com/Line-LineIntersection.html that explanation, though it goes straight over my head with all those symbols etc.
So what I'm looking for, basically, is a more layman-esque version of that ^. Links or explanations will be appreciated Nathan.
Linear Background
Hey,
I was wondering if anyone knew how to set a "linear background".
Iwas wanting to have a fade in the background. Wouldnt have to be the actual background. I was thinking there may be a way to actionscript a graphic so that it stretchs to the whole screen size?
Andy.
Is There A Way To Do Linear Alpha Fading On A Jpg
I figure there has to be an easy way to do it. I know how to draw a box hand have the alpha on a solid green box go from 100% on one side of the box to 0% on the other side of the box.
Is there a way to do the same thing with jpgs or other pictures? I tried breaking it down, but as soon as I try and do anything, it changes the fill to a color instead of the image.
Non Linear Navigation With Keypad
I am doing a "simple" presentation document for a salesman
which has 10 scenes. I want the salesman to navigate to any scene at the press of a numeric button on the keyboard.
Can someone tell me how this can be done?
ta
Paul
Linear Menu Transitions...help
Ok I am working on an interactive presentation in Flash MX 2004 that will be on a CD. The presentation has a menu on the main timeline that animates in and then there are buttons. When you press a button the menu animates into a new menu or atleast that is the idea. The problem is that since it is linear I have to duplicate certain transitions so that they will show up when I press certain buttons. Is there an easier way to do this easier via actionscript?
I hope this makes sense because I cannot post the file due to security restrictions.
I Want To Use Linear Coloring In A Different Direction
Hello there.
I want to use the linear color style, but I want to turn it 90 degrees so the color changes as it progresses downward.... I have achieved this by just turning my drawing 90 degrees and using it but isn't there a way to rotate the direction of linear coloring without having to move around with your drawing?
Dynamic Linear Chart
Hi everyone,
I need some help with my dynamic chart.
I've got two arrays with data (each contains about 1000 elements)
and I don't know how to create a linear chart using this data.
I've tried to use: moveto() and lineto(), but it didn't work properly.
If you know how to solve my problem, please answer this post giving some examples (if possible).
Color Mixer - Linear
Is there a more convenient way of rotating a linear fill? I'd like to find a way to make a linear fill vertically without rotating the object, unless there is none. Thanks in advance.
Smooth Out Linear Motions..
Is there an easy way to smooth a motion, I'm not sure if it has anything to do with tweening or if I can do everything with actionscript, rotate and smooth etc.
in this .fla I got an arrow that rotates 360 degrees to stop. how can I make it to slow it's speed gradually smoothly to it's stop. (it's for the moment a tweened motion)
and another thing. let's say I make a menu. and want that (mc) menu to "bounce" smoothly a little when it's hitting it's end.. to make it a more realistic movement.. is it a 100% actionscript question or both tween and A.S ?`?
(like dropping a ball from a height.. it bounces when it hits the floor and also takes the gravity into calculation when dropped, in maya3d for instance this can be done using graphs.. to smooth out the linear movements.)
btw. anyone know any good tutorials on this?
Thanks for any help!
nic
Linear Background And Animation
Hello All.
I have 1 question. I use Flash MX 2004 btw.
How do i make a linear background? And i dont mean drawing a square
with a linear fill and setting it to the movie size because when you preview it in the browser there is always extra space, so how do i make a full linear background? (example is actionscript.org)
thanks.
Linear Motion Problem
I'm trying to make some code so that when I .onRelease my movieclip it keeps going in the direction and speed it ended with.
I want to "throw it" so to speak.
I'm doing this so you can click stuff on the bottom of the screen and "throw it" up to the top. Any ideas?
Linear Gradients Become Radial ?
i'm trying to do shape tween on a linear gradient, and everything appears fine in flash but when i test the movie all my linear gradients turn radial!!!
i even tested it in the most basic respect:
i made a new flash movie,
made one box with a gradient,
then made another keyframe,
selected shape tween,
( i didn't even edit the second keyframe at all )
when i went to test the movie, BAM my linear gradient turned radial!!
my regular linear gradients don't turn radial, it's only when i apply the shape tween that they change to radial
what am i doing wrong?!
thanx
AS Linear Transition Problem
I just tried the mx.transitions.Tween and mx.Transition.easing.* classes. I made a mc and used:
var xMov:Tween = new Tween(mc1, "_x", Regular.easeOut, 0, a, 3, true);
it worked well. But when I tried to stop the motion in the middle by deleting or changing the variable, the mc still continue to move. I used trace() and I found that even if the variable xMov dissapear the motion still continue. Is there any way to stop it?
Linear Sequence Of Tweens?
I have my actionscripts tweens set up. I have six different movieclips that need to move/fade one after the other (in a linear sequence). When I run the movie they all move at the same time. I thought of setInterval() but does that mean I need a unique function for moving each clip?
Any ideas are welcomed!
Linear Burn Fade-in
Does anyone know if it's possible, using either actionscript or tweening, to fade in parts of an image as opposed to the whole image at once?
I have tried a couple of techniques... using tweening, and they are very crude. Basically, I'm trying to create an animated version of the Linear Burn effect used in Photoshop.
cheers
Adam
Linear Motion With Actionscript
Ok I got the Connected Lines tutorial figured out, I made it so that all of the dots connect to a fixed position instead of each other.
Now I'm trying to figure out how to make a movieclip(s) appear at timed intervals at the fixed position and move to the blueCircles and back to the fixed position at the same speed (no easing).
While the movieclips are moving the timer for the function should be "shut off ". After all the movieclips "bounce" off the blueCircles the timer will become active again
What I'm trying to accomplish is to make a simulation for one of my classes and I want it so that if one of the blueCirlces is further away from the other ones, then the movieclip moving towards that buleCircle will take longer to return to it's original position.
Also after looking at the tutorial Random Movement in Flash MXI was able to change the "random" to a fixed position except for I could only get it to work for one movieclip, plus that movieclip had to be on the stage unlike how the blueCircle are created on the Connected Lines tutorial (which is what I would prefer)
Hopefully this makes sense...
Thanks,
[Steven]
Flash Linear Background
Hello,
i have a problem with flash linear background. I made part of the BG linear, and i changed the HTML in publish settings to 'percentage 100 and 100' etc, what it said in the tutorial on this site, so i when i published it i opened the swf file and it worked, but when i uploaded both the html page and the swf file to my site and tried it, it did not work! What can be the problem? I have a newer IE, version 6 i think, soi dont think that is the problem. thanks
Linear Sequence Of Tweens?
I have my actionscripts tweens set up. I have six different movieclips that need to move/fade one after the other (in a linear sequence). When I run the movie they all move at the same time. I thought of setInterval() but does that mean I need a unique function for moving each clip?
Any ideas are welcomed!
Linear Navigation Script
Hi all,
I need to create what sounds like a relatively simple script. You have the page and forward/back buttons. It should be possible to use the buttons to slide back and forth between 12 screens in a linear fashion. That's all! The 12 screens will be different colours to show the changes and the buttons will stay the same.
I'd be grateful for any help!
Thanks.
Editing Symbols With Linear Gradients
Shouldn't the color slider automatically update the color when I pick a symbol with a linear gradient applied to it? Or is there a way to refresh my selection to reflect on the color slider? This has always been a problem of mine. Maybe I doing something wrong. The way I always did it was using the color picker and clicking on my symbol. That was the only way to update the color in the slider.
Thanks
Linear Interpolation+color=problem
Hi!
I'm using a linear interpolation with a MC. It works fine but if I try to modify the color property of the MC using code (setColor) then the linear interpolation does not work.
Does anybody know why?
TIA
|