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();
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.
So im using CS5, and i have a very basic script which makes an image appear when a button is clicked, ie click button1, and pic1 shows. click button2 and pic2 loads etc.
The script i have is this: stop(); button1.addEventListener(MouseEvent.CLICK,showpic1 ); button2.addEventListener(MouseEvent.CLICK,showpic2 );
[Code]...
How can i make each image fade in from 0 to 100 opacity, in for example 1 second (time isn't that much of an issue)
Basic problem here. I'm adding a bunch of movieclips using the addChild method. I simply want to remove/hide/fade them after a button click, but I am unsure of how to refer to the movieclips which I've just added.
Here is the code as it stands: Code: Select allimport gs.TweenLite; import gs.easing.*; var strip:Bgstrip; var contentBg:ContentBg = new ContentBg(); contentBg.x = 440; contentBg.y = 166; addChild(contentBg); [Code] .....
I have an .5 alpha layer that I want to fade out when any 1 of 5 buttons is clicked. 1) The alpha layer is on the screen, but its not at 50%, its solid 2) Its not fading when a button is clicked 3) Its not in the right position 4) I am getting an output error message that says:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@3f7e34c1 to colorbars. at flash.display::MovieClip/gotoAndPlay() at Colorwheel/goColor()[Colorwheel::frame1:17] (
This code is telling the int_btn to go to the alpha layer frame, which continues thru frames 1 and 8) the code they are referring to is on frame 1 with a button that is also on frame 8 that I don't want the mouse up function to affect the alpha layer. The 4 other buttons on frame 8 should affect the alpha layer. The code on frame 8 tells the mouse up function to fade out the alpha layer:
var colorscreen:colorbars = new colorbars;addChild(colorscreen) //this is working its the alpha layer mccolorscreen.x = 0; //this is not workingcolorscreen.y = 51; colorscreen.height = 513;colorscreen.width = 612;colorscreen.alpha = .5; //not working // all buttons below work but wont fadeout the alpha layer [Code] .....
How do I tell it not to listen to the int_btn on mouse up? Should I be using an array or enter_frame or remove event listener or use all three to achieve my goal of fading out the alpha layer when any of the 4 btns are clicked?
I have 5 buttons that need to, when clicked fade the image in the background out and fade a new picture in. each of these buttons has a specific image related to it. how can i achive this smooth transition in and out for all of the buttons?
Does anyone know how to do this rollOver effect? [URL] Enter flash site and look at the rollOver buttons. I have the bar moving over each button but can't get it to fade out.
Lets say i have a button on frame 1. And if you press it normal, you ll get to frame 2. But then if you click it on another way, you ll get to frame 3. How do i do that easy?! With another way i mean like shift click or ctrl click or is it an easier way?
I have 3 buttons going around in a circle, in the middle of this circle I want a specific image to fade in for each button when you roll across it then fade out when you move off the button. I also want the button itself to change colour slightly when you roll across it. I've not had much look so far without the use of actionscript, but even with using it I'm not getting very far, I also seem to have a problem where once I have an image appear on the rollover of abutton that the image becomes part of the button, ie instead of the image just appearin when you roll over the button it appears when you roll over where the image should be appearing.
I have a sound that starts playing on the intro page of my site. At the end of the intro a button comes up that when clicked takes you to another page. I'm trying to figure out how to fade the sound out once the button is clicked. I've looked at other tutorials and just can't seem to get it working.
I need a button, or movie clip, to fade partially when clicked.This code worked but caused everything else on the screen to fade too. And I don't know how to fade down to 20% instead of 0?I am a newbie so please could you give a specific code example.
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:
I have read all threads and can not find a solution but i am not somebody with a lots of knowledge about actionscript so here is my problem i am using this script .
[code]....
the problem is that when i click on the first button loads ok but when click on second still showing the first movie clip in the back ,,,,, i have try everything without luck ,,,, i guess i need to keep reading but will like to find an answer to this situation ,
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
Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.
How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:
<mx:Script> <![CDATA[ // Import the Menu control. import mx.controls.Menu;
I am building a flash interface and I would like a menu where it is hidden to begin with (just a tab). You click the tab to expand it, and click again to collapse it. I've made a movieclip with animation of the menu opening up and closing, but I can't seem to work out how I'd go about making the movieclip open and close properly.
I have a test button i would like to have play a movie where a graphic expands. Once stopped, I would like to be able to click that same button and have the graphic go backwards. I would prefer to have timeline reverse, rather than lengthen the timeline of the mc because then i have to line up the start and end, and if one changes, i have to remember to change the other.
I am trying to work out this issue in as3 and I'm sure its simple but can't seem to get my head around it. If anyone can see a sollution I would be very happy to hear from you. [URL]..If you click on the red button and click back and previous you will notice that the speed it goes back when you click previous is much slower the further through the slides you go?
[Code]...
This is a simplified version on the code, I'm sure its in this chunk somewhere.
I have recently started doing a course in multimedia, and I have just started using actionscript for flash cs4. I have to build a small flash website as an assignment.
Its got an enter screen, with a company logo.
How do i get the button to fade in? ive managed to get everything els to do it.
Basically I have a FLV that has a custom seekbar and seekbarhandle that you can see in the below image. The seekbar and seekbarhandle are under the layer "seekbuttons". Everything works perfectly but when I fade the seek bar out at the end of the FLV the seekbutton doesn't disappear instead it stays on the stage which shouldn't be possible cause I put a blank keyframe where it is.
i have a button that i would like to cursor over and that image slowly fades revealing the image behind and when the cursor is moved the image slowly fades in.
the coding that ive gathered so far from a few sources is as follows:
var fade; mslogo_c._alpha = 0; MovieClip.prototype.HitMe = function(goTo, returnTo){
Is it possible in AS3, to have 0 alpha for some seconds, then have the buttons fade in... and I say buttons, as I have two of them. But wanted to finish it all of with a nice fade-in effect on my buttons. I've found some nice fade out effects with tweening in AS3, but I need fade in - and would like for me to decide when they should do this. So far I'm pretty satisfied with my first flash file, but I do like perfection!