ActionScript 3.0 :: If Statement - When I Click One Of The Buttons, I Want The Current Page To Fade Out?

Jul 11, 2009

I have setup some nav buttons on my website. When I click one of the buttons, I want the current page to fade out, and I don't want the other page fading in until the first one is gone. This means I need a statement to go along with each button so that they all get rid of the current page, and don't fade in their respective pages until the first one is gone. Here is my current code:

buttons_mc.about_mc.addEventListener(MouseEvent.CL ICK,disappear);
buttons_mc.about_mc.buttonMode = true;
buttons_mc.about_mc.useHandCursor = true;[code]...

So, what do I need in order for this to all function correctly, once "home_mc" has reached its final frame?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Gallery Page With A Bunch Of Page Numbers - Click On A Page Number, The Over Script Should Stop Until Go To Another Page?

Jan 26, 2009

i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,

function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....

View 0 Replies

ActionScript 2.0 :: Make Simple Page To Click Several Buttons Before It Moves On To Next Scene?

Apr 9, 2010

New to AS and would like to know how to make a simple page where the viewer has to click several buttons before it moves on to the next scene. They can only go to the next scene when all of the buttons have been clicked.

View 3 Replies

ActionScript 2.0 :: Background Picture1 Fade Out And Picture 2 Fade In On Menu Click

Jul 5, 2007

I want background picture1 fade out and picture 2 fade in on menu click, so here is what I came up with... laugh , I have tried it 1ste frame:

[Code]...

View 2 Replies

CS3 :: Pages - Make Each Page Movie Clip Have A Fade Start And Fade End

Apr 12, 2010

flash version: CS3 AS2 Im having trouble making the pages for a website im working on. I have a row of buttons, and I want each one to open its corrisponding page ie. contact_us_button to open contact_us movie clip. the thing is I want each page to transition in and out. so when I click contact us, the contact us movie clip fades in and stops. When I click about us, the contact us movie clip fades out and about us fades in.

Is the way to do this to make each page movie clip have a fade start and fade end, and have it stop before the fade end, and on another page click continue playing the current clip to get the fade out and then open the new page movie clip?

View 4 Replies

ActionScript 3.0 :: Fade In/Fade Out External Swfs On Button Click?

Feb 3, 2010

I have 2 buttons on the stage whose each MouseEvent load a different external swf when clicked. In an attempt to get the current swf to fade out and new swf to fade in on button click, I vainly added a Tween to the function but to no avail.

As it is now, when the movie starts, the button 1 swf fades in, however, when button 2 is clicked, the new swf is loaded but the old swf does not fade.

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var image:Loader = new Loader();

[Code]....

View 1 Replies

ActionScript 2.0 :: Buttons Load The External Swfs Except When Click On The Contact Button That Is In The Main Flash Page

Feb 23, 2011

I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do. All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button. Below is the code for the contact button and the one under for one of the other buttons.

[Code]....

View 3 Replies

ActionScript 3.0 :: Stop Sound On Current Page When Going To Previous Page?

Oct 19, 2010

I'm working on a pretty basic interactive children's book. I have it set up so that each page has audio relating to that specific page. Going forward, there is no issue with sound overlapping from the current and next pages. Going backward, however, there is an issue with sound playing on both the current and previous pages. How do I stop this?

Here is the script I'm using-

ActionScript Code:
stop();
import flash.events.MouseEvent;

[Code].....

View 3 Replies

ActionScript 2.0 :: Flash8 Fade In Fade Out Over Multiple Buttons

Apr 1, 2011

I have 4 buttons, I need each button to fade the others out as the mouseover event occurs. I can get this to work if I add in one other button to the actionscript on one, but as soon as I add actionscript for another one I get errors.

[Code].....

View 10 Replies

ActionScript 2.0 :: Fade Buttons - When The Mouse Is Over A Logo All The Others Fade Like 50%?

Apr 28, 2005

I have a page with alot of logos (buttons) and I would want so when the mouse is over a logo all the others fade like 50% and when you move your mouse away they go back to 100%, This should be for every button on the stage.

View 7 Replies

Flash :: AS3 - Print Current Class In Trace Statement For Debugging?

Mar 3, 2010

Is there a statement in AS3 that will return current class and/or scope? I'd like to use that in trace statements so that I know the exact location of a trace.

