ActionScript 2.0 :: Fading Out MovieClip When Button Pressed

Jul 2, 2004

on (release){
_root.drew._visible =false;
gotoAndPlay(31);
}
Above is my code which I am using to try and fade out a MC when a button is pressed. The button (and the picture it shows when pressed) are within the same MC. I have placed this MC on the root timeline and given the MC I want to fade out the instance name drew // but still not having any luck making invisible.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Fading Sound When Button Pressed

Jul 27, 2005

I am looking for a way to play music when the movie loads, but when a button is pressed, the sound will fade to 0, then when the button is clicked again, it will fade to 100. Here is a link to the file I've been working on...

View 3 Replies

ActionScript 2.0 :: MovieClip Resize Animation When Button Pressed

Mar 17, 2004

{URL] Here I have a movieclip that I want the clip size to change when pressed a button, and change into another size when another button is pressed. but all these, with actionscript movement. How do I...? Here is the fla: [URL]

View 3 Replies

ActionScript 2.0 :: AttachMovie - Loading MovieClip When Button Pressed

Apr 11, 2008

Adobe Flash CS3
publishing as Flash 8, AS 2.0
I have a movieclip named menu (instance name = mainmenu). Inside of that there is a button named btn_about (instance name = about). On the main stage there is an empty movieclip named empty_mc (instance name = mcholder, linkage id = empty). I want a user to press the button which causes a movieclip in the library named tesst (Linkage name = testid) to load into the empty movieclip (mc_holder).

Here is the code on the button:
on (release) {
this._parent.mcholder.attachMovie("testid", "tesst1", this.getNextHighestDepth());
}
It does not work.

View 2 Replies

ActionScript 2.0 :: Changing MovieClip Scale When Button Pressed

Jun 12, 2002

Is there any possibility to combine those two handlers. I want a movieclip changing its scale when a button is pressed. The change I would write as this:
onClipEvent(enterFrame) {
if (_scale<200) {
_scale+=10;
}}

