ActionScript 3.0 :: Alpha Keeps Gradually Increasing
Apr 1, 2009
I have a MovieClip, "my_mc", that is hidden and shown when you MouseOver a grey block that is on the stage, similar to a tool tip. Inside of this MovieClip is a TextField, "my_textbox", and another MovieClip, "my_box". "my_box" is underneath the textbox and will hold the graphics for the tooltip.
What I am trying to do is add a Sprite to "my_box" and set it's alpha to 50%, or 0.5 AS3. Well, I accomplished doing this, however, when you Mouse Out then Mouse Over again, the alpha increases by 50%, to what seems 75% alpha now, instead of staying at 50%. Do it again and it goes up another 50%, so on and so forth.
I have tried setting the "my_box" alpha, as well as the alpha of the Sprite that is drawn inside, and it still does it. Also another piece of info, when I trace the alpha, I get 0.5, even though it appears to be solid red on screen, after a few MouseOver/MouseOuts. The source files are attached, but for those who don't want to download, here is the AS3 code:
[ode].....
View 3 Replies
Similar Posts:
Mar 31, 2011
Is it possible to get a 'feathered' mask in Flash CS4 where the edges of the mask gradually transition to 0 alpha? I tried to set this up by creating drawing a shape with the pen tool, turning into a movieclip, then filling the original outline with a white (or lime green) center to black on outside, with the outside fading to an alpha value of zero. When I apply this as a mask, however, the borders are completely sharp rather than the layer below being 'partially' masked.
View 2 Replies
Mar 22, 2011
I'd like to know how to gradually fade in a movie clip using alpha values? I'd like it to go from 0 to 1 in about 2 secondsish
View 5 Replies
May 9, 2005
I 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%, Since I have never messed with Alpha's using action script.
View 14 Replies
Sep 8, 2009
I don't know which is the best way to explain this, but I am making an accordion-style xml menu and I would like to position my items from left to right so that their "x" and "alpha" property increase gradually, as if it was calculated from Strong.easeIn, if you know what i mean.How would one go about this in actionscript?
View 2 Replies
Nov 10, 2010
I'm creating an animation where I want to simulate the increased velocity of particles with increased temperature. I was planning to just gradually have fewer frames per distance travelled on the screen, but I thought I'd check here to see if there's a less tedious way of doing this.
View 1 Replies
Apr 9, 2010
I want to create a Flash or animated video that starts with a red dot on a black background. Gradually the dot increases in size and is actually text which says something such as "Buy American". How can this be done?
View 1 Replies
Feb 6, 2012
My game starts to slow down when you play it more than 2 minutes or so. Not adding the enemy bullets seems to solve the issue, but I'm sure there's nothing wrong with my bullet class![code]...
View 6 Replies
Aug 23, 2009
I'm trying to create a puzzle/platform game where the environment flips (180 degrees) rotates (90 degrees) by increments when the player touches a power-up so to speak. The code I have for the power-up is:
onClipEvent (enterFrame) {
if (_root.powerup, hitTest(_root.player)) {
gotoAndStop(2);
[code]....
View 1 Replies
Mar 26, 2012
I can make a circle (filled) turn. I want it to go gradually smaller or bigger while turning.
View 2 Replies
May 10, 2010
I have a as2 scroller button that drags 'clip' MC:[code]how do I make the speed gradually (say 1 second after release to) halt?
View 4 Replies
Aug 9, 2010
Im trying to load an external swf(a gallery of images) and I want the images to show up on the website as they load so for example if the swf is 10% loaded, it should have loaded a few images but they dont show up unitl the external swf is 100% loaded
So instead of the viewer having to wait until the external swf is 100% loaded, I want the viewer to be able to see the images of the external swf as they load.
My external swf has images on frames 1 15 or so..
View 4 Replies
Jan 25, 2006
I just need to gradually attach mc one by one into stage then get bounce...What I have so far is I just attach the all the total mc simultaneously..so how's to attach one by one then get bounce...
Here's the code...
springSpeed = .9;
springDamp = .6;
xscale = 120;
yscale = 120;
function bounce() {
[Code] .....
View 1 Replies
Apr 7, 2009
I've been searching all over for an answer to this, but have not had much luck. I have an .xml file that loads its data into a DataGrid. However, I don't want all the data to load up at once. I would like it to load the first five records, and after x amount of seconds fade out and fade in with the next five records.
View 2 Replies
Sep 28, 2009
What do I use to blur a sliding picture? I want it to blur gradually as the motion of the picture increases. I have BlurFilter on right now, within the btn function that evokes the picture motion, but it obviously just immediately blurs the picture upon btn activation and doesn't do it gradually.
I understand that filters can not be tween'd with tween (except tween lite - but I don't want to use this).
I found something on [URL]..3-0-a.html but can't seem to adapt it to my code.
View 7 Replies
Jul 13, 2010
make a spinning sign that gradually slows down. A tutorial maybe or an .fla file I can look at?
View 3 Replies
Dec 3, 2010
I'm totally new to ActionScript and don't really know what I'm doing yet! I have an assignment due Thursday and one of the things I'm currently stuck on is: I'm trying to get the water in a beach scene to gradually move down the screen until it fills the screen (and then the game will be over). At the moment I'm trying to do this using a timer event, is this right?
View 4 Replies
Oct 23, 2010
[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?
[Code]....
View 2 Replies
Dec 15, 2011
just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:
create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;
[code]....
View 9 Replies
Jun 27, 2003
using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.
i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...
View 14 Replies
Jan 13, 2012
I have a large ArrayCollection that need to be displayed in series of Datagrid.After testing, the loading time is around 30secs-1minute.My question here, is there a way to gradually add each datagrid and display it instead of waiting until all datagrids to fully created?Existing :
AddChild 1
AddChild 2
AddChild 3
[code].....
View 1 Replies
Aug 23, 2009
I just got Flash CS4 yesterday. This is the first time I have ever used Flash. I watched some tutorials and now I'm trying to do something on my own. I want some text against a white background to start out white in the lower-left corner. During the animation I want the text to move to the upper-right corner and turn black gradually as it goes. What I did was this:
created an actionscript 3 file
Made some white text at the bottom-left
Right clicked at the 90th frame on the timeline and clickedInsert KeyFrame
Right clicked between the 1st and 90th frames and clicked Create Classic Tween.
At the 90th frame I moved the text to the upper right. Then I clicked on proprties and set the text effect to brightness and set the brightness to 0 so the text would be black.When I hit enter to go through the timeline it shows me exactly what I expected: The text moves from lower left to upper right and gets darker as it goes.
When I hit Ctrl+Enter to preview it as a published movie the text stays white the whole time until it gets to the upper right. There it turms black. So all I see is nothing for a few seconds and then a flash of the black text.Also, if I click at each frame in the timeline I can see the text is in a different place and getting brighter gradually.I'd like it to play once rather than looping. Under the effects I clicked on a thing that says play once but it still loops. Where do you control this?
View 3 Replies
Nov 23, 2009
I have created a flash app in which there is a circle with circles plotted along it's circumference, it is rotated when the mouse is moved up or down. The rotation is drawn directly from the y position of the mouse pointer. What I would like to do is grade the movement some how so that the further down the mouse pointer goes the less impact on rotation the movement has.
My current code is like this:
myCircle.rotationZ = e.localY;
Is there some form of math formula I could use which would reduce the amount of rotation the greater the y position of the mouse position?
View 4 Replies
Jan 12, 2009
just another CS4 newbie in a panic about the "new skool" tweening. I'm sure that I'm going to absolutely love it once it all sinks in, but at the moment, there are a few things that strike me as odd and I'm looking for guidance... Something I noticed last night that was different in terms of workflow was animating consecutive objects. Imagine the following simple storyboard: - a photo appears on the screen and gradually grows in size while fading out - after that photo has completely faded out, a new photo appears on the screen and grows in size while fading out.
Now, "old skool" I would have economized my timeline real-estate by having both of these images on the same layer. Since they are not visible at the same time, you can clear (delete) the first image and drop in the second image and everything is peachy. I found that this was not the case in CS4. Here's what happens AFAICR: - import first image to stage. it appears in a layer
[Code]...
View 9 Replies
Aug 10, 2010
I'm editing a scoller and have removed a photo from it however as the scroller scrolls a gap slowly appears where the original photo was. I can't seem to stop this happening?
View 1 Replies
Jul 7, 2009
I've been working on a flash animation that has been set to 12frames per second, but now my boss has told me it needs to be 25fps - but when i change the frame rate in 'modify>document' the whole thing just speeds up. Is there a way to increase the fps whilst retaining the original speed?
View 1 Replies
Aug 2, 2011
I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?
View 6 Replies
Nov 6, 2009
I am working on the following code and I keep getting a cut off at around the 'C' of Dave's computer.I know this is going to be a simple answer but I for the life of me cannot figure out HOW to extend the string visual field. I am pretty sure the secret lies in the variable len.
Code:
import flash.text.TextField;
import flash.events.Event;
var txtFld:TextField = new TextField();
[code]....
View 2 Replies
Oct 16, 2011
The Loaded Swf File Inherits the Frame Rate speed of the Main TimeLine,
Is there a way to control the frame rate of the loaded Swf File.
If I have loaded a Swf File to a Movie Clip container, How can I control the speed of Movie_ClipInstance.CurrentFrame .
View 10 Replies
Jun 19, 2009
I have this blank project, just to check out System.totalMemory variable. As far as I can see, i get this values[code]...
View 5 Replies