View 2 Replies

IDE :: Open A Page Without Closing The Current Page?

Jan 8, 2009

I bought one of those templates, and i was able to get around most of the stuff. But one last thing that I have issue with is that there is an AS2 script for a button, where you can change the page that you want to be updated. But every time that I click that button, it opens the new page. but then if I use the same button in the new page, and click on it, another page will open and that current page will get closed.

[Code]...

View 1 Replies

Rollover Buttons/menu Bar With Fade In/fade Out

Feb 10, 2010

I'm designing a site for a friend and I have a menu bar across the top with 6 buttons. I made your basic rollover with CSS, but now I'm asked if something can be done about the abrupt change from the down state to the rollover state. Not knowing much at all about Flash, I thought this would be pretty simple and a good way to get acquainted with the program. But after spending hours today rummaging through Google I'm considering digging my eyes out with a spoon. It seems that no tutorial quite tells me what I need to do, and when I try to adapt what I'm told to what I need, it all stops working. There seems to be a dozen different ways to do the same thing and now I'm just really confused. So here is what I need:

When you mouse over the button, it quickly transitions/fades into the highlight/rollover image. When you move the cursor away, it fades back to normal. And *possibly* a quick transition to another highlight on click.

View 3 Replies

ActionScript 3.0 :: Buttons - Two Images Fade In And Fade Out

May 15, 2009

I need to create in which two images fade in and fade out, and each of them must be clickable and hyperlink to a separate URL.I've got the fading going okay, but I cannot for the life of me get even a single button to work on it.

View 44 Replies

Flash 9 :: Make Buttons Fade On Fade Out?

Jul 22, 2008

Nowadays I tend to use photoshop and dreamweaver more than flash. how to do it? I can make the fading out movie clip, but it's just a case of telling the button to do that on release of it!

View 6 Replies

Fade In Button Then Fade Out On Click

Aug 18, 2008

Just starting to wrestle with flash again, and i am trying to make a very simple website. I have made a graphic that will appear as the intro / splash page, and i want this to fade in... then appear as normal. Then when you click, i want it to fade out and load the rest of the site (yet to be made!)I am having difficulty making the fade in / fade out actions does anyone know how to do this? as i have seen it on many websites.

View 15 Replies

ActionScript 2.0 :: Current Content To Fade Out And The New Content To Fade In?

Jan 29, 2004

am a graphic artist trying to be a web designer and it's not working! I am constructing a website where I have a navigation menu nested within a movieclip. On each button click I want the current content to fade out and the new content to fade in. Content consists of new imagery and text. Now since I have these buttons nested within a MC I realize I'm unable to simply use simple gotoAndPlay because it will not be referencing the main timeline. Forgive my AS ignorance,

View 3 Replies

ActionScript 3.0 :: Remove Or Fade Current MovieClip

Feb 20, 2012

I have a movieclip called iconinterface_mc and inside of that movieclip I have another movieclip called smsinter_mc iv created a button inside smsinter_mc and I want the button to bring the user back to the iconinterface_mc.

View 12 Replies

ActionScript 2.0 :: Fade Loaded Movie Over Current?

Jun 5, 2006

I�ve just spent 3 days scanning the whole Internet after this script (see below). I�ve read maybe 100 topics on varios actionsscript forums but they all end the same.

- Unanswered or incomplete.

- Now, I�m just a poor web designer without no fanzy as-skills and without money.

- All I could offer you in return if you could help me out, except the sweeeeet feeling of solving a huge problem to millions of poor web designers, is helping you with a logo or something.

The visitor clicks on a link that starts to load a external swf.The swf loads behind the current content, showing the preloading process with a loading bar och numbers or what ever.When the swf has preloaded it fades over (with alpha) the current content which creates a very smooth web experience.

View 10 Replies

ActionScript 2.0 :: Fade Out Current, Load In New On Release?

Jan 3, 2006

I'm trying to create a simple page transition. Please ignore everything but the timer in red. Everything works flawlessly EXCEPT that after the transition is made the timer is not cleared with the clearInterval command. Is there something wrong with my if statement?

