ActionScript 2.0 :: Making Movieclip Alpha = 0 And Move?
May 26, 2003
I'm trying to make a movie clip move a small bit to the right and slowly (or quickly) dim until you can't see it. I've tried 2 different methods. The first was my original so that once you had the mouse in the original location of the movie, you just have to keep it there, you don't have to move the mouse with the clip. The 2nd was one i got after searching the forums. I've debugged out the for statement and tried just seeing if i could make a different movie's alpha change, and it didn't. So I believe the problem is either in the if (of the first) or onRollOver (of the 2nd).
I'm making a slider which will eventually control the alpha levels of a movieclip of mine but I'm having trouble controlling the parameters in the startDrag() function. Here is the code:
[Code]...
This seems to work ok, however, the problem is encountered when I go to drag the MC...for some unknown reason it ventures off its slider bar and goes to the left. I will attach the .fla.
I have an array of display objects that are simple scattered circles on the stage. My goal is to have them move around randomly within, say, a 5/10 pixel radius/range from their original x and y. Sort of like fireflies, but not as jittery and fast, I'm looking for something real smooth. What I have now is something like this:
So as you can see for each circle I call a class JitterCircle and pass it two values: the actual display object and the range I want my circle to fly around in. Inside JitterCircle I have this:
Im in need of a simple code which makes a MovieClip move side to side horizontally preferably using the attachMovie function.The MovieClip must not go off the screen so the movement will have to be limited within the stage size.
[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?
I'm creating pages with text supported by wav files for training. on the bottom of the page is a progress bar. I want to make a button that when clicked will permenantly raise the alpha of a movie clip (on a different layer) to 100%. (it is currently set to 0) within the movie clip (hazpop) is a button that will turn the alpha to zero (click to close window) so in theory (not as2) it should be: on mousedown alpha.hazpop=100 I've been combing the forums for days and no-one is talking about alpha.
i need some tweaking help for making 'client quotes movie'.here is the condition. i already make movie to show client quotes. now i need to make transparent when user click the navigation button. to see my website,u can enter at [URL]...
i am trying to do is make a simple text animation, i need the text to go from small to large and fade. I figured how to make the text move with a tween and fade with the alpha, but i cannot get it to go from small to large and back to small.Here is an example of what i mean...
would like to know the AS code for getting a movieclip object to move to a specific x,y position on stage and change its alpha at the same time... would be nice if the movement was done with a nice tweening also.
posting after a long while, so i thought i'd actually follow the rules for posting,.. I am trying to get this waves thing done, here is the sketch [URL]I am trying to create those antenna waves as in making alpha go to 10% or so in a continuous loop....
Basically I have a MC called "__root.T1" that when a button is pressed it will move to the specified location and then it's alpha property will be zero. the alpha property to the functionstartEasing(_root.T1, 50.4, 161.9, 10);
function startEasing(object, endX, endY, frames) { yourTween = new mx.transitions.Tween(object, "_x", mx.transitions.easing.Regular.easeInOut, object._x, endX, frames);
I'm creating a portfolio site with a handful of thumbnails. I want a short description of each thumbnail to appear when I rollover the thumbnail. I've got it set up to appear, but I want them to fade in. I can't seem to figure that out. In addition, I want an image to appear and move to the front when the thumbnail is clicked. I can get it to appear, but if it's not on top, then it will just show under the other images visible. I'm thinking that a simple command would solve all these issues, but I cannot seem to figure it out. I've included the action script for one thumbnail.
Ideally, I'd like for the clicked image to fade out and the next clicked image to fade in, but I think that that is beyond my Actionscript understanding for now.
i need to make another symbol like this one that moves around same way i think i need to make a new layer? make next script for new symbol so it will to move around the same way.or tell me what to write in the new script for the symbol .
I need to move an instance of the class Snowboarder from x -1.00 to x 199.99. How do I link from my actionscript of class Enter?Here is what I have class Enter [code]Is another class even needed? This "Enter" class will only be used to move a snowboarder over the screen and have a logo apear behind him.
I want my mc to move in a wave shape (like a very low frequency signal) as it moves horizontally accross a blood vessel. I know how to do guide tween, however, I do not want this as I want it to be random. I have a numeric stepper which generates the no of salt particles.
I've made a draggable menu for a flash site (menu_mc), but the buttons don't work inside the movie clip when I apply startDrag. To remedy the problem, I simply made another movie clip (menubuttons). I now want to more or less attach the two movieclips:
Code: if (menu_mc.moveTo(x,y)) { menubuttons.moveTo(menu_mc.x,menu_mc.y) };
I also tried some pretty iffy statements:
Code: menubuttons._x = menu_mc._x
That last one works initially, but when I move menu_mc, menubuttons stays put.
I am trying to make a ball move, it's all perfect apart from this: Statement must appear within on/onClipEvent handler = ( isJumping) = false;) Then I put in "on", then it says: Unexpected 'on' encountered.
i am making a few simple games for the iphone and i would liek to know ow to make a shape move across the screen automaticly so i touch it and it continuously drops down until it hits the floor is there a code to do this, i tryed a while boolean = true but it didn't wrok.
I want to make a handle pull up and then down through an arc. Now using the startDrag on the Handle won't make the handle pivot around an axis. It needs to move a bit like a (one arm bandit) or (The old coin Poker Machines) I have attached a basic file to show the problem I have so far.
I have two movies in my Flash movie. One has the instance name of "Main" and the other "Content". I need to make it so that when I on(release) a button -the "Main" movie clip and the "Content" movie clip move to different locations on the stage. I want to do it without tweens (im trying to break that habbit) and I would really like it if the movies moved quickly to their targeted location with an ease of like 100 and when they reached their location they do that thing where they kinda over-shoot their target and bouce back to it.
I want to make a handle pull up and then down through an arc. Now using the startDrag on the Handle won't make the handle pivot around an axis. It needs to move a bit like a (one arm bandit) or (The old coin Poker Machines) I have attached a basic file to show the problem I have so far.
i've jsut downloaded eilsoes electricity thing which is here: http:[url]....and i'm really confused of all the action scripting and stuff. I was planning on creating somethin similar except without the sliding bar, just the electricity; the domes don't even have to move. i didnt' understand what 'Math.Floor' was...
I also saw the stuff 'home1x' 'home1y'. What are the differences between these and 'point1x' and 'point1y'? and what exactly are they...
In the following code ,onclick of fruits image how to make the fruits image drop in the box image with proper effect(i.e, dropping of the fruit image into the box image should be shown).
How is an effect like this created? The effect is after you click "enter site", you see the background moves a bit when the viewer moves the mouse.[URL]
I'm trying to simulate rubber ducks in a bath tub (Don't ask .)I've got 5 mc's on my stage (Each MC is a duck.) And I've been trying to figure out the AS (2.0) to make them all move in random directions around the stage, bouncing off each other and the stage sides.
i want to make a game where u shoot arrows at the mouse direction, i have everything exept for that, i think is trigonometry, i have seen it on many games but i cant seem to figure it
I have two copies of an image (one called blurPic_mc & one called sharpPic_mc) and I want to be able to move both of them around the screen togethe I need them to stay exactly on top of each other for some other functions I am running but right now the only one that moves is the top one (sharpPic_mc).I included my code below.
sharpPic_mc.addEventListener(MouseEvent.MOUSE_DOWN,Click); sharpPic_mc.addEventListener(MouseEvent.MOUSE_UP,Release); function Click(event:MouseEvent):void{
I wanted a sprite to move round on the screen when a play button was pushed. I have a left and a right button which store strings "left" or "right" into the next positions of an empty array called history.
When i push the play button i want i want the sprite to move either left or right according to what commands are in the array. My code just seems to play one single command and then stops when i hit play again it just repeats the same command.
Is there any way to make it play through all commands in the array one after another?