Rotation Without Moving Gradients?
I have radial gradients on all my movie clippings to create the effect of lighting coming from the top left corner... however when I rotate a movieclip, the gradients rotate with it, and makes it seem like the lighting is coming from somewhere else. Is there a way to prevent this, and if not, then how do you suggest I work around this ?
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-12-2001, 09:28 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help With Weird Rotation And Moving Mc's
I'm not sure how well I can explain this so I have an fla file attached to help you understand.
Basically I have this movie clip that I need to rotate around and inside it is a "marker" that needs to be moved around. Then you rotate it again and possibly move it again.
After you rotate the "knob" and then move the marker again, the code I have in it doesn't work. It moves all over weird like..
hope the fla can explain it better. When you click and drag the "X" marker, it should follow the mouse.
Rotation/moving Problem
ok, so i have a car that moves forward and back(birds eye view), and when i turn, the ground underneath the car rotates. the problem is that the ground rotates from a fixed centre point, instead of from the position of the car. how do i fix this?
Rotation/moving Problem
ok, so i have a car that moves forward and back(birds eye view), and when i turn, the ground underneath the car rotates. the problem is that the ground rotates from a fixed centre point, instead of from the position of the car. how do i fix this?
Moving Foward Depending On Rotation
I have a bug MC that will move foward but it will choose a random rotation point from 1 to -1 to rotate every frame.
I want to know if it is possible to make it so it moves foward depending on what direction it is currently facing.
Moving An Object Based On Its Rotation
I'm trying to make a 2D space game where you can control a space ship's rotation and its acceleration. I want the space ship to accelerate in the direction it's facing.
I have no idea how to do this, so if anyone could help me that would be great.
I've attached my .fla and .as files if you wish to look at what I have so far, but there's hardly any code related to this issue.
Moving An Object Given Rotation Angle
just need the code templet for moving an object in the direction it is angled at(the rotation). I never learned how to do it but if someone game me the code it would really helpful?
Moving An Object Given Rotation Angle
just need the code templet for moving an object in the direction it is angled at(the rotation). I never learned how to do it but if someone game me the code it would really helpful?
Moving An Object Given Rotation Angle
just need the code templet for moving an object in the direction it is angled at(the rotation). I never learned how to do it but if someone game me the code it would really helpful?
Rotation Script - Smooth Rotation
I have created a speedometer and on clicking a speed, I can get the needle to rotate around to the speed clicked, using _rotation.
However, the movement is very 'jumpy' and I would like to make it smoother, or better still accelerate/decelerate.
I have tried the following
Quote:
on (release) {
rotation_speed = 0.1;
if (speedo._rotation > -40)
{
do {
rotation_speed = rotation_speed * 1.1;
speedo._rotation = speedo._rotation - rotation_speed;
} while (speedo._rotation > -40);
}
else {
do {
rotation_speed = rotation_speed * 1.1;
speedo._rotation = speedo._rotation + rotation_speed;
} while (speedo._rotation < -40);
}
}
I want to get the needle round to -40, so whilst it is greater rotate is backwards, otherwise rotate forwards, starting with a small rotation and increasing (accelerate).
I found that this was still jumpy. Trying a negative causes Flash warning about script running for too long.
Rotating forwards (else) also overshoots the end position of -40
Any ideas on how to get the needle moving smoothly and finishing on the correct spot??
Gradients
I have read tutorials in which a fading gradient was explained, but it was for flash 4. But I got confused with Flash 5, could anybody explain please, how I can make a gradient fill which fades into nothing, not to a colour, I want it just to fade into transparency.
Thanks
`U
Gradients
is it possible to make a gradient to transparent?
if so, how?
cheers
Gradients
Why doesnt the selection change when clicking from one cirlce to another. If I have two layers with a circle on each and I click between them the gradients in the color mixer do not change, why is this so?
To make it more clear:-
What ever the color of a shape is :solid,linear,radial etc is not shown by the color mixer. In fact once you have created a shape it is impossible to go back and edit it. That is rediculous.
Gradients
Hey Peeps,
I have a shape that I drew, for a cartoon shadow, and I want it to have a gtradient fill. I have Flash MX, how can I make a gradient, that I can rotate to a certain angle?
Please help me
Thanks in advance
- Luke
Gradients?
Does anyone know how to make a gradient that fades out to a transparency? Is this possible in Flash or would I have to do it in PS?
Gradients
I got some reviews for http://nickmcdoz.tripod.com
and I was wondering why everyone says it's pretty good but would be better with gradients... from my knowledge i DO have gradients in http://nickmcdoz.tripod.com, but maybe there is something i'm not getting...
Gradients
how can i adjust gradients? eg if i wanted a diagonal one or a radial one in the corner of a shape?
thanks
Gradients Gradients Gradients
Ok either i dont have a tool option open on flash mx pro 2004 or im over looking it, but i m trying to make a gradient and nothings working!
any help? im just trying to go from this blue (5E7891) to Black.
in dimension 560 x 306
any help woul be appreciated
Gradients
is it possible to set gradients to go up and down?
right now, whenever i set a graident in the color mixer, it always goes left to right. right now, when i need one to go up and down i turn the shape sideways, put in the grad, then turn it back. that's become very inconvenient and troublesome with some of the more complicated objects i'm building.
Gradients
I know how to use gradients and set them up and everything else. the only thing i've never figured out how to do is tell it what ANGLE i want the gradient applied. it is ALWAYS horizontal and its soooo annoying to have to rotate something and then rotate it back. is there another way to apply gradients at angles other than 0,180 ?
Gradients
Could somebody let me know what's up with the gradients. They look shabby, like series of lines, and not smooth, the way I'd want them to be.
Thanks.
Gradients
I was wondering how I can place a gradient into a drawing I made in flash?
Thanks
Gradients
is there a way to edit the gradient color after it has been applied to a shape? when i select a shape that has a gradient, my color mixer doesn't change, even when i select it with the fill transform tool. Thanks!
Help With Gradients
Hi --
I am trying to programatically create a gradient fill. I have tried
following the examples in the Flash CS3 help but they don't seem to work
right.
The help file states:
ratios:Array - An array of color distribution ratios; valid values are 0 to
255. This value defines the percentage of the width where the color is
sampled at 100%. The value 0 represents the left-hand position in the
gradient box, and 255 represents the right-hand position in the gradient
box.
So I interpret this to mean that if I have a box that is 200 pixels wide
that 0 would be at 0 in the box, 128 would be at 100 and 255 would be at
200. However, it appears that 255 is always the middle of the box and 128 is
1/4 of the box.
What I want to do is create a three color gradient of red, blue and green
where blue is in the middle, red is on the left and green on the right and
the colors transition.
Can someone please help me here?
Thanks
Rich
Help With Gradients
Hey, could you people advise me on how to create the gradient used inside the colored blocks on the Polyphonic Spree website?
http://www.thepolyphonicspree.com/main2.html
Gradients
Is there any way to create horizontal linear gradients or do I have to make a vertical and rotate it?
Gradients
Hiya,
I'm trying to use actionscript to apply a gradient to a movie clip.
I've tried looking up examples but they all seem hideously complicated, with tons of colors and weird angles. Or they inlove using the Draw API to draw a rectangle and then apply it!
All I need to do is apply a linear gradient with three colors to a movie clip that's already on the stage?
Does anyone know how I would go about this or a tutorial where I could find it?
It seems so simple in theory!
I've tried using bevel and glow filters but they're not really what I'm looking for.
Gradients Help
hi ....
I need help with gradients ...... hmnmmm
for example i have a traingle and need to fill with a gradient
left to right is the default ...... right
but when i rotate it it detatches ....in the sense it is a differnet trAINGLE
yes .... i can reset the shape using the info panel
but what about complex shapes
need help man ...... if tutorials available .....step by step will be great ...... thankyou gurus
Gradients
I am trying to create a gradient in flash.
I noticed that there are some predefined gradients swatches.
But how do I change the colors in the gradient?
Gradients
Could somebody let me know what's up with the gradients. They look shabby, like series of lines, and not smooth, the way I'd want them to be.
Thanks.
Gradients
Sorry if this has been asked... but how do you create a smooth gradient in flash? It seems like every 20 or so pixels you see a colour difference... its not really a smooth fade.
Thanks,
Jesse
Gradients
Whenever I add a radial gradient fill to a shape, and then use the fill transform tool to adjust it, the tools handles are huge. I have to zoom out for miles to find them. Each time I add a gradient, to a diffent object, it gets bigger every time. Whats going on here? Is there away of setting the default starting size and angle of gradients?
Gradients
At the macromedia website, there are a few references to not using gradients in flash-based websites because it slows down performance ... I see so many websites that use gradients and they operate quickly ... so is what I have been reading referring to using gradients CREATED IN flash? Like using a pic saved in photoshop with gradients isn't as memory-intensive as using gradients made in flash itself? Thanks!
Gradients And Dimensions
Hiya,
I´m missing a small icon from flash4 and Im hoping some1 might know anything about it...
There was a button (if memory fails me not) to alter gradients (in effect turn them into objects..enabling e.g. scale, rotate, etc.) which (I think) was on the floating toolbar, but isn´t there in Flash5.....any ideas..?
please....
p.s. if any1 knows of a good website that "teaches" about those extra lines in animations that make dimensions and make everything more realistic...some basics I can handle but would like to do quite a bit more.
Thanx merry much
Creating Gradients
i was just going through one of the great tutorials here and it told me to create a gradient, i cant seem to find the window which let me does it, or how can i edit a gradient?
If your wondering what tutorial im trying to do its the 'ray of light' one.
Alpha Gradients
How do I make an alpha gradient, im not sure if thats what you call it, so like 1 side is a color, and the other side is an alpha effect, thanks if you can help.
Transparency In Gradients
I was wondering how I could put like two colors in my gradient, white and transparent. is this possible, and how would I do it?
Transperncy With Gradients
how do i change the transperency of gradients. eg: a red gradients where the eges fade to completly clear
Working With Gradients
I think there is an easy way to fill an object with a vertical gradient (instead of a horizontal one), but I don't know how to do it. I have to work around this by filling the object I want using the horizontal gradient and then rotating the object so the gradient actually appears vertical when I'm done.
I hope I explained this right...
I am trying to figure out how to change the "Linear Gradient" fill tool from changing colors side to side to changing them up and down.
Any help would be appreciated...
Gradients On Flash 5
Hi,
I want to create a ball of light and not quite sure how to go about doing that. I know that flash 6 has an Alpha variable on the gradient tab. Is there something similar on flash 5? If not is there a script I can use to create the same effect?
thanks in advance
Rein
Bent Gradients
I'm trying to put together flash movie that will contain many Balloons like the following
Since all are virtually identical not only in shape, but also in shading, rather than filling my movie with the bloated weight of many .jpg's I was trying to make all of the images vectors. Doing the gradient for the center of each balloon is easy. and I've been able to block out an area for the highlights on either side, but is there any way of making a gradient that follows the curved path?
This movie would literally have 100+ different colors of these balloons so size and simplicity is of the utmost importance. The only thing I could think of was to break each "curve" into several smaller gradiated sections and do narrowly shaped ovils in them, Any other easier deas?
Saving The Gradients
hi
thanx for viewing
hoping you can help me with this one!
i keep making gradients and saving them but they are only apparenet in that particular fla
is there a way that i can save them permanently into the package????
it would save a lot of time
thanx
Having A Prob With Gradients
Ok im trying to make a circle look like a sphere but when I use a gradiant it doesn't look like the tutorials example. It seams like the gradiant is expanded like if it was filled in a bigger object (the "reflection of light" thats saposta make up the uper right hand of the circle takes up the whole circle)
This is a pic of what is going on Left = good. right = bad
Editable Gradients
What I would like to do is have gradient being a variable. I want to have it where the fade is defined by the two colors the user selects, then flash creates the gradient. I've seen a tutorial on this before, but didn't need it at the time, if you happen to know where one is located or if you can just tell me how to set this up I would greatly appreciate it. Thanks.
Custom Gradients
Hi,
This is my first post, I've just downloaded flash professional MX 2004.
Can anyone tell me how to create my own custom gradient fill colour please?
I cannot seem to figure it out!!!
thanks
justin_dabs
Gradients And Actionscript
hi all,
i have a button which i want to change from one gradient to another gradient when it is rolled over...i want to do it as if it looks like it glows when rolled over...any ideas would be fantastic!
cheers,
tom
Matrix For Gradients?
What does the Matrix do for creating gradients?
a, b, c, d, e, f, g, h, i, which can be used to describe a 3 x 3 matrix of the following form:
a b c
d e f
g h i
What does this mean? What do each of the letters do?
Thanks in advance.
Gradients In Flash?
How do i make a gradient in flash mx that fades froma a colour to nothing, so that it looks like a feathered mask when droped on to something?
Thanks,
Tom
Matrix Gradients
What does the Matrix do for creating gradients?
a, b, c, d, e, f, g, h, i, which can be used to describe a 3 x 3 matrix of the following form:
a b c
d e f
g h i
What does this mean? What do each of the letters do?
Thanks in advance.
|