stop();
function loadPage() {
_root.mcCover.gotoAndPlay(2);[code]....

View 1 Replies

ActionScript 3.0 :: Assign Current Frame To Variable (for Fade Out Currentpage)

May 4, 2010

i want to make the current page of a website, fade out, using the Transition Manager.

Best i can come up with is

Code:
TransitionManager.start(VARIABLEtoCurrentMovielip, {type:Fade, direction:Transition.OUT, duration:1, easing:Strong.easeOut});

and obviously before that, have it declare the variable, something like

Code:
if { current position = "home"
VARIABLEtoCurrentMovielip = "home_mc"
}

i just have no idea on the syntax. how do i access the current frame, namely the label? (ie how we have a layer that goes "Home" "About" etc) and then take that varaible and drop it in the transition manager string?

View 1 Replies

ActionScript 2.0 :: Fade In Fade Off Buttons?

Apr 3, 2007

I have 3 buttons profile, about and contact. what I am doing is when I click on profile all the buttons should fade off first and then only the about and contact button should appear on the scene.

bt_1.onRelease = function(){
this.onEnterFrame = function(){
if(bt_1 >= 0){

[Code]....

This is the code for fade off all the buttons. Now I want to fade in only the bt_2 and bt_3 buttons. Is it possible

View 2 Replies

ActionScript 2.0 :: Fade Out Page Into Another Page

May 10, 2008

I usually build flash site all within a main flash file and other loading into it, but I want to do my current site with 5 pages and 5 html pages. But I don't want to just click on the menu and the new page replaces the current page, I want the current page to undo and fade first. I can get my head round telling it to go to an 'out' frame on a button press, but then at the end of the timeline I need another action for loading the relevant page, but how do I specify which page. So if I have home, about, services, portfolio and contact as my sections. If I'm in about and click services, which then goes to a frame 'out' in about, how does it then know what to load??

View 3 Replies

Actionscript 3.0 :: If Function - When Click On The Button Takes To Another Page Without Showing The Click Animation

Sep 11, 2010

I created a movieclip animation that only activates when i rollover the movieclip button. I further extended the frames and created another frame animation that i active only when user clicks the button. So i have a roll over/out animation and click animation in the same movieclip in the same layer. Now the problem is that when i click on the button, its supposed to take me to another page, and it does, unfortunately without the click animation. That means after i click on the button its supposed to first finish the click animation and then go to another page. But when i click, it takes me to another page without showing the click animation

SO I tried the If function, but i seem to make a mistake somewhere and i dont know what to do. Now there is no error in script, but onw there is a problem in link, the button finishes the click animation but it does not go to the tarrgeted"about" frame. here's the code

[Code]...

View 1 Replies

On Button Click Page Flashes Back To Main Page

Oct 23, 2009

I have a movie clip that loads in the main timeline, when i click on any of my buttons theres a quick flash of the main page. Im loading my movies on level 1 so i guess my question is, how do i get rid of the movie on the main time line?

View 2 Replies

ActionScript 3.0 :: Get The Value From The Current Page Url?

Jul 28, 2010

I need to get the value from the current page url, (the value is sent by javascript)?

View 4 Replies

ActionScript 2.0 :: On Button Click If Statement?

Oct 7, 2008

I have a flash movie that plays through automatically pausing on each frame for a set amount of seconds.

I used the following code to pause the movie which works 100%:
stop();
var interval:Number = setInterval(
function():Void {

[Code]....

But now i have several buttons on the movie as well, now what i want to happen is that when any one of the buttons is clicked it should ignore the above piece of code and not pause on the frame but stop on the frame.

View 1 Replies

ActionScript 2.0 :: Get Current URL Of Page Swf Is On From Browser Bar?

May 23, 2010

I need to sitelock a swf to All of the sitelock solutions I've found only lock the domain that the swf loads from, which means a user can still copy the source code of the page and load the page locally and alter the swf params (since the swf still loads from the same url

View 1 Replies

Actionscript 3 :: Flex - Get URL Of Current Page?

Sep 15, 2009

How do I determine the URL of the current page from within Flex?

View 7 Replies

Flex :: Get The Current Page No. In Paper?

May 16, 2010

there is no tags on flex paper. so make tag on flex paper.

How do i get the page number in flex paper. I want to add some events when page is changed.And i also want some events on particular some pages. so i need that current page number which is viewing by the user in flex paper.

View 2 Replies







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