ActionScript 2.0 :: _alpha = 0 When Clicked Outside Movieclip?

Oct 30, 2006

how to have a MC have _alpha = 0 when clicked anywhere outside the mc

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Change The _alpha For A MovieClip?

Aug 20, 2010

I'm trying to do something fairly simple. I have a movieclip that when clicked with change it's alpha = 0.This is the script I'm using for the movie clip:

ActionScript Code:
onClipEvent (mouseUp) {
_alpha = 0;

[code].....

View 4 Replies

ActionScript 1/2 :: Change Movieclip._alpha Depending On Volume Output Of Music

Dec 24, 2011

how to change the volume, asking how to detect the actual volume (not the set 100 volume) of music/sounds. does flash even detect the actual volume output? So when the volume is 0 (e.g. maybe at the end of a song) the ._alpha is 0, so all I need is a variable for the output volume of a song.

View 1 Replies

ActionScript 2.0 :: If _alpha >= 100 Do This, If _alpha <=0 Do This?

Feb 25, 2004

I have a movie clip (dnk) 7 (not key!)frames long, with 7 different objects (mc's) inside, named dnk0-dnk6.Then, on the mc (dnk) I have:

onClipEvent (enterFrame) {
strDnk = "dnk"+(_currentframe-1);
alpha = getProperty(strDnk, _alpha);[code]...

So, the idea is, to have this mc's (dnk0-dnk6) fading one after the other in a sequence. Which happens as it is supposed to, but what I am trying to do now, is reverse it. With no luck, as you can see from the top script .I was thinking about a solution in a way of telling when _alpha is below 0, than the _alpha would start to rise, until it reaches a hundred, then it would start to fall again.

View 2 Replies

ActionScript 2.0 :: When Mouse Is Clicked, Detect Which Movieclip Is Clicked

Sep 9, 2009

I have parent movieclip and in that many different children movieclips

What i want to do is when i CLICK, i want to detect which movieclip it has clicked and call corresponding function (defined by onpress event) of that movieclip.

View 6 Replies

ActionScript 2.0 :: Button To Open A Movieclip And Then Close The Movieclip When Clicked On Again

May 19, 2010

I am a super noob at actionscript. And I want my button to open a movieclip and then close the movieclip when clicked on again. I have no idea what to add after that here is the code I have for the button so far.....this button opens it.

on(release){
this.linemc5.gotoAndPlay("ear");
}

and this is another button I made that can close it, but I want it to be in the same button rather than seperate.

on(release){
this.linemc5.gotoAndPlay("earclose");
}

View 2 Replies

ActionScript 3.0 :: Replacing Movieclip With Another Movieclip When It's Clicked On?

Jul 9, 2009

I've got music player and one of the controls is a movieclip which acts as a PLAY and PAUSE button. What I would like is to swap the image of this movieclip everytime it's clicked. How would I go about doing this?

Here's my code...

ActionScript Code:
playPause_btn.addEventListener(MouseEvent.CLICK, onPlayPause);
function onPlayPause(event:MouseEvent):void{

[Code].....

View 1 Replies

Replacing Movieclip With Another When It's Clicked On?

Jul 9, 2009

I've got music player and one of the controls is a movieclip which acts as a PLAY and PAUSE button. What I would like is to swap the image of this movieclip everytime it's clicked. How would I go about doing this? Here's my code...

[Code]...

View 1 Replies

ActionScript 3.0 :: Movieclip Cannot Be Clicked?

Apr 12, 2011

Ive got my target game where the target spawns on the stage at a random position. When the target spawns however, i am unable to click it to shoot it?

Ive got my event listener for the target in my actions on that frame, but its giving me the following error:

1061: Call to a possibly undefined method addeventlistener through a reference with static type class.

If i comment out the addEventListener for the Target the game runs but i cant click it, if i dont comment it out i get that error and the game wont run.

View 14 Replies

ActionScript 2.0 :: [FMX]_alpha Crossfade Between 2 MC's ?

Apr 22, 2003

I have 2 movieClips that I want to fade.mc 1 fades out while mc2 fades in. I want to do it in AS to keep my file size down, 'cause I will be having quite a few of this happing.I know how to have one mc fade in using:(I know this is a fade in and I can fadein/out individually)

speed = 10;
bigCalendar_mc.onEnterFrame = function() {
if (this._alpha<100) {[code]......

View 4 Replies

ActionScript 2.0 :: CreateTextField And _alpha?

Jan 7, 2008

I'm not having luck setting alpha values with _parents that contain child textFields created dynamically. The text filed doesn't change its _alpha with the other objects in the movie clip.

View 3 Replies

ActionScript 2.0 :: _root.mc._alpha == 100?

Feb 13, 2004

I have this code. It works fine when i press a button.

if (_root.mc._alpha == 100) {
this.onEnterFrame = function() {
speed = 50;[code]....

I need to know how can I trace the _alpha value of the mc and when the value is 0 a movie clip is loading in the same mc.

View 3 Replies

ActionScript 3.0 :: MovieClip Will Not Move Unless Clicked

Feb 3, 2010

At the start of my movie (its a game), you press a button that moves you to the second frame where the game starts when called by a function on the main timeline called startThisGame(). A symbol called "player" is spawned from a class called Player and when right or left arrow are pressed it responds by moving left and right. Problem: The "player" wont respond to key presses unless I first click anywhere on the actual game window, either in test mode or after publishing. This did not happen before and now it does.

View 3 Replies

ActionScript 3.0 :: Check If A MovieClip Was Clicked?

Dec 31, 2011

How can I check if a Movieclip is clicked.I have two MovieClips on my stage .one has the instance name "yes" the other one is called "no"

if yes is clicked it should do something

if no is clicked it should do something else

but how do I check which one was clicked ?

View 6 Replies

ActionScript 3.0 :: Controlling Clicked Movieclip?

Apr 28, 2009

Is there a way to capture what movieclip that have been clicked so I don't have to wright a new "nextFrame" function for every clip

myClip_mc.addEventListener(MouseEvent.MOUSE_OVER, overMyClip)
myClip_mc.addEventListener(MouseEvent.MOUSE_OUT, overMyClip)
function overMyClip(event:MouseEvent)[code].....

View 10 Replies

ActionScript 2.0 :: Out Of Range _alpha Values?

Aug 3, 2010

Does setting _alpha levels to values less than 0 or greater than 100 cause problems?I know I can program these out but I am trying to make some code as efficient as possible.

View 9 Replies

ActionScript 2.0 :: Increase _alpha To Certain Percent?

Jan 19, 2004

im using the current code on an mc to fade in

[AS]onClipEvent(load){
this._alpha = 0
fadespeed = 15;
}
onClipEvent(enterFrame){
_alpha += fadespeed;
} [/AS]

how can i make this increment until it reaches 75% instead of 100?

View 5 Replies

ActionScript 2.0 :: MovieClip Button Stay Down When Clicked

May 21, 2007

Ok, I've search through the forums but none of the posts seem to work for me. I've got 4 buttons that each have an onRollOver, onRollOut, and onRelease function on them. I would like the onRollOver state to stay in place after the user clicks the button they're over. Then, when the user clicks on a different button, that buttons down state sticks, and the previous button's state unsticks and goes to the rollout function. I've read through and tried this thread:[URL]

View 5 Replies

ActionScript 1/2 :: _visible Doesn't Work But _alpha Does

Jan 5, 2010

I'm using AS2 (Flash 8), and I created a subclass of MovieClip - Card and attached an instance to the stage using attachMovie. However, I can't seem to make it invisible using _visible. Using _alpha works, however, but I would like to use _visible instead. where the problem might be? Here's the relevant code:

[Code]....

One more thing, what are the events for when the mouse cursor enters or leaves a MovieClip? I've tried onRollOver and onRollOut, but those are apparently not the correct events...

View 2 Replies

ActionScript 2.0 :: Embedded Dynamic Text _alpha?

Jan 13, 2009

I have created a movieClip and placed two dynamically created text fields within it. These fields use embedded fonts and work when I first add text and the format to themThe issue I'm having happens when I change the _alpha of the containing movieClip to 0. After that I can not get the text to appear again, even though the _alpha on the containing clip traces out to 100.I am not using the tween class on the textFields or containing clip to achieve the _alpha. I am however using the tween class elsewhere.

View 9 Replies

ActionScript 2.0 :: Can't Access Clip._alpha Through A String Var

Jan 7, 2011

I was trying to make a menu for a game, (and I succeded, it works fine) when I noticed that if I store a clip name in a string var I can't I acess it's alpha with varName._alpha (?) or some other ways I tried.

Is there anything wrong in my code, or is there a way to do it that isn't the one I'm trying?

The way I'm doing it, I have a MovieClip for each screen, that in turn contains all the MovieClips and Buttons, etc, that each screen must contain. So sometimes I must specify the path to things with "_root.MovieClipName.thatThing._blah". Although I think this has nothing to do with my problem there, since the vars are all declared in the stage's timeline...

If you don't quite understand how the functions work, here's a call swapScreen function example: swapScreen("overlap", "OptionsScreen", "options");

If "swap", it removes the screen I'm in, and attaches another one in place. If "overlap" it overlaps the current screen with an overlaper screen (like opening the Options menu ingame). restoreScreen() restores to the previous screen that has been overlapped.


ActionScript Code:
function swapScreen(swapType:String, ID:String, screen:String):Void
{
if (swapType == "swap")
{

[Code].....

View 2 Replies

ActionScript 2.0 :: Custom _alpha Function Not Working (one Way)?

Jul 8, 2011

I'm trying to fade a piece of text that I'm loading via XML in and out (as well as moving it's location in and out).* The fade out part is working fine, and as long as I have a _alpha.100 command where I'm currently calling my "slidein" function (really the fade in function) it works fine. No idea why! I've tried about 100 different placements and I'm stumped.. It's very perplexing.*

ActionScript Code:
function loadXML(loaded) {
if (loaded) {

[code].....

View 2 Replies

ActionScript 2.0 :: (dynamic Text) How To _alpha And Mask

Apr 4, 2006

I have a dynamic text box and i want to mask it but its not working. i remember once someone was showing me something that had to be done to a dynamic text box to get _alpha effects on them and I wonder if its the same thing. Problem is, I don't know what that "thing" is.

View 4 Replies

ActionScript 2.0 :: Dynamic Text Blink Using _alpha?

Nov 13, 2006

I have a slideshow that loads images fia xml.

I have a caption in the middle of stage, that fade in with image.

my problem is that it blinks all the time. I don't know what should I do this is my code that fade image:

ActionScript:
this["image_dropzone" + _root.currentImage]._alpha = 100 * (_root.counter / (_root.fade * _root.second));

[Code]....

I have this Slideshow. http://www.flashkit.com/movies/Scrip...8470/index.php

How to make _root.caption Fade in and fade out with Image. Without Blink.

View 3 Replies

ActionScript 2.0 :: Fire Off A Custom Event On _alpha=0

Jun 20, 2007

In my app I fade a movieclip, and when that movieclip reaches _alpha=0, I want it to send out a signal to let another movie clip begin to fade in.

How do I do this? Is it something even remotely like:

Code:
firstMC.on(_alpha==0) = secondMC.beginFade;
???

EDIT: I don't want to put any code on movie clips -- my code all runs from the root/main timeline.

View 6 Replies

ActionScript 2.0 :: _alpha Setting Disappear After GotoAndPlay(1)?

Dec 12, 2007

On frame 1 i have

Code:
var mc_top:MovieClip;
mc_top._alpha = 68;

And after our hero dies i have this code in frame labeled "die"

Code:
gotoAndPlay(1);
also tried

Code:
gotoAndStop(1);

But now the _alpha setting isn't shown??

View 1 Replies

ActionScript 2.0 :: _alpha Not Working In Internet Explorer?

Apr 27, 2011

have a big Flash (AS2) book, with a small button that, on zoom, disappears (_alpha = 0)This is working either when i run the swf directly, in Firefox 4 and Chrome.

View 2 Replies

ActionScript 3.0 :: Get A Movieclip Fill Color To Change Once Clicked

May 23, 2009

I'm trying to get a movieclip fill color to change once clicked. I'm able to get the mouseover and mouseout working. But the click state isn't working properly.

Here's my code:

Code:

my_mc.addEventListener(MouseEvent.MOUSE_OVER, onFolderOver, false, 0, true);
my_mc.addEventListener(MouseEvent.MOUSE_OUT, onFolderOut, false, 0, true);
my_mc.addEventListener(MouseEvent.CLICK, showMovieclip, false, 0, true);

[code]....

When I use the above code, nothing happens once clicked. I tried using the color property, but, although that made a color change (black), it wasn't the color I had indicated (white).What I have is a movieclip ("my_mc"). Inside the movieclip are other movieclips. When one is clicked, only that movieclip ("my_mc.movieclip01"), is highlighted.

View 1 Replies

ActionScript 3.0 :: Not Reload An Already Loaded Movieclip When Clicked On Navigationbutton?

Aug 21, 2009

How to NOT make Flash reload an already loaded movieclip from the navigationbar/buttons when clicked on. [code]...

View 3 Replies

ActionScript 1/2 :: Loading MovieClip Based On What Button Clicked

Mar 30, 2009

I looped my buttons just fine. However, I am trying to load a movieclip based on what button is clicked. the code loads the same movie everytime though.

View 13 Replies







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