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
Similar Posts:
Dec 1, 2011
I'm not real sure what I'm doing wrong, but once the array is validated the movie should go to the next frame(3)--which it does however my objects disappear. The AS below is in the actions frame 2. The objects span from frame 2 to frame 3, so I'm not real sure why they'd disappear.
[Code]...
View 0 Replies
Aug 8, 2011
I dinamically build a menu: this menu is made up of two nested MovieClips:
externalContainer_mc;
itemsContainer_mc (inside externalContainer_mc at 0,0);
itemsContainer loads a dinamic number of MenuItems: they are library objects (extending the MovieClip class).Anything works just fine, but if, when anything is loaded, I put a mask (itemsContainer_mc.mask=my_mask) upon itemsContainer, every MenuItem disappears AND it isn't even clickable anymore. What happens?
View 3 Replies
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
Nov 9, 2007
For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;
[Code]...
View 1 Replies
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
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
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
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
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
Oct 30, 2006
how to have a MC have _alpha = 0 when clicked anywhere outside the mc
View 9 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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