But I can't write
on (release) {
onClipEvent(enterFrame) {
...
Is there a way to realize it?

View 4 Replies

ActionScript 3.0 :: When A Button Is Pressed It Adds Another Movieclip (from The Library)?

Jan 14, 2012

When a button is pressed it adds another movieclip (from the library) to a movieclip acting as a container at the bottom of the screen. This all works fine, and the movieclip is added to the container (directly in the middle), what i need is it to be positioned to the left. Obviously i could change the .x value, but its a little bit more complicated, because if there is already one movieclip there (in the container at the bottom), the next one that is added needs to be 25 pixels to the right of the movieclip already there.

Code:
var bass1:Bass1 = new Bass1();
//navigation
help_bt.addEventListener(MouseEvent.MOUSE_UP,help);[code].....

View 14 Replies

ActionScript 2.0 :: Make A Box That Fades In When Pressed On The Button And Fade Out When Pressed For The Second Time?

Nov 16, 2004

I have a function on root:

_root.fadeBox_mc.onEnterFrame = function (){
if (fade){
this.nextFrame();[code]....

This causes a mc to fade in and out on rollover/rollout. But what I wanna make is a box that fades in when pressed on the button and fade out when pressed for the second time. But if I say

on (press){
_root.fade = true;
}

the mc fades in, but I cant do another on (press) to fade out. Is this too confusing?

View 2 Replies

ActionScript 2.0 :: Call An OnClipEvent(enterframe) Of A Movieclip To Happen When That Movieclip Is Pressed?

Oct 24, 2007

how do you call an onClipEvent(enterframe) of a movieclip to happen when that movieclip is pressed?

[Code]...

when i type this in i get an error because on events cannot be nested within other on events. how can you get around this?

View 10 Replies

ActionScript 2.0 :: Detect The Pressed Movieclip Outof 4 Movieclip?

Jun 13, 2011

i am new to flash AS,i have 4 movieclips, those have the 4 option of a question, when i select the answer,if it correct means my score will increase otherwise it will show alert,for that first i have to press the any one movieclip out of 4 options, in AS3.0 addEventHandler will work for AS2.0 what will i use to achive this

[Code]...

in this answer1, answer2,answer3,answer4 are the movieclip for 4 options

View 1 Replies

ActionScript 2.0 :: Motion Tween The Button To Return Up To Its Original Spot When Another Button Is Then Pressed?

May 26, 2005

I'm trying to create a set of 4 vertically arranged buttons that 'split' apart when those buttons are pressed. For example, if you click the topmost (1st) button, the bottom three buttons will drop down so submenus (for the 1st button) can now be revealed beneath. Again, when you click the 2nd button from the top, the bottom two buttons drop down, revealing submenus, and so on.

Now, is there a way that I can use actionscripting to tween the buttons to not only motion tween a drop down when a button is first pressed, but also to motion tween the button to return up to its original spot when another button is then pressed? Right now, I have two keyframes, side-by-side which each containing a different y-scale value for an object. Can I do some actionscripting to get the object to motion tween upward to its original spot instead of "clicking," or snapping back to is original spot when another button is pressed?

View 1 Replies

ActionScript 2.0 :: Snap - Press Button To Detect The Last Button Pressed And If The Shapes Match

Jan 12, 2009

I want the press button to detect the last button pressed and if the shapes match, make them do something...obviously. I think I'm going at it the wrong way. I need to stick a "triange" id into the button/mc then if compares that and then if there is a match works then... right?

[Code]...

View 1 Replies

What Button Event Should Use To Make The Program Understands To DO SOMETHING Only When The Button Is Pressed / Dragged

Aug 4, 2009

What button event should I use to make the program understands to DO SOMETHING only when the button is pressed/dragged. In my sample code below, I want something to happens only if the button is dragged beyond 200 in y axis. I tried onRelease, onRollOver and onDragOver but still not working

[Code]....

View 6 Replies

ActionScript 2.0 :: FLASH 8 - Toggle Button/released State/pressed Button

May 18, 2007

I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?

View 1 Replies

Button Not Functioning Properly \ On The Homepage Is A Enter Site Button, Which Once It Is Pressed Starts Thetimeline?

May 15, 2009

I'm creating my first website. I've managed to create a homepage. On the homepage is a enter site button, which once it is pressed starts thetimeline... I have an actions/labels layer which I am writing my code in. On frame number 'one' is my code below.

stop ();
enter_site_btn.addEventListener (MouseEvent.CLICK, buttonClicked)
function buttonClicked (event:MouseEvent): void

[code].....

View 5 Replies

ActionScript 3.0 :: Make Button's Function Execute Once Without Button Being Pressed

Sep 26, 2009

I have a function that executes when a button is pressed:

btnRandomAll.addEventListener(MouseEvent.CLICK, clickHandlerBtnRandomAll);
function clickHandlerBtnRandomAll(e:Event)
{

...but, I need it to also execute once, upon the file loading.

View 7 Replies

How To Make Fading Out Trail Behind MovieClip

Dec 6, 2011

How to make trail behind movie clip. I suppose it should be some kind of duplicate mc function but dont know how to write it. For example there is rectangle (mc) on screen when I click on it should move to the left but it should leave copies of itself behind it with different opacity, closer copies should be more visible and they all should fade out (I mean trail not main rectangle), it should look like circular animation which are often used in some flash video players where rectangles are rotating around center point but they aren't all same opacity.

View 2 Replies

Actionscript 3 :: Fading Out Volume On A MovieClip?

Aug 1, 2011

I've looked around the net on this issue, and came up with the following code to fade out the volume on my movieclip:

var myTransform = new SoundTransform();
myTransform.volume = 1;
loaderClip2[indexNumber].soundTransform = myTransform;
audioTween = new TweenLite(myTransform, 2, {volume:0});

My movie clip is stored in the Array loaderClip2 at index position determined by the variable indexNumber. This code does not produce the desired fade.

View 3 Replies

ActionScript 2.0 :: Movieclip Fading To Transparent

Jan 9, 2009

I used a great tutorial posted on KIRUPA by Sam Kellett aka Sammo [URL] and i was wandering if i can make the snowflakes fade to transparent at the bottom of the movie?

View 4 Replies

ActionScript 2.0 :: [FMX] Movieclip Keeps Fading Down And Up Until On Rollout?

Feb 20, 2005

I made a button that fades up a movieclip and then the movieclip keeps fading down and up until on rollout where it fades it down. Now, i use a delete this.onEnterFrame; on the fade out button but im not sure if i should delete this.onEnterFrame in the functions where i fade up and down aswell. If so where/how?Here is the AS:

Code:
fadein = function(){
if (white_1._alpha<=100) {
white_1._alpha += 5;[code]....

View 2 Replies

Fading Music With A Button?

May 13, 2010

So I have a button (currently loading a movieclip) and on the main stage there is a piece of music playing constantly while the user looks around the available options on the flash.

What I want to know, is there a way to fade out the music when the button is clicked?

Im using ActionScript 2.0 also :-)

View 2 Replies

IDE :: Mp3 Fading Mute Button?

Aug 2, 2009

i have an mp3 that plays as background music to my website with a mute button that fades the music in or out. This works using the code below that i found on another site.My problem is i would like to have this music added to an external swf that i could load into my main site in order to decrease the main site file size. When i load swf however, the music doesnt play. the button appears (which is also in the external swf) so i know that the movie is loading but no sound plays.

some_sound = new Sound();
some_sound.attachSound("Kevin Spacey 16bit.mp3");
some_sound.start();

[code].....

View 1 Replies

ActionScript 3.0 :: Fading Out And Fading In 2 Flash Movie File

Mar 30, 2012

I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.

Here is the script of it:

var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);

[Code]....

View 2 Replies

ActionScript 2.0 :: Fading And Disabling A Movieclip After Timelapse?

Aug 11, 2009

I am making a flyout menu and I have all the desired effects I need using actionscript but one: for the movieclip that fades in to fade out if the mouse has not been touching it for 3 seconds.

The way it works: The buttons in the navigation are movieclips. Each button movieclip has a submenu (which is also a movieclip). Each button movieclip is triggered to tween on Rollover and tween (alpha) in. As it is now, when the user rolls over a different button in the navigation, the submenu will disappear which is desired. The problem is that when a user rolls over a navigation item and triggers the submenu, but does not roll over another button, the submenu stays in view. What I want is for this submenu movieclip to fade out of view if the user hasn't had their mouse over it for 3 seconds.

View 6 Replies

ActionScript 1/2 :: Fading In An MC Works, Fading Out Doesn't?

Apr 7, 2009

I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!

[Code]...

View 7 Replies

ActionScript 2.0 :: Flash Presentation - MovieClip With Logotypes Fading In / Out

Dec 10, 2004

I want to make a presentation in flash with all my work. Sort of a PowerPoint presentation but in flash. Yes, I know there is a built in PowerPoint function I flash. But I want it to be some more dynamic and most of all. I want it to run without pressing the "Spacebar" between all the MovieClips. I don't know if this is a good way, but my idea is to make a movie clip of each "thing" I want to present. I.e. I make a MovieClip with a logotypes fading in and out. And one MovieClip with another logotype fading in and out. Then I just want to add these external swf files in the main timeline and when the first external MovieClip has finished next ones starts. And when all the swf files have been played. It starts all over again.

View 1 Replies

ActionScript 2.0 :: Flash Presentation - Make A MovieClip With A Logotypes Fading In And Out?

Dec 10, 2004

this is what I want to achieve:I want to make a presentation in flash with all my work. Sort of a PowerPoint presentation but in flash. Yes, I know there is a built in PowerPoint function I flash. But I want it to be some more dynamic and most of all. I want it to run without pressing the �Spacebar� between all the MovieClips.

I dont know if this is a good way, but my idea is to make a movie clip of each thing.I want to present. I.e.I make a MovieClip with a logotypes fading in and out. And one MovieClip with another logotype fading in and out.Then I just want to add these external swf files in the main timeline and when the first external MovieClip has finished next ones starts. And when all the swf files have been played. It starts all over again.

View 1 Replies

ActionScript 2.0 :: Getting The Pressed Movieclip In An Array?

Nov 18, 2003

I've got an problem with reading out an array, the array is filled with movieclips with each an different picture in it (php variable -an url). Basically what i want to do is get the pressed movieclip and use another method to change the _xscale and _yscale properties of the pressed movieclip (an picture) and then pass it back to the function brillenArray.onEnterFrame to change the values of that movieclip!

Only thing what i now get is that either all of the pictures move or none...

[AS]
brillenArray = new Array();
for (var i = 0; i<5; i++) {
if (this['plaatje'+i] != undefined) {

[Code].....

If i press one of the four pictures it does what i want to: THAT picture scales to 70. But how can i call this movieclip (the pressed one) from another method without using specified place in the array (like brillenArray[1])?

View 2 Replies

Button On Pressed Stage

Oct 13, 2010

I have 2buttons. Each have 3stages: up, over, down.I want to have 1st button to stay on its 'down state' when pressed and then you should see 2nd button 'up' stage(down stage of 1st button is the same as up stage in 2nd button).If someone hovered again you see 'over' stage of 2nd button,when will click, button move to 'up' stage of 1st button.

View 1 Replies

ActionScript 2.0 :: [f5]fading Grid Not Fading?

Oct 11, 2003

when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in

View 5 Replies

ActionScript 2.0 :: Fading Grid Not Fading

Oct 11, 2003

i've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.

View 5 Replies







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