ActionScript 3.0 :: Alpha Only Disappear And Reappear Once

Aug 26, 2009

Here's a snippet of code I am working on. I have two buttons symbols, instantiated as 'up' and 'down.' There is a movie clip object instantiated as 'circle.' Up and down are supposed to respectively raise and lower circle's alpha gradually using a timer.

Here's my code:
var upTimer: Timer= new Timer(100,10);
var downTimer: Timer= new Timer(100, 10);
up.mouseEnabled= false;
upTimer.addEventListener(TimerEvent.TIMER, appear);
function appear(e:TimerEvent):void{
[Code] .....

The problem is that I can only make alpha disappear and reappear once, and then the the program stops functioning the way I want. I press down and then up, and it works but then after wards the alpha on circle only goes up and down a little bit. Why?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: How To Get EnterFrame Disappear Then Reappear

Jan 27, 2012

I have some stars in my flash file. I want them to dissappear when I get to the final frame. Can I delete the enterFrame? Then how do I make it re appear again?

Code:
var numStars:Number = 15;
for (i=1; i<=numStars; i++) {
_root.attachMovie("star", "star"+i, i, {_x:Math.random()*Stage.width, _y:Math.random()*Stage.height, _alpha:Math.random()*100});
_root["star"+i].rotSpeed = Math.round(Math.random()*8+2);
[Code] .....

View 4 Replies

Buttons Roll Over And Disappear And Takes A Second For Them To Reappear?

Jul 3, 2009

Whats wrong with my buttons? here see how they rollover and dissappear and takes a second for them to reappear they should look like this Not counting the last button what did I do wrong here? I am modifying code of a programmer who is not with my company anymore and I need to edit this for a client

View 1 Replies

Professional :: Make A Button Disappear, Then Reappear?

Jul 28, 2010

I am making a few language flash cards in adobe flash cs5 with as3. the flashcard is a movie clip and when you push a button (located on the bottom left hand corner of the flashcard) the movie clip flips the card to give the translation. it looks a little unprofessional to have the button stay in place while the card flips. is there a way to make the button disappear for the duration of the movie clip, and then reappear at the end?

View 6 Replies

ActionScript 3.0 :: Make A Movie Clip Disappear On The Left And Reappear On The Right?

Jun 2, 2011

Is there a way to show parts of a movie clip in different areas of the stage? Like if a sprite was to leave stage left and reappear stage right?

View 9 Replies

ActionScript 3.0 :: Text Disappear On Font Size Change And Reappear On Clicking Start Button?

Dec 4, 2009

I'll try to be brief. I've built a teleprompter projector file app in Flash CS4 and it works great on PCs & MACs. Only one bug. the program works in three phases: Welcome & instruction screen / Text input screen / Prompter screen.Problem occurs when you first enter prompt screen

basic navigation and functionality includes:

BUTTONS: button to return to INPUT screen, a BEGIN button, a MIRROR text button, and a SAVE prompting position KEYBOARD: SPACE begin prompting, LEFT & RIGHT ARROW increase & decrease font size, UP & DOWN ARROW increase & decrease scrolling speed, HOME returns script to top, PAGE UP & PAGE DOWN moves script by 600 pixels.

MOUSE: MOUSE_WHEEL increases and decreases scrolling speed *(would like to add a ctrlKey modifier to change font size on mouse wheel - another day perhaps)

THE PROBLEM: When you enter the prompt screen and hit PAGE DOWN the script correctly moves down 600 pixels, but does not redraw on the stage. If you then hit PAGE UP it correctly moves up and the text is back on the stage. Hit PAGE DOWN again and it moves but does not render. You can repeat this continuously. I have a Y position reference that shows the Y coordinates of the text field, so I'm confident that the MC is correctly moving, it's just not rendering. If you hit PAGE DOWN and hit BEGIN the text renders in the correct place. Once you start the prompter, you can stop it and use PAGE DOWN and it renders correctly, but if you change the font size larger > 100 and hit PAGE DOWN the font again does not render. Again if you hit BEGIN the font renders correctly in the correct position.

WHAT I THINK: I've been trying to find a way to update or refresh the text field that is being manipulated on PAGE DOWN and font increase; no luck with updateAfterEvent or redraw. I've tried to start and stop the prompter programmatically in one frame at the end of the PAGE DOWN function & font increase.

POSSIBILITIES OR NEW STRATEGY? I'm a media production specialist with a school district in Florida, and I'm hoping to release this app to all our schools and to sourceforge.net. It's a small bug, but I'd rather not have to explain it if I can find a way to fix it. The following code block only contains the functions related to the navigation and prompter text box manipulation.

//Begin button toggle code.Toggle between begin and stop.startBtn.addEventListener(MouseEvent.MOUSE_OVER, startOver);function startOver(e:MouseEvent)[code].....

A Visual Basic & ASP.NET programmer I work with looked at the bug with me, and he believes the error is somehow related to the actual CLICK of the BEGIN button. As I noted earlier, we tried a workaround by using code to start and stop the prompter in one frame after the font size change, but that did not correct the issue. Yet when you physically click begin with the mouse it renders the text.What is it about clicking the mouse that causes the text box to render? Is it a focus issue? Like the keyboard has focus, but when you click BEGIN it returns focus to the text box and it redraws then?

View 2 Replies

ActionScript 3.0 :: How To Make Character Disappear(alpha)

Feb 24, 2011

My problem is how do i make the character disappears when move on to certain places(clicked by user). For example i have a Object(house) with x=233 and y= 134, when i click on the object (house), the character will move to that current object(house) and when the character has reach or move in the house, the character disappears(character.alpha = 0).

View 4 Replies

ActionScript 3.0 :: Tween The Preloaders Alpha To Zero (instead Having Disappear) Then Remove Them

Jan 19, 2012

I built a gallery and each thumbnail has its own preloader. Right now, I'm trying to tween the preloaders' alpha to zero (instead having disappear which I have now) then remove them. I think there's a way to do this using TweenLite, but I can't figure it out. Here's the code I have so far:

[Code]...

View 8 Replies

ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

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

ActionScript 3.0 :: Curious Tip: Flipping Sprite.alpha=0 To Alpha=1 Back And Forth With No Logic?

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

ActionScript 2.0 :: 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?

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

Set Alpha For Whole Stage Down But Have 1 Mc Full Alpha?

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

ActionScript 2.0 :: Dynamic Text Alpha - Find A Component That Allows Alpha Control With A Dynamic Text Box?

Feb 26, 2005

As far as I know theres in no way to cahnge 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. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.

View 5 Replies

AS2 :: If Click On One Button, The Others Disappear?

Feb 13, 2010

I got it to work perfectly on another flash file, but I can't get it to work on this one. The concept is the saem but the application is not, so I can't copy and paste. Anyway, this is the problematic code.

Actionscript Code:[code].........

Clicking this button results in a new Machine Gun being created. However, if you click on one, the others disappear.

View 1 Replies

ActionScript 3.0 :: Why SWF Doesn't Disappear

Feb 20, 2010

Ive been having troubles unloading some external SWFs. I know that in order to totally erase an SWF from the display list and memory I must to rip off all its references. But Ive got this SWF on stage, when the code is executed the SWF is gone for good, but in the second case when Ive got it loaded by pressing the load_intro_button the SWF doesnt go, even knowing that the function is exactly the same (Copy/Paste ) as the first one just under different names. Since Ive erased everything from the URLRequest, listeners, timers, and unload the swf, Why the GC doesn't take care of it as it did in the first case?.

Code:

//First Case
var myIntro:Loader = new Loader();
var myIntroRequest:URLRequest = new URLRequest("intro.swf");

[Code]....

View 4 Replies

Getting The Rollover Image To Disappear?

Jun 28, 2009

I've nearly sorted my previous problem, I just need a bit of help with getting the rollover image to disappear again once the mouse has left the rollover area. would anyone be able to take a quick look at the fla?

View 2 Replies

Button To Disappear After Click It?

Jul 8, 2009

I want my button to disappear after you click it.  I have mulitple buttons on the same stage and as each button is clicked, I want that button to go away. 

View 2 Replies

ActionScript 1/2 :: Faces Disappear When Have Over 3 Of Them?

Oct 3, 2009

I made a game and i had 3 faces on it. Now i added one more and when i play it, i see only two.

[Code]....

View 5 Replies

ActionScript 3.0 :: Disappear If A Different Value Is Added Afterwards?

May 20, 2010

In the actionscript below I am trying to get it so that if the rateablevalue text field is less than 18000 then the raterelief_txt text appears, but if it's more than 18000 the yousave_txt, the pound_txt and the results_txt appear. I want them to disappear if a different value is added afterwards.

[Code]...

View 16 Replies

ActionScript 3.0 :: My Button Use Disappear

Sep 29, 2010

All it is is an swf that has balloons randomly moving upward. Each balloon is a movie clip that  has another "button" movie clip inside of it.As you click on each  balloon, the balloon pops and then recreates itself.The only problem  is that the button inside the balloon is not acting like a button the  entire time. The upward movement is being called through an enterFrame event listener  and the use of the button goes in and out as the balloon moves upward. It's a pain because you have to click the balloon multiple times in  order to get the balloon to pop. Does anyone know why this is or if there is an alternative to enterFrame? You can currently view the game here to see what I mean. You'll notice the balloons aren't always clickable. You can download the FLA here.

View 3 Replies

Images In The SWF Movie Disappear?

Jun 3, 2007

I export my Flash movie and upload to web. After a certain amount of time (maybe 1 minute?), the images in the SWF movie disappear. Anyone else experience this and know the reason why this is happening?

View 19 Replies

Flash :: Asp.net Mvc 3 - Disappear After Few Seconds In Ie6

Jul 6, 2011

My flash is working fine in all browser except ie6. During loading of page I see flash fine in ie6 but once page is loaded flash disappears. Looked everywhere but can not find solution. in ie6 downloaded latest player WIN 10,3,181,34. version detected at [URL]

[Code]...

View 1 Replies

ActionScript 3.0 :: Get Picture To Disappear?

Feb 7, 2010

I got the first part to work now upon click how do I get the picture to disappear? So click opens but how do I click to make go away?[code]...

View 2 Replies

Actionscript 3.0 :: Images From XML Appear/disappear

Jan 7, 2009

I can't get the rotator to display the images loaded from xml file. What i mean to say is, the images display, but after the 2nd rotation, all the images dissapear and I have no clue why. I have included the zip file of my flash files.

Here is my AS file:

Code: Select allvar arrayBoxes:Array = [picBox0, picBox1, picBox2, picBox3, picBox4];   // temp array to load 5 boxes to see if xml data being pulled and placed
var movRotBoxes:Array = [movRotator.boxRotate0, movRotator.boxRotate1, movRotator.boxRotate2, movRotator.boxRotate3, movRotator.boxRotate4];   //array

[Code]....

View 3 Replies

ActionScript 2.0 :: Making Mc Disappear?

Mar 8, 2006

i need to make the drop down menu dissapear when my mouse goes outside the box.

i'm using on (rollout) {
_root.menu._visible = false;
}

[code]....

View 4 Replies

IDE :: Make The Background Disappear?

Jul 22, 2009

I have a map application where the user mouses over the various counties, and clicks on it to zoom in. I am having a problem synchronizing the background change with the county zoom.referably, I would like the background to zoom out with the counties as they zoom, but having the background fade to white would work just as well. I created a movie clip of the main map (background) to zoom in, but I don't know how to play 2 movie clips at once.You can see it in action here:

View 1 Replies

IDE :: How To Make An Object Disappear

Jan 24, 2010

I am a learner. I am using one object which animates from a corner and comes to the middle of the stage (Using Motion Tween for animation). What I need is when it comes to the middle of the stage it should disappear from the stage. How it is possible?

View 1 Replies

ActionScript 2.0 :: Make The Moveclip Appear And Disappear ?

Nov 7, 2008

I have a movieclip - instance name "popup clock" . The frame on which it is on has the following code:

Code:
popupclock._visible = false;

The movieclip starts off invisible like it should. I also have a button which has the following code:

Code:
on (release) {
if (popupclock._visible=true) {[code]..

The code should allow the button to make the moveclip appear and disappear but it doesn't work?

View 4 Replies

ActionScript 2.0 :: My Button Doesn't Disappear

Mar 27, 2009

I have a button going across the stage and when clicked it is supposed to disappear. It usually works that way but it seems that if it is going to fast or not hit just right the button doesn't work. I know it is being hit because I have a counter counting the times its hit and how many it is missed.

View 2 Replies

ActionScript 2.0 :: Get Certain Objects In My Movie Disappear?

May 3, 2009

I am trying to get certain objects in my movie disappear or be removed from view when you enter full screen.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved