Color Plus Alpha In Motion Editor
Is there an easy way to adjust the colors and alpha in the motion editor? The Advanced Color option, with it's Colors and Colors Offset functions makes no sense to me. I simply want to resample a color and apply an alpha.
Adobe > Flash General Discussion
Posted on: 01/21/2009 10:44:11 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Motion Editor
I really like the idea of the motion editor - being quite comfortable with After Effects CS3 I thought this would be a great addition.
But, I'm finding the editor in Flash to be almost counter-intuitive... I create initial(izing) keyframes, move along the timeline & make my changes. Flash inserts the new keyframes as expected. What I don't expect is that it will almost argue with me over what value I try to give these keyframes when I go back to edit them in the properties panel. I try to take alpha up to 100%, Flash wants it to be 96% for example...
The motion editor is just as frustrating - I go to move my keyframe value up or down on the editor graph & it is really hard to follow. Sometimes, I pull a frame down to 0%, Flash takes the line UP but the value says 0%.
I'm on OSX 10.5.5 iMac 2.8GHz with 4MB RAM. Usually, my Wacom stylus is good in Flash, but with CS4, forget it!
Anyone else with this kind of issue going on?
CS4 Motion Editor Bug?
In my motion editor under Basic motion, I should be seing x, y, z, Rotation x, Rotation y and Rotation z channels. However I've only got 3 channels- x, y and Rotation z. Its a very simple FLA, with a simple MC on stage with a motion tween applied. Is my IDE buggy? Or is this normal?
Motion Editor Filters Not Available
Hello,
I am trying to add an animated blur to a symbol, and for some reason the filters are showing as grayed out in the Motion Editor. Is there something I need to do to a symbol before it is able to have an animated filter added to it?
Thanks,
Andy
CS4 Motion Editor Issues
I'm attempting to control a multi-stage tween using the motion editor, and have noticed that, while you can convert points on the curves between corner and smooth, and in most sections have access to the Bezier handles when the point in question is smooth, these handles do not appear in the X and Y sections under "Basic Motion"! I can still conver points between smooth and corner, but no handles show up - even though cmd-click-dragging puts in a smooth point that looks as if it HAS handles. They're just not visible, and not editable. I cannot imagine that this is intentional, especially not when every other animateable attribute has perfectly working Bezier handles. Can anybody else replicate this? I'm on an Intel iMac running OS X 10.5.
Problem With Flash Motion Editor
I'm a new user of Flash Professional.
I'm testing it for a couple of days now and a problem has occured, for which I can't seem to find a solution.
In the motion editor, the time bar doesn't seem to apear. see www.aai-design.be/motioneditor.jpg
Does anyone know this problem and how to resolve this?
Many thanks in advance
Steve Stappers
Aai-Design
3D Rotation Inconsistent Between Motion Editor & AS3 (CS4)
I'm trying to access the rotationY property in code to determine the current state of a movie clip that has its rotationY animated in the motion editor. What I'm seeing is that the value of the property reported in a trace stmt is different than the value shown in the motion editor.
In the motion editor I created a tween from rotationY=0 at frame 0 to rotationY=353 at the last frame. I've added the attached code to get the value of rotationY at every frame.
What I see is that the rotation does not increase steadily from 0 to 353. Instead it increases from 0 to 90 and then decreases back to 0 and then goes negative to -90 at which point the absolute values decrease toward 0. This seems like a bug. The rotation of the object is visibly different during the 0 to 90 deg. phase than it is from the 90 to 0 phase yet the numerical values are the same. And if I set the rotation of the object in code instead of the motion editor, rotations from 90 to 180 correspond to the phase reported by the trace statement as 90 to 0. Something doesn't make sense about this inconsistent behavior.
David Salahi
Attach Code
mc.addEventListener("enterFrame", frameListener);
function frameListener(evt:Event):void {
trace(mc.rotationY);
}
CS4: Motion Editor Custom Ease Issues
Just starting to get into this new Motion Editor. Some things I like,
some things I thought I liked but began becoming issues. So much so,
that I've reverted to Classic Tweens until something is fixed regarding
a certain behavior that bugs me.
In a blank movie, add about 50 blank frames.
Drop down an object, and create a Motion Tween. On frame 20 add a
keyframe to this.
In the Motion Editor, create a Custom Ease.
Add a keyframe on the last frame of the movement (frame 20) in the Ease
curve. Adjust the curve handles to whatever, it's not important. Apply
this custom ease.
Back on the main timeline, click on frame 100 and press F5 to add more
frames to your timeline.
Click on the Motion Tween and enter the Motion Editor. Notice that the
transformation keyframes stayed where they were at frame 20. But the
custom ease keyframe has now jumped further down the timeline.
This is terrible behavior. Why does the custom ease scale to the main
timeline?
Maybe there's something I'm missing, but it sure is frustrating and
really keeps me from utilizing this feature.
-Ian
WYSIWYG Editor / Color Selector
Hi,
Does anyone know any tutorials on these subjects? I checked out flash-db, but their selector isn't as robust.
for the color selector, i think i may have to do a manual approach with like 100 squares cause i can't understand how it would be autogenerated.
thanks for any help.
How Do I Change Background Color On MM Rich Text Editor Component?
I am trying to change the background color on Macromedia's Rich Text Editor component but I'm having no luck. I know I need to muck around in the library once I add the component to my project and I think it has something to do with skins but other than that, I'm lost!
Thanks in advance.
Text Editor To Change Font Size Color And Face
Code:
var font_array:Array = TextField.getFontList();
font_array.sort();
cb.addItem("Font");
for (var i = 0; i<font_array.length; i++) {
cb.addItem(font_array[i])
}
sizer.addItem("Size");
for(var i=1;i<=32;i++)
{
sizer.addItem(i);
}
var dispText:TextField;
dispText.html = true;
bold_btn.onRelease = function (){
addTag("<b>","</b>");
};
italic_btn.onRelease = function (){
addTag("<i>","</i>");
};
underline_btn.onRelease = function (){
addTag("<u>","</u>");
};
left_btn.onRelease = function (){
addTag("<p align="left">", "</p>");
};
center_btn.onRelease = function ()
{
addTag("<p align="center">", "</p>");
};
right_btn.onRelease = function (){
addTag("<p align="right">", "</p>");
};
break_btn.onRelease = function (){
addTag("<br>","");
};
deleteall_btn.onRelease = function()
{
bodyText.text = "";
dispText.text = "";
}
var cbListener:Object = new Object();
cbListener.change = function ()
{
var nite=cb.selectedItem.label;
trace(nite);
//addTag("<font face ="+nite">", "</font>");
addTag("<font face="" + cb.selectedItem.label + "">", "</font>");
}
cb.addEventListener("change",cbListener);
function addTag(startTag:String, endTag:String) {
var startind:Number = Selection.getBeginIndex();
var endind:Number = Selection.getEndIndex();
var selectedText:String = bodyText.text.substring(startind, endind);
bodyText.replaceText(startind,endind,startTag + selectedText + endTag);
dispText.htmlText = bodyText.text;
}
/*var keyListener:Object = new Object();
keyListener.onKeyDown = function ()
{
dispText.htmlText = bodyText.text;
}
Key.addListener(keyListener);*/
hi someone hlep me in simple text editor to show font size and face
it is not working
Motion Of Alpha
How would I make a text motion fade in to fade out, without having to use the tween option?
Alpha Motion
Could someone please show some love and tell me how do I use the motion alpha by coding instead of tweening?
Motion Tween With Alpha.
I'm trying to figure out a way to move a clip across the screen while it's fading in and then out. The goal here is to have the text fade in, sustain for about a second and then fade back out all while moving across the screen. Oh yeah, all with an ease out. This last part is what's giving me grief. I can get it to move while fading using four Key frames but when I put the easing in the tweens it make the text jerk everytime it hits a key frame. Thanks for you help!
[F8] Motion Tween And Alpha
My animated text is behaving properly, except for the change in alpha. If I click on teh frames in teh tween it shows that its changing but when I play it nothing it only animates, with out the change in alpha.
Motion Tween To Alpha
Hi there,
I got my motion tween to work, but then it should dissapear using alpha from 100% to 9% but its not, hows that?Could somebody please give a look at my file?
Motion Tween Alpha
Hey all,
I have just finished the motion tween tutorial for flash 8 and I noticed that the example circle fades in and out. How do you do this? I have tried what I did with the basic flash but no luck... Anyone help me?
Thanks,
DarkArrow
Motion Tween To Alpha
Hi there,
I got my motion tween to work, but then it should dissapear using alpha from 100% to 9% but its not, hows that?Could somebody please give a look at my file?
Is It Possible To Do An Alpha Fade W/ Motion Tween
I cant get a word to alpha fade with motion tween, even though there is a tutorial here that says, break the word up then convert each letter to a Graphic (which groups it) then just motion tween it and alpha fade it...
IT DONT WORK!!! And shape tween usually screws things all up, can someone help for a crisp Letter fade?
Thanks TV
Motion/alpha/scale Script
i need a motion/alpha/scale script w/ acceleration for a project im doing
the only script i have is one i wrote for motion
Text Alpha Motion Tweening - HELP
Ok, I realize that this should be a very simple thing to do, but I am very new at this and have been stuck on this. Hopefully someone can help me here, because its driving me up a wall.
Here is what I am trying to do and here is how I am doing it.
Very simply put, I want text to fade in. So, First I create the text box and put the text into it. I then make it a symbol. I create a key frame at frame 1 and I create another key frame at some arbitrary distance (lets say frame 20). I then create a motion tween between the keyframes. I go to frame one and adjust the alpha of the symbol to 0 and I make sure the alpha for the symbol is set to 100 on frame 20. I watch the movie in Flash, and it looks great. However, when I go to test the movie, the text just appears and sits there. No fade in or anything. What am I doing wrong? I have search the forums here and several other places, but just can't figure this out.
Any help would greatly be appreciated. Thanks in advance.
Alpha Motion Tweens For Text
When you hit Enter on the Timeline, the text fades in like it's supposed to (when you are in edits for the MCs), but when you Ctrl+Enter, they skip to the end.
The text is static. What am I doing wrong?
Problem With Alpha Value During Motion Tween
Hello,
I with to change the alpha value of my movie clip from 0 - 100%, during the motion tween.
I wrote a small text. I converted it to symbol "movie clip". I gave the alpha value 0%. I inserted another key frame in which I gave the alpha value 100%. I created motion tween inbetween these 2 frames. When I see the movie in Flash MX, it works fine. But after rendering the fade in / fade out effect goes off.
Please help me here. I also refered to one of the previous threads, but it did not work. I am attaching the fla and swf to help better understand.
Thank you.
Mitali
Motion And Alpha Fade Over Time
i've searched and cant really find out what i need to use to achieve this. on a basic level i want a square to move from the left side of the screen to the right over a 2 minute time period and while the alpha changes repectively over the same time period. any help or links would be appreciated. thank you.
Changing Alpha Percent On A Motion Tween
Hi, i have just made the jump from flah 5 to flash mx.
1 thing i cannot seem to get my head around is that the simple way to change the alpha transparancy on a motion tween keyframe in flash 5, which was to just select the keyframe and then select the alpha from the effects pannel does seem to be there in flash mx.
The only way i can change the transparancy of a motion tween keyframe is to change it to a graphic and do it from there.
This must be a stupid question, because there has to be an easier way, im just to blind to see it i think.
Is there a more simple way to do this?
Thanks,
Ritchie
Weird Distortion Using Alpha And Motion Tween
I'm creating a small slide show to be view online!
Each picture is set inside a Movie Clip so I can use the Alpha property for each transition. What I do is place the first MC into layer 1, after a few seconds I place the second MC into layer 2 and create a tween from 100% to 0% alpha on the first layer in order to make the second picture show. For some reason the picture kind of jump and get distorted for a blink!!! In order to solve the issue I found out that if I leave an other picture at 0 alpha on top of the picture I'm trying to show, there is no distortion!! I had this problem before using alpha and motion tween! Anyone knows how to get around it? And why it happenes?
Flash Alpha & Motion Dynamic Tween
help! i got this code from Ultrashock and spent most of yesterday staring at it and tweaking it to be what i need it to be. I have a menu that drops down when you roll over a moveclip, but the one this i can figure out is how to make the menu fade it when it drops down and fade back when it goes up.
Any suggestions?
View my fla:
http://www.steadyvibe.com/clients/dyn_menu2.fla
View my swf:
http://www.steadyvibe.com/clients/dyn_menu2.swf
I really just need to have the subnav hidden when it isnt rolled over.
Motion Tween While Adjusting Alpha With ActionScript?
Hi, all. I'm hoping this will have a simple answer, but I can't seem to find it addressed anywhere. Without going into too much detail, I'm trying to create a slider that will adjust the alpha of an object in motion (specifically, changing size and location on the stage). Unfortunately, when I move the slider, the image fades in and out as it should but stops moving.
I understand that ActionScript supercedes motion tweens, but is there any way around this? Some command to tell it to go ahead with the tween after the alpha change, maybe? Or would I have to just code the whole thing, alpha, size change and all (and if so, is there a way to tween that without coding each frame seperately?)
As you might've guessed, I'm still pretty new to Flash. I do have programming experience, and I can usually figure out how to do what I need to do once I've got a foothold with the language, so any help in getting that foothold would be welcome!
Device Fonts/Motion Tween/Alpha
I have a Movie Clip containing text that uses Device Fonts that I want to fade in gradually. BUT, when I add a motion tween, the fonts do not fade in gradually. Is there a way that I can do this with Device Fonts?
Thanks
Simple Alpha And Motion Tween Problem
I've been trying to do something which I thought was simple in flash, however I'm having problems.
I create a piece of text and make it a symbol. Then set its alpha value to zero.. insert a keyframe further on, change the alpha value to 100 and move the symbol elsewhere on the screen. This, I thought, should create the effect of the text moving across the screen and fading in at the same time?
When I drag the slider along the timeline, all seems to work as I want, but if I "test movie" or publish etc, the text moves but no alpha tweening happens. I've tried using "tint" and this works ok, so why doesnt alpha? Any help greatly appreciated as I'm going mad with this!
Fl.color.motion Help
I'm programing AS3 using Flex Builder as my tool. I want to change a color of a sprite so I am need to import fl.motion.Color to be able to do this:
var colorTransform1:ColorTransform = event.currentTarget.transform.colorTransform;
colorTransform1.color = 0x000000;
event.currentTarget.transform.colorTransform = colorTransform1;
That works fine in Flash IDE, but when I use Flex, it does not find fl.motion.Color class, so how do I change color of sprite when using Flex or how do I make sure Flex has access to fl.motion.Color Do I need to import some SWC in Flex so that it gains access to this class?
what is fl? why is't there only flash? can I import something from flash package that can change the sprite color in Flex, since I dont have problems with this import flash.*;
Can someone with knowledge help me here, thanks
Color Before Alpha?
I am experiencing a weird phenomena; if a color script performed after .alpha then the alpha is disgarded... if it is performed before then alpha works ok.
for example
Code:
letter.alpha = 0.5;
colorTransform = letter.lettervalue.transform.colorTransform;
colorTransform.redOffset = Math.round(startcolor.redOffset+frcol*(endcolor.redOffset-startcolor.redOffset));
colorTransform.greenOffset = Math.round(startcolor.greenOffset+frcol*(endcolor.greenOffset-startcolor.greenOffset));
colorTransform.blueOffset = Math.round(startcolor.blueOffset+frcol*(endcolor.blueOffset-startcolor.blueOffset));
letter.transform.colorTransform = colorTransform;
doesn't work properly... it sets color but resets alpha to 1 (100%)
Code:
colorTransform = letter.lettervalue.transform.colorTransform;
colorTransform.redOffset = Math.round(startcolor.redOffset+frcol*(endcolor.redOffset-startcolor.redOffset));
colorTransform.greenOffset = Math.round(startcolor.greenOffset+frcol*(endcolor.greenOffset-startcolor.greenOffset));
colorTransform.blueOffset = Math.round(startcolor.blueOffset+frcol*(endcolor.blueOffset-startcolor.blueOffset));
letter.transform.colorTransform = colorTransform;
letter.alpha = 0.5;
works ok ... both color and alpha applied properly.
In itself not such a problem, but,
The thing is that at the end of a certain loop i need to 1 more time do a colorscript to set the object in question back to the origal color but not perform any .alpha on it... it needs to keep the .alpha it has. Unfortuantely with that final color script it sets alpha back to 1. Obviously I can put its then-current alpha into some temp var and re-apply it right after the color script, but it all seems to make little sense. Is there maybe something simple I missed?
P.
HTML Embed Font Outlines Alpha Motion
I would appreciate very much any help with this problem:
Iīm using a Dynamic Text Field for representing HTML formatted text from a XML file.
My problem arises when I make the Motion Tween of the Movie Clip (Alpha value from 0 to 100%) containing this Dynamic Text Field.
In the Properties Panel of the Dynamic Text Field I have a default font selected, so the content of the variable is displayed with this font, but in the HTML text I change the font within the text (<font face="xxx" size="x">blabla</font>) and then the following occurs:
(inside Properties Panel of the Dynamic Text Field)
- with Character > Embed Font Outlines For: > No Characters...the formatted text appears in the Dynamic Text Field before the Timeline reaches the Tween Motion and Alpha Animation doesnīt take effect
- Character > Embed Font Outlines For: > All Characters...the Alpha
works when the Tween Motion is reached but itīs only shown the characters before I change the font in the HTML code. All the text after the <font face...> tags donīt appear.
Thanks in advance
Alpha Motion And Blending Modes Are Freezing My Movie
Hi, I'm working on a single timeline slideshow movie with approximately 26 layers. Each layer displays a unique image that appears progressively along the timeline. Each image transitions over the other using the alpha transparency option, from 0 to 100. This transition duration varies for each image. Besides this I'm also using different blending modes such as multiply and hard light, since I like the effect generated by mixing a bit of the layers underneath. All the images stick around until the last frame of the timeline, regardless which frame they appeared in. Around frame 160 my movie starts to slow down, and around 235 it completely freezes. I have a G4, and I've used this movie in more powerful computers but it's still slows down. What can I do to make this run smoothly as is? What may be causing the slowdown? Is this just a Flash impossibility?
thanks.
www.cristianbosch.com
Motion Alpha Tween Of Photos Warps The Photo
I've made many photo slideshows with Flash which involve a simple alpha tween (fade in - fade out) and I've noticed that during the tween the photo moves a little or becomes warped. It isn't because the position of the photo changes, it has the same integer value for x and y for all the keyframes. The photo almost moves or warps internally, like a pixel sized strip of the photo is invisible for part of the tween and then becomes visible, making the photo a little bit wider. It only happens with some photos, not all of them. And when when I view the .swf file from other computers, sometimes different photos warp, whereas on other computers they didn't. Is it a bug in Flash? Does it have to do with processor speed? Has anyone encountered this before?
I can't find any reference to this on the web, but it is quite a specific problem and is difficult to research. Can anyone help me?
Actionscript Color Motion
I really need help change the color of a movieclip when a button is pressed.
most importantly is that it has to fade from it's previous color.
if you think you can help me but not quite understand my problem, i can mail you a swf file which shows what i mean.
thanks a lot
[FMX] AS Color Motion Tween
I want to make an AS based motion tween with colors. What's the easiest way to do that? I Have already this code:
ActionScript Code:
MovieClip.prototype.nL = function(nY, sN) { this.onEnterFrame = function() { // nY this.dY = nY - this._y; this.mY = this.dY/sN; this._y += this.mY;}}
Something like this would be perfect:
ActionScript Code:
MovieClip.prototype.nL = function(nY, nC, sN) { this.onEnterFrame = function() { // nY this.dY = nY - this._y; this.mY = this.dY/sN; this._y += this.mY; // nC // and here the code }}blahblah.onRollOver = function() {this.nL(20,0xFFCC00,5);}
[FMX] AS Color Motion Tween
I want to make an AS based motion tween with colors. What's the easiest way to do that? I Have already this code:
ActionScript Code:
MovieClip.prototype.nL = function(nY, sN) { this.onEnterFrame = function() { // nY this.dY = nY - this._y; this.mY = this.dY/sN; this._y += this.mY;}}
Something like this would be perfect:
ActionScript Code:
MovieClip.prototype.nL = function(nY, nC, sN) { this.onEnterFrame = function() { // nY this.dY = nY - this._y; this.mY = this.dY/sN; this._y += this.mY; // nC // and here the code }}blahblah.onRollOver = function() {this.nL(20,0xFFCC00,5);}
Background Image & Motion Tweens (alpha ) --::-- Sounds So Simple, But...
tried to search the forum..to no avail, so here is the problem that's been driving me nuts for the past hours:
simple set-up:
(*) one jpeg background image (Graphic), no internal compression, no smoothing
(*) two MCs (vector obj.) on two layers ontop of the bg-image layer, including moving/scaling objects all across the image with changing alpha values.
the issue: I need exact (on the pixel) boundaries, so when importing the image and just exporting it "as-is" the swf-file looks fine and properly aligned within the html. Now when adding additional layers ontop (motion tweens w/ alpha) the image starts to get distorted in some areas causing the image to temporarily get larger (slight flicker).
What is causing this?? It sounds simple, all I need is a steady bg image perfectly aligned with a couple of alpha motion tweens running across it...
any, seriously, ANY help would be very much appreciated...
almost-no-hair-left-to-pull-out-genki
Control Alpha And Color Of Mc
i control the alpha of an mc with the following two frames.
if (mc._alpha>0) {
setProperty (_root.image, _alpha, _root.image._alpha-10);
}
Alpha Color Stuff
In flash are you able to have a graphic with alpha color and have, lets say the left side of the graphic alpha 100 and the right side alpha 0 and the middle 50 so it looks like a decrese in the color? I wish I had an example but i don't. Thanks for the help guys
HH
Color And Alpha Prob.
Hi
In my lets-make-a-game-to-learn-actionscript I have encountered some problems.
See attached for game: Its a simple game where the user loads shapes onto the stage with shape buttons (on the left) and then moves them around and chages their alpha and colour values to make a picture.
I've got it so that the shapes can overlap, or not overlap depending on which button the user clicks. Now I have this problem
I can usually change the colour of a movie clip using the color object with no problems. But these movie clips have been loaded onto the stage by the user clicking a button, and have been assigned names in a ordered way.
So I have a clip on the stage called _root["shape" +count]
I have script on a frame that says;
change_color = new Color(_root["shape" + count]);
And script on the button that says:
on (press) {
change_color.setRGB(0xff0000);
}
This does not work.
I can set the alpha, rotation etc of these movie clips using their names as _root["shape" +count] but not their color.
Also, the "transparent" and "opaque" button add or subtract 10 from the alpha value of the loaded MC. But when I check what the actual alpha value us using a "check alpha" button with a trace action, it transpires that actually, the "transparent" button subtracts 10.15625 from the MC's alpha (and not 10, as in the script), and the "opaque" button adds 9.765625 to the MC's alpha, (and not 10, as in the script).
What am I missing here? It would be so great if someone out there could enlighten me!
Thanks in advance
Color Replace With 0 Alpha
I am going to process some video using Flix Pro to Vectorize it. It will be shot against a green screen. Is there any way to easily replace all of the green vectors with a color swatch with a 0% alpha for export to a NLE?
Controlling Alpha Of A Color?
Im trying to make a dynamic background in an fla im creating for a website, I got the changing the color part dynamically by pressing a button down. The part im having trouble with is I want my colors to look more transparent, I don't want to fade my colors in and out or change the brightness. All I want is to make colors look more transparent so like when the person presses the button, the color will be 50% alphed before it shows up and stay htat way so the person would get a half transparent background.
Anyone have any ideas?
Tweening Motion And Color At Same Time?
I create a simple animation that tweens a symbol of a ball from the left side of the screen to the right side. When the ball gets to the right side, I create another keyframe where the ball moves up and I tween it to do so, and I also want it to change colors. I copy the symbol and change the color of it and swap out the new symbol with the old one at the last frame. When I tween it, the ball moves up during the last segment, however, it does not also tween from the old color to the new one. How do you do this?
Thanks.
Motion, Size And Color Tween
Okay so I have this problem.
I took a picture and then made it black and white and smaller. And I'm going to use the original and the new one together in an animation. Basically I want to make an invisible button that follows it and when I click the button an animation moves the black and white one up and changes it into the colored one, but I don't know how to do this.
I've tried pasting the black and white one on frame 1 and then the colored one on frame 15 and creating a motion tween, but it doesn't work..
Help?
Help With Random Motion/Color Tutorial
Hello,
I tweaked the Random Motion tutorial and added in a random scale and alpha to make random polka dots moving on the screen. It looked great with the white background, but I need it on black. A low alpha on a pink polka dot with a black background... well, it's not really pink. ;-) I found a tutorial that would cycle through random numbers to generate random hex numbers for color. But I need to randomly cycle through these specific colors: #FFB6C1, #FFCOCB, #FFFOF5, #FF69B4.
Can anyone offer any suggestions.
Here is the code on the "dot" MovieClip:
Code:
onClipEvent (load) {
//data you may want to change
width = 760;
height = 600;
speed = Math.round(Math.random()*2)+1;
scale = (random(100) + 50)
this._alpha = random(100);
this._xscale = scale;
this._yscale = scale;
//initial positions
x = Math.random()*width;
y = Math.random()*height;
this._x = x;
this._y = y;
x_new = Math.random()*width;
y_new = Math.random()*height;
}
onClipEvent (enterFrame) {
//x movement
if (x_new>this._x) {
sign_x = 1;
} else {
sign_x = -1;
}
dx = Math.abs(x_new-this._x);
if ((dx>speed) || (dx<-speed)) {
this._x += sign_x*speed;
} else {
x_new = Math.random()*width;
}
//y movement
if (y_new>this._y) {
sign_y = 1;
} else {
sign_y = -1;
}
dy = Math.abs(y_new-this._y);
if ((dy>speed) || (dy<-speed)) {
this._y += sign_y*speed;
} else {
y_new = Math.random()*height;
}
}
Motion Tween Color By ActionScript
I have 6 buttons that besides doing their original purpose, I want them to cause a certain movie clip to change it's color gradualy over a number of frames.. The problem is, that I can't do a regular tween, cause i don't know the color of the frame at the moment I am pressing the button.. I need somehow to define a function for this in ActionScript.. but how?
Adding EventListener MouseEvent Click To Existing Mc Which Aleady Has Alpha Motion...
hi, my name's jude and i'm an author designing a site for my new publishing company. i want to use a flash button on the site and am having problems finding the right actionscript. i'm a total nOOb in actionscript but i promise i've done lots of research into this - however the only tutes i can find are for starting from scratch making movie clip buttons.
all i want to do is add the actionscript for a mouse click which takes you to the desired URL, to this existing code controlling the motion of the movie clip.
onClipEvent(load)
{
dir = 0;
speed = 6;
original._alpha = 0
this.onRollOver = function()
{
dir = 1;
}
this.onRollOut = function()
{
dir = -1;
}
useHandCursor = true;
}
onClipEvent(enterFrame)
{
temp = original._alpha + speed*dir;
original._alpha = Math.min(100,Math.max(temp,0));
}
you can see the completed .swf (before i changed the HandCursor to true) here.
and here are screenshots of the relevant pages in flash
http://i250.photobucket.com/albums/g...reenshot-1.jpg
http://i250.photobucket.com/albums/g...reenshot-2.jpg
http://i250.photobucket.com/albums/g...in/scene-1.jpg
- i would be so grateful for any help from you guys (and, i presume, girls!) - many thanks in advance.
Random COLOR And Alpha Changer
Anybody have some quick ideas for a random COLOR changer and Apha changer...should I use the setTransform command?
thanks tv
|