ActionScript 1/2 :: Making Movieclips Inactive - Fades Out And In

Jul 21, 2009

I have a movieclip that effectively functions as a button, which we'll call BtnA. When I click it, another movieclip containing the content (CntntA) fades in (this mc is on another layer). Then when I click another button (BtnB) CntntA fades out and CntntB fades in. I've got all this working fine for now, but the problem I have is that once BtnA is clicked, it is still clickable and it fades CntntA back in even though it is already active. Is there a way to disable BtnA after CntntA has appeared? So u can still see it, but you cant click it? Obviously I'll need to do this with BtnB and any future buttons I add

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Making Function Inactive At Scale X

Aug 6, 2010

I have some movie clips that when moused over, become visible. When clicked the clips are clicked on they tween to center-stage and zoom to fill the extent of my stage. One the zoom completes, I'd like the mouse over effect and function to no longer be active. I've been trying this by just making the mc invisible at scaleX>1. This does not do the trick...
if (allthings.NEZOOM.scaleX>1{
allthings.NEZOOM.alpha=0
}

The function that is running the MOUSE_OVER is called NEOVER and looks like this
function NEOVER(e:MouseEvent):void{
TweenLite.to(allview.allthings.NEZOOM, .5, {autoAlpha:.5,overwrite:true});
TweenLite.to(allview.allthings.NETXT, .5, {autoAlpha:.85,overwrite:true});}

Is there a way I could make NEOVER inactive after once I click on the NEZOOM movielip? The click event looks like this
[Code] .....

View 8 Replies

AS3 :: Making Button Inactive Once A Particular Image Is Loaded

Jul 25, 2011

I ma having trouble making a button inactive once a particular image is loaded.I have a portfolio section that has images loading in succession with each click of a button (the forward button)i have another button (a backward button that scrolls through the images in reverse in succession wit each click of the backward button, Problem is the button is active even when it scrolls through the images to the first image. I get the following message in the output panel:[code]I want the button to be disabled hen it gets to the first image thus stopping at the first image Or to the able to scroll through the images in reverse indefinitely just like the forward button - able to scroll through the images forward indefinitely.[code]

View 1 Replies

ActionScript 2.0 :: Pop Up Making Background Flash INACTIVE?

Jun 30, 2004

I have NO idea what the terminology would be for this so I was unable to find anything searching because I don't know what to search for exactly!Anyhoo, I've this on several sites. You've got your main flash working as a main menu on your active browser window.Then you click a link and you get a pop-up. Easy enough. But there's some code or something that can make your main menu and background totally inactive while you browse within the pop-up. When you're done with the pop-up, you close it and then click ANYWHERE on the inactivated "main menu" flash to reactivate it. Load it up, go inside and click the first orange linked text you see. It will bring up and pop-up and "grey-out" the main pag

View 1 Replies

ActionScript 2.0 :: Popup Making Background Flash INACTIVE?

Jun 30, 2004

You've got your main flash working as a main menu on your active browser window. Then you click a link and you get a pop-up. Easy enough. But there's some code or something that can make your main menu and background totally inactive while you browse within the pop-up. When you're done with the pop-up, you close it and then click ANYWHERE on the inactivated "main menu" flash to reactivate it.

[URL]

Load it up, go inside and click the first orange linked text you see. It will bring up and pop-up and "grey-out" the main page.

View 1 Replies

Professional :: Flash Thumbnail Gallery - Making Window Clip Inactive After Click?

Dec 4, 2011

I am an artist trying to remake my website...I have a picture of a window on my homepage. The window is a movie. When clicked on, the window lights turn on and a grid of thumbnail pics appear. Each thumbnail is a movie clip. When a thumbnail is clicked on, the movie plays and a larger image appears over the window. The problem is, the window is still active underneath the large image, so if I click on the large image, I am really clicking on the window movie clip underneath, and the thumbnail grid disappears-starting the window movie clip over. How do I make the window clip inactive after it is initially clicked? Also, I would like the larger images to end their movie clips after another thumbnail is clicked, so that there aren't large images piled up on top of each other.

View 6 Replies

ActionScript 3.0 :: Movieclips From Inactive Frames Still Exist On Stage

Jun 18, 2011

I have layers of a level that the player can switch between.. and movieclips are all inside each other..full_level has 3 instances of full_platforms inside it.. On full_platforms' timeline there are 5 frames with all the platforms and objects for the level. the 3 instances of full_platforms in full_level are called foreground_mc, middleground_mc, and background_mc. CurrentFrame for foreground is set to middle.currentFrame-1, and background is set to +1. The player can switch which frame they are on to go to the foreground and background of the level.. Like a 2d slice of a 3d world basically..

Now, the bug.. in each platform there is a var called layer which is set to MovieClip(parent).name so I can tell if the platform is in the middle, foreground, or background. For some reason platforms on inactive frames are hittesting positive with the player and then tracing a null object reference after doing so. So basically.. platforms from old frames still exist for some reason.[code]...

View 2 Replies

Actionscript 2.0 :: Array Button Menu That Fades MovieClips With Tween Class?

May 19, 2009

The first on is using the Tweener class and everytime that I press a button it fades out the loaded content of the previous selection, waits for it to finish and then loads the content of the button pressed. Everything works fine with this part.The second code is the on that is using an Array to dynamicaly rollover, rollout and keep selected the buttons.It was also changing the content of the mc that everything is loaded on but without this fancy fade in - fade out...!So i think its time for some code now...:

Code: Select allimport mx.transitions.*;
import mx.transitions.easing.Strong;
var FADEINSTART:Number = 2;
var FADEINSTOP:Number = 7;

[code]....

Ive managed to make the previous mc to fade out but cant really make everything work properly...!

View 1 Replies

ActionScript 2.0 :: When Rollover A Button It Fades To Another Color / When Rollout It Fades Back To The Original Color

May 7, 2002

This is my first post here and it my be a hard one to understand? Overview I have four buttons on the main stage (info) (help) (bio) (main) When you Rollover a button it fades to another color/when you rollout it fades back to the original color I have a script that does the color change because I do not want to use motion tweens. Here is what I did I made a 2 frame MC named infoMC In the 1st frame of the MC I made the word (info) a nested MC and attached the color change code to it. The 2nd frame of the MC Is the same as the 1st frame but I revesed the color change

[Code]....

View 8 Replies

ActionScript 2.0 :: [FMX] OnCLipEvent - Fades The Clip In When Mouse Is Over The MC And Fades It Out When Mouse Moves Off

Nov 4, 2003

I have the following script on a movie clip which fades the clip in when your mouse is over the MC and fades it out when your mouse moves off. It works fine, but it "flickers" when its faded in all the way. How can I stop that?

[Code]....

View 1 Replies

IDE :: Making Scrubber Bar And Scrubber Inactive

Jan 20, 2009

I am making a player that adds an advertisement before a video but don't want the user to be able to skip though the ad. I am using the progress component and an FLV Playback component for my player. I had tried to just hide the progress bar but it looks unbalanced. If anyone has an idea on how to make it so a user can not fast forward though the ad by dragging the scrubber that would be great.

View 2 Replies

ActionScript 3.0 :: Making Movieclips Out Of Images?

Oct 21, 2008

I am trying to load my images with xml and then turn them into movieclips and attach an eventlistener. With the code below this is the error I get.

ReferenceError: Error #1069: Property name not found on flash.net.URLLoader and there is no default value.at MethodInfo-1()

View 3 Replies

ActionScript 3.0 :: Making Overlapped MovieClips Act As One?

May 1, 2011

what i have is a white picture frame, and within the frame lays my picture,
how can i make them work together in a way that both are one MovieClip!?

ActionScript Code:
addChild(WhiteFrame)
WhiteFrame.Container.addChild(MyPic)

[Code].....

View 2 Replies

ActionScript 2.0 :: Making Two MovieClips Move Together?

Nov 25, 2007

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.

View 2 Replies

ActionScript 3.0 :: Making MovieClips Invisible With For Loop?

Dec 22, 2011

I have twenty movieclips on stage with these names:
g1
g2
g3
g4
....

How can I make invisible with a for loop, like
for (i = 1; i < 20; i++) {
g+i.visible=false;
}
This that not work.

View 1 Replies

ActionScript 3.0 :: Array Of Movieclips; Making Everyone Visible At Same?

Sep 18, 2010

Can I make an array of movieclips, and then make all of them visible? some-thing like:

ActionScript Code:
myArray[1] = new MovieClip();
myArray.visible = true;

[code].....

View 2 Replies

ActionScript 3.0 :: Making Copied Movieclips Draggable

Sep 28, 2010

When you click on a movieclip in the menu, it is then copied and added to the container_mc movieclip.

My problem is that I can't figure out how to make the movieclips draggable once they are in the container_mc.

I tried the following as a test but its only working for the existing movieclip, not the new one like I want it to[code]...

View 2 Replies

ActionScript 2.0 :: Making Duplicated Movieclips Into Buttons?

Sep 29, 2005

How can I get my movieclip which has been duplicated to act as a button? Neither of these seem to work:

Code:
"thumbContainer"+nextPicture.onMouseDown = function(){
trace("Clicked")

[code]....

View 6 Replies

ActionScript 2.0 :: Duplicating Movieclips & Making Draggable?

Apr 16, 2003

I am basically trying to duplicate a movieclip by using a button.. (no probs there).however, i want to drag each movie clip individually.. ( my brain froze)here is my butchered code..// graphic is the mc i wanna drag, n is the textfield that i want to count up.

on (press) {
addmore = "graphic" add n;
duplicateMovieClip("graphic", addmore, n);

[code]......

View 14 Replies

ActionScript 2.0 :: Making Movieclips Invisible On Load?

Mar 1, 2007

I have several movieclips placed on the timeline that I want to be invisible and not run until the user clicks a button. The movieclips are linked to a class I set up:

Code:
class Hidestop extends MovieClip {
function onLoad() {

[Code]....

The problem is that some, but not all, movieclips show briefly when they load before becoming invisible. I can get around this by starting each movieclip with a blank frame, but there must be a better way.

View 11 Replies

ActionScript 2.0 :: Making Dynamically Attached Movieclips Act As Buttons?

Nov 20, 2009

I have dynamically attached a number of movieclips inside a another movieclip on the stage, and now I want them to act as buttons, but I can't work out how. They are named as they are created, so I know I can target them, but as to how to assign an onRelease functions to them I have no idea.I don't want to hard code a load of onReleases, as the number of movieclips will change depending on outside data, how I could do this with a loop or something, given that I have an array of their names?

View 4 Replies

IDE :: Making A Global String Variable Visible To MovieClips?

Jun 4, 2009

I mostly use flash for the animation, so my action script tends to be mostly functional.

I am now however having an issue, i am using a variable called language which I am setting in frame one as "dutch", "english" , "german" etc... Im then using this to set dynamic text as appropriate in each frame as necessary.(and yes i may switch this to case statements )

if (language == "dutch")
{ tcMC.peasantBubble1.peasantSpeech.text= "Bescherm je een schat?"};

My problem is however that one Movieclip does not see the language variable.

Is there anway in CS4 i can direct it to where it is, or define the varibale instead to be global (perhaps id have to change it from a string though)?

View 2 Replies

ActionScript 1/2 :: Background Fades In And Out?

Nov 6, 2010

Im creating a microsite, in which the background colour changes depending on which section you are in! I want it so that when i go on one section the current background fades out as the new on faids in!Ive got the fades in's sorted, however is there some sort of script that i can put in that tells the current background to faid out??Also say im in the red section and then want to load a diffrent aspect of the red section! I dont want it to re-load the Red background! Is there some way of achieving that?? My first throught was to use some sort of IF statment, however im not exactly sure how i do this?

View 4 Replies

ActionScript 2.0 :: Mc Fades In Approach The Top?

Jun 2, 2008

I am not very code oriented, but I found this code that I altered for my needs, and it works, as you move your cursor towards the bottom of the screen the movie clip fades in. However, in addition I need one that does the inverse where another mc fades in as you approach the top. Does anyone know how I would acomplish this task?

[Code]...

View 4 Replies

Professional :: Flash Lag When In Inactive Tab?

Mar 31, 2011

The problem: I have a .swf file embed on a website. When i'm on the site the flash file works fine looping continously. BUT when i switch tabs for a couple of minutes or then return to the website, the .swf file lags for around 15 to 25 seconds before it starts playing the movie again.

View 3 Replies

Professional :: When Inside Symbols Everything Else Fades

Sep 6, 2010

when I enter a symbol by default everything around that is not part of that symbol becomes faded - is there a way to disable this?

View 4 Replies

ActionScript 3.0 :: Set Button Inactive While Tweening?

Feb 8, 2012

I have a problem with the script below:On stage are two movieclips for triggering the tween of a third movieclip.There is also a dynamic text saying "text [1] of [5]"The problem is that if I trigger the tween while its already tweening, it will keep changing the count of actualText but not tween corresponding.-Is it possible to deactivate the triggering mcs -Is it possible to make the count of actualText when the tween is done.

//vars
var totalTexts = 5;
var actualText = 1;
var boxStart = 25;

[code]....

View 1 Replies

Actionscript 3 :: AIR App Inactive = Lower Framerate?

Mar 10, 2012

I'm developing an AIR app that is receiving TUIO events from a Framework for a fiducial marker based multitouch table. Until yesterday I was faking the events by mouse to work faster, but then I connected everything to a TUIO simulator and the problems appeared.

The TUIO Simulator is a java app. By dragging markers on the simulator you can send OSC messages that I'm forwarding to my AIR app. The problem is that I'm noticing that when I drag something on the simulator, my AIR app lose the focus, and the AIR framerate suddendly drops. If I drag something on my simulator and I switch super fast to the AIR window, everything goes smooth, so it seems the problem is that if my AIR app is not the active app it's redrawn at a lower framerate (I remember reading something about this, not sure).

So my questions are: am I right about the fact that inactive windows in AIR are redrawn at lower framerate? do you have any workaround to fix it and to allow me to interactive with the java app without my AIR framerate drops?

View 1 Replies

ActionScript 2.0 :: How To Make Button Inactive

Jan 26, 2007

In my project I have a dynamic text box. You enter you name in the text box and then click the submit button. This then takes your name and puts in on another slide. The only problem is that you can skip this by entering nothing in the text box, then the other dynamic text box calls you "undefined". I was just wondering if there was a way to make the button inactive until the text box has some text in it. I have tried if statements but nothing seems to work.

View 1 Replies

ActionScript 2.0 :: Detecting An Inactive Computer?

Aug 19, 2007

how Pandora detects when your computer has been inactive for a certain period of time, without even being an active window. I can have it running the background for hours but the moment I walk away from my computer for a half an hour, the music stops.

View 2 Replies







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