ActionScript 2.0 :: Make Each Of Squares Change Alpha Every Second
Jul 28, 2004I want to make each of the squares (pictured below) change alpha every second or so. (fading).Is actionscript needed to do this?
View 13 RepliesI want to make each of the squares (pictured below) change alpha every second or so. (fading).Is actionscript needed to do this?
View 13 RepliesI have a made function to control the alpha of a few squares. The function looks like this:
[Code]....
I know that I can call that function for one mc with: [AS]fadeSq (square1, 0, 4);[/AS] But is it also posibe to call the function for let's say seven mc's at once. I mean without writing seven lines of scrip?
can someone give me an idea how I would use a function to enlarge and change the alpha of a button but make it span over a period of time like it was an animation.a long time ago on gear78.com I think he used functions to make his buttons do what they did and it was badass. if I find another site I will post a link. if you don't know what the heck I am talking about tell me and I will try and explain it more.
View 2 Replieswhat's the main idea behind 3D in Flash. I mean, I've seen a lot of scripts to make rotating squares or triangles or whatever, but never managed to understand how they were made.
View 14 RepliesI'm work with PS and AI and am a begginer with Flash and currently I'm making this clean cool looking header for a server I play on. This is what it to looks like: [URL]. However I don't know how to make the small squares motion, I want them to "spawn" around the text with alpha slowly growing, not behind the text so it's clean and to move outwards and slowly disappear.
View 2 RepliesI have created a finite menu and it works fine, the only problem is that now I want to have the menu set to 50% alpha and when the user moves the mouse over the menu it gradually increases to 100%
View 14 RepliesI am trying to dynamically change the alpha value of a set of movieclips on a timer. The timer works but I get an error message from the function. This is the error:
TypeError: Error #1010: A term is undefined and has no properties. at piedacoulisse_timer_fla:MainTimeline/zoom/piedacoulisse_timer_fla:onT ime()[piedacoulisse_timer_fla.MainTimeline::frame1:124] at
[Code].....
Im very new in the flash business and i started making a gallery after this videoi get 2 errors when i write te action code for alpha change. Is it because i use ActionScript3 instead of 2? because i made it with flash CS3.
View 8 RepliesBasically, I want to change the alpha value on my movieclip. I start my mc with an alpha of .08 (8%).
mc.alpha = .08;
What I then want to do is increment it to .9 (90%) and when it hits that, decrement it back to .08, and then when it hits that, increment it again to .9 etc.
I have tried
if(mc.alpha==.9){
mc.alpha -= .01;
}else{
mc.alpha += .01;
}
From what I understand you can change the alpha value of a textfield to be fully transparent. I would like to have chat output that fades after a while. I was wondering if there was a way to change just a portion of the string inside of a text field to transparent. The textColor does not have an alpha value. I could just use multiple text fields but I would like to avoid doing that if possible for efficiency sake.
View 1 RepliesI'm making a drawing API for my homepage. My homepage is exclusively created in Flash AS2... But I have a problem with my brush for the drawing API... I would like to change the opacity/alpha value of the brush, with keypress LEFT and RIGHT... But i can't get it to work!
Here is my code:
ActionScript Code:
lineThickness = 0;
selectedColor = "0x000000";
[Code]....
Ok. I am new again so I hope I am describing this correctly. I don't know the best way to do this but this is what I've dreamed up so far: I have a number of movie clips on my screen, all thumbnail sized images, each with an instance name (ex: tw_lifeoftheparty, tw_xmen, tw_xfiles, tw_diehard, etc.).
In each movieclip there are 2 layers: the thumbnail image(bottom layer) and a black border(top layer). The black border is an object named wk_border and isin each of the thumbnail movieclips.
I have given wk_border the same instance name in each thumbnail movieclip "border"
[Code]...
Let me try to explain what I'm doing. I have multiple movieClips (mc_aitkin, mc_anoka, there will be a lot more) on the stage that I want to change their alpha using data from an xml when it loads. I can isolate the info I want and trace it so it shows in output, but I'm not sure how to use it from there.
I've tried to convert the xml data to a number and do an if/else as shown below, but the only output I get is "not" (from a trace). So I'm guessing the if/else isn't recognizing the xml data as a number?
If I can resolve that, the next step will be to apply this function to the large number of mc's I'll have on the stage. Would that be with something like e.currentTarget.alpha = .5; ?? I don't think I can put it in the same changeAlpha function because there the property of 'e' would be undefined.[code]...
How can i change the alpha value of a movieclip through actionscript?
View 1 RepliesI want to make a button to change the alpha of an instance but I dont know how to make it.
Thats what I want: When I click the button, then the movie clip appears (alpha 100)When I click the button again, then the movie clip disappears (alpha 0)
I am making a website/online gallery. I have all my buttons assigning a frame number or value eg. [code]...
and then have all different movie clips loading depending on the the 'frameno'
My problem is that i want the button alpha to change when you are on that page. So i am assuming it would be something along the lines of.[code]...
I've been trying to change an MCs alpha with actionscipt. the movies FPS is 30. Here's the as:
onClipEvent(load) {
var alpha = blue._alpha;
alpha = 50;
var forwardA = true;
var changeA = true;
[Code] .....
Btw, "blue" is the MC that I want to change the alpha of, and this code is on that MC.
how to script a alpha change on roll over!
View 2 RepliesIs there a way to change Alpha settings on MC using AS? Something like this:
[Code]....
Im trying to duplicate the window effect on this weeks site of the week: [URL]
I am quite new to actionscript 3 here is what I want to do: When the mouse hovers over a movieclip I want another movie clips alpha to go from 0% to 100% then when the mouse moves off of the movie clip the reverse happens.
View 2 RepliesI do wonder how to script a alpha change on roll over!
View 2 RepliesI am working on a project for school using ActionScript 3. I have a matrix created with an animated movie clip. The matrix looks like a bunch of shapes changing size and color on the screen. I would like to have it so when I move my mouse moves over an individual shape in the matrix the alpha will change to be more transparent... like 0.5. I'm sure it would be a mouse move function, but I don't know how to write that part of the code.[code]...
View 16 RepliesI'm running AS3 in Flash CS5 and I'm trying to make a box fade in when the mouse moves to the right.Here's my code thus far:
stage.addEventListener(MouseEvent.MOUSE_MOVE, changeAlpha);
function changeAlpha(event:MouseEvent) {
fader.DisplayObject.alpha =(root.mouseX/550);
[code].....
Trying to make it so my text appears when I roll over the image:
gticar.addEventListener( MouseEvent.ROLL_OVER, roll );
function roll ( evt:MouseEvent ) {
gtiText.alpha = 1;
}
The alpha of the symbol is currently 0.Full Code View:
import flash.events.MouseEvent;
// Stop the showcase on the homepage (frame 2)
stop();
[code]...
I have 10 movie clips on the stage all of them are on the same layer and the alpha property at 0.5.
I want a single movie clip to randomly move to the top of the other at timed intervals. This movie clip alpha property will change to 1 while the other movie clip will remain at 0.5
I made a form and i want it to be invisible until the background's alpha is 100% and dissappear when the backgrounds alpha is anything other than 100.
reserv_form is the form reservations_box is the background
this is what i have but it dosent work:
Code:
reserv_form._alpha = 0;
if (reservations_box._alpha = 100){
reserv_form._alpha = 100;
[Code]....
How can I change the alpha value of the visited link's?
View 2 Repliesis it possible to to change the value of the alpha setting of an attachedMovie
I have
Code:
function attachBk (thisBk, nextBk):Void {
if (thisBk == undefined) {
this.attachMovie(nextBk,"bkHolder1", this.getNextHighestDepth());
[Code]....
When I click a button I want bkHolder1 to fade out but so far I haven't had any success, I tried doing bkHolder1._alpha = 0 just to see if it would affect it's property but it didn't.
I have a bunch of thumbnails which I want to be treated the same on rollover/rollout/press. Right now, I have it working so that the alpha changes on all of them on rollover/rollout/press, but to do that, I have a code for each individual thumbnail, and I know there has to be a way to just have one code that applies to all of them instead of repeating so much (but I'm just not sure how to do it). This is what I have right now:
[Code]...
As far as I know theres in no way to change the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. can't change alpha and find a component that allows alpha control with a dynamic text box.
View 5 Replies