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


Similar Posts:


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 :: Change The _root.broj And _root.logo Variables Inside The Function?

Jan 14, 2010

In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.

var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();

[Code].....

View 1 Replies

ActionScript 2.0 :: _root.cargo Are Multipled By 10 And Added To _root.totalscore?

Feb 27, 2003

im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore

[Code]...

View 2 Replies

ActionScript 2.0 :: _root._root[eelmine].nextFrame()?

Sep 14, 2004

if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();

View 16 Replies

ActionScript 3.0 :: No Longer Move The "_root" By Changing The _x And _y Positions Of The _root?

Jan 26, 2009

I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?

View 2 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 :: 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 :: 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 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

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 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 2.0 :: Controls The Movieclips _alpha Through Instance Names?

Nov 12, 2004

I have an actionscript that controls the movieclips _alpha through instance names. The problem is: I habe a lot of movieClips and I will use the same action in all of them. The same action, just changing the instance name.

View 4 Replies

ActionScript 2.0 :: Display For A Few Seconds And Fade Out Using _alpha Function?

Jan 13, 2006

I have eight images in a MC that I would like to sequentially fade in, display for a few seconds and fade out using _alpha function. So far I can fade one in with this AS:

img1._alpha=0
img1.onEnterFrame = function() {
this._alpha +=10;
}

Assuming my instances are img1, img2, img3, etc, etc... how would I go about sequentially fading each instance from 0 to 100, letting it display on the stage for a few seconds and then fade out (like a slideshow)?

View 7 Replies

ActionScript 2.0 :: Conflict Between The _alpha Controls On The BlackFader And Picture_SEC1?

Aug 20, 2007

It's a simple site with five sections, each one containing an XML slideshow that was created with modified code from the Photo Slideshow Using XML and Flash tut.The in-progress site is temporarily hosted here: http:[url]....everything works fine on the initial load. But if you navigate to one of the other sections (which are not yet complete), then try to get back to the first page (clicking on Home is supposed to work), all that is shown is a black box (used on the site to transition from one section to another).

As you can also see, this problem does not occur when navigating back and forth between sections 2-5.I think I have the problem isolated to a conflict between the _alpha controls on the blackFader and picture_SEC1...

Code:

stop();
//define and set current section variable
var w:Number = 1;[code].....

View 3 Replies

ActionScript 2.0 :: Makes All The Created MovieClips Have An _alpha = To 20 Instead Of Just The One RollOver?

Oct 22, 2002

[Code]...

why this makes all the created movieClips have an _alpha = to 20, instead of just the one I RollOver?

View 14 Replies

ActionScript 1/2 :: ._alpha - Make The MainBar Which Is Some Sort Of A Control Bar - Transparent

Mar 4, 2010

mainBar.onRollOver = function()
{
mainBar._alpha = 100;
}
mainBar.onRollOut = function()
{
mainBar._alpha = 0;
}

My mainBar(movieClip type) consists of several buttons. If i don't put the codes above, the buttons would work as per normal. but if i put these codes, the buttons do not respond when i click on them. I want to make the mainBar, which is some sort of a control bar, transparent when the mouse cursor is not over it. when the mouse cursor is over it, then it will re-appear. but the buttons on the control bar doesn't seem to work when i try to use this feature.

View 1 Replies

ActionScript 2.0 :: Set The _alpha Property Of MC1 And MC2 Depending On The Location Of The Button On The Slider

Mar 27, 2004

In the library, I have a movie clip - DraggableButton that has OnPress with StartDrag with parameters and OnRelase with StopDrag. I have a slider with this Draggable button and a bar to slide the button on. I also have two movie clips Clip1 and Clip2. In my main movie I have two instances MC1 and MC2 of Clip1 an Clip2. I have an instance of the Slider. I want to set the _alpha property of MC1 and MC2 depending on the location of the button on the slider.

I think I need to save the location (_x) of the button on the slider in a variable in the OnRelease even of DraggableButton and use this variable in the SetProperty method. I need to know in which event and which object's event should I use the SetProperty method. Or if what I am thinking is not correct what do I need to do?

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 1/2 :: What Does It Mean _root ?

Jul 6, 2009

what does it mean _root and how to convert in AS3 for _root. Is  _root supportable in AS3 ?

View 4 Replies

IDE :: Getting The _root Via JSFL?

Mar 2, 2009

I an trying to get the _root node of an FLA via JSFL. A co-worker wrote a script that uses _root via actionscript. I was trying to wrap that code into a panel. I have all the trace functionality running and everything running accept I can't seem to access the "_root". I have tried _level0, and almost everything I can think of... I am looking to have JSFL return the _root object from the current file the same way can can hand "_root" to a function. (IE: myfunction( _root ); ) here is my current attempt:

Code:
var doc = MMExecute( "fl.getDocumentDOM()._root;" );

View 1 Replies







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