Professional :: Hide A Movie Clip By The Press Of A Button?

Jun 20, 2010

is it possible for me to hide a movie clip by the press of a button that is on a differant timeline?
 
here is my code for button.
 
stop();submit_btn.addEventListener(MouseEvent.CLICK, subClick);
failed_txt.background = false;failed_txt.border = false;
var myName:String;var myPass:String;

[Code].....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Create Movie Clip On Button Press?

Nov 4, 2009

Im making a flash game. And Need to have a menu (sized based on what they click, small medium large) referenced from a movieclip, and variables passed to it. Im using CS4/AS2. Is there a function i can put on my button to create a movie clip at a location?

View 2 Replies

Professional :: Hide A Movie Clip (mc) When The .SWF Files Opened?

Oct 16, 2010

How can I hide a movie clip (HideMe_mc) which is on Stage when I open my .SWF file? User can unhide it whenever he required.

View 1 Replies

ActionScript 2.0 :: Start() Stop() Movie Clip When Press Button?

Apr 29, 2004

i'm trying to write the code for a flash animation which uses different movie clips and buttons.all the movie clips are in the same layer but i've written code to make all but one invisible when the animation loads.

dance._visible = false;
harmonica._visible = false;
violin._visible = false;

i've then got buttons which are supposed to make the movie clips visible, but then disapear again after the clip has played.i want to be able to press one button to have one clip start playing, but then i want to be able to press another button which stops that movie clip and starts a new one playing.this is what i came up with but it doesn't work

on (press) {
violin.stop();
harmonica.stop();[code]....

this script is from one of the buttons which is supposed to start the movieclip harmonica and stop violin playing.i've got the same code for violin but the other way round.when i press a button it works fine and plays the clip which then disapears (leaving a default clip which plays all the time visible) but pressing buttons to interrupt the clip and play another one don't work properly. the movie clips don't stop and reset when they are interupted. they kind of pause instead. when i go to play a clip that has previously been interrupted it starts from where it has been paused and not from the beginning

View 4 Replies

ActionScript 2.0 :: Make A Certain Movie Clip Play When Press A Button?

Dec 5, 2005

i need to make a certain movie clip play when i press a button.

View 4 Replies

ActionScript 2.0 :: Stop Animated Movie Clip On Button Press?

Apr 27, 2004

I have two arrows that control an animated movie clip that has words scrolling vertically. When you click on one arrow it plays the movieclip forward, and when you click on the other arrow it plays the movieclip backward. I want you to have to keep clicking on the forward arrow to have it continue animating through the different words. I've place stop actions at the points I want the movieclip to stop animating but when you click the forward or backword button it never stops and just plays through the whole thing. [URL]

View 6 Replies

ActionScript 3.0 :: Same Button On Single Frame To Display/hide Movie Clip?

Jul 2, 2009

can a button on a single frame be coded to both display a movie clip on its first click and, after a second click, hide the movie clip?

View 3 Replies

ActionScript 2.0 :: Press The Previous Button To Rewind The Timeline, The Movie Clip Does Not Stop?

Aug 5, 2009

I would like to create an image sliding effect using next and previous buttons. For example the sliding images on the homepage here: http:[url]....I know this is not in flash, but that's the effect I'm trying to create using flash.

I followed the help quoted below. However, when I press the Previous button to rewind the timeline, the movie clip does not stop. For example, if I am on image 3 in the slider and press the previous button...instead of going to image 2, it slides all the way back to image 1 without stopping.

Quote:
ActionScript 2:Notice how, in the link to the example, all of the images/slides are the same size. Create a few of those before you begin.

1. Convert each image/slide to it's own Movie Clip, so that you can go always go back and adjust them if needed....as well as other useful reasons.

2. You only need 2 layers for now, Actions & Container. On frame1, add a stop action to the frame on your actions layer. Then, place all of your Movie Clips on the stage, on the Container layer. Line them up horizontally, edge-to-edge. Select them all and convert to a Movie Clip named "container".

3. On the Container layer, Insert A Keyframe > move the Container Movie Clip to the left so that the next slide is now in place on the stage > Right click in between the two Keyframes and choose "Create Motion Tween". You should have the animation from slide 1 to slide 2 now. Repeat this process for 2 -3, 3-4, 4-5 ......(don't worry about the reverse!)

4. We need to create buttons to go to the next and previous slide. Make a new layer called Buttons. Create 2 buttons, one for Next and one for Previous. These can be Movie Clips OR Buttons, just place them on the stage give one an instance name of "next_btn" & "prev_btn" (no quotes) for the other.

5. All that's left is to add some actions to a few frames on the Actions layer.

a) Add a stop action to every frame where the slide will be static (still), you should already have one on the first frame from step 2.

b) Now here's where the magic happens. If we test the movie now, the slides will just play and over. So add this code to the frame 1 on the Actions layer:

Code:
stop();//already have this stop action, just add the below
this.onEnterFrame = function(){[code]....

View 1 Replies

ActionScript 3.0 :: Flash - Movie Clip To Start Playing Straight Away When Press The Fore Button

Dec 24, 2009

I have a interactive movie clip with buttons. The problem I have with my movie clip is that whilst the movie is playing and I click the forebtn, it stops the movie. Ideally I would like the movie clip to start playing straight away when I press the fore button.

[Code]..

View 4 Replies

Professional :: Movie Clip Button Not Working Within An Movie Clip

Jun 30, 2010

I'm trying to create a movie clip on my my main timeline that has a movie clip button within it that pops up a box in the middle of the site that contains text and links. On Frame 1 I have the Up state, frame 2 the roll over state, and frame 3 my Down State (where Box appears).

[Code]...

The problem is that on the main time line, the button is clickable but doesnt do anything

View 7 Replies

Professional :: Movie Clip Button Over State Triggers Another Button?

Apr 13, 2010

I have two buttons that are movie clips in Flash CS4 and when button 1 is on Over stage, I want the button 2 stop movie clip at the certain frame.

View 8 Replies

Professional :: Button Using A Movie Clip?

May 24, 2010

I have a blue oval button. In the button timeline, I created a seperate layer and placed the movie in the roll over frame. When I rollover the button, the movie plays, showing the button coming off the page (3D) with a shadow.

I now want to show the button going back into place when I roll off the button, but I am not sure how to do this in the button timeline?

View 3 Replies

ActionScript 3.0 :: Cant Hide Movie Clip

Jul 22, 2011

I use this simple code to hide a movie clip but it does not work and i dont get any error mesage:detailsMovieClip_mc.address_mc.visible = false;I have made sure that the movie clip is refreenced properly with the above instance names, but still does not work. What would be the most likley reasons for this not to work?

View 8 Replies

IDE :: Show/hide Movie Clip With Xml?

May 14, 2009

i wanna do a flash that reads an xml, in which the xml tells my flash to show or hide movie clips (they have instance names).

Code:
//added in the frame
var elights = _root.mc_elights ;
var logo = _root.mc_logo ;
var croom = _root.mc_croom ;

[code]....

i however, want to do this via xml, so that i could have my programmer colleague create a php to call for this database.

View 1 Replies

ActionScript 2.0 :: How To Hide A Movie Clip

Mar 14, 2002

i've a scene, i put there 4 movie clips, which representing the links (i use telltarget)... i don'T know how to hide the movie, after it loads... or when user click on another links, that produce another movieclip...get it ? i also dunno how to tell it... when i click one of it.. a movieclip showed up, and when next i click another one, the first won't dissapeared, so its stacked up.. and it goes again and again

View 2 Replies

Professional :: Button That Opens Up A Movie Clip?

Jun 8, 2010

i have another totally newbie question here, sorry everyone, In one of my frames i would like to have a button that opens up a movie clip, but i would like it to do this on a mouse-over action instead of a click, i have tried using the onRollover action, but i can't get it to work, it's got to be a daft mistake i am making but i have spent ages trying to figure it out, and once again i am stumped.

View 3 Replies

Professional :: Put A Button Inside A Movie Clip?

Aug 3, 2010

Can anyone explain what are advantages/disadvantages to put the button inside the movie clip vs. to put a button instance directly on the main timeline? My final goal is to have plenty of animation going on inside the button stages.

View 4 Replies

Professional :: Button Inside Movie Clip?

Aug 7, 2010

I'm having trouble with buttons i placed inside the movie clip....whenever i place functions the rollover state of the button doesn't work anymore....i'm having trouble thinking where to place functions or methods.....i know programming in java and to be frank i'm having trouble with learning actionscript because the books i read don't say where to place the functions they write.Here's a link to my flash file [URL]

View 10 Replies

ActionScript 1/2 :: Hide Movie Clip Of External Swf?

Oct 25, 2011

I have my main.swf and in the second frame i load an external swf called first.swf with this method:
 
[AS]var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("myGalleryContainerproducts",5);
myGalleryContainerproducts._lockroot=true;

[Code]....

In first.swf i have two movie clips with instance names ena and dyo I want in main.swf in the third frame to hide these movie clips of first.swf  (only the movie clips not the whole .swf) or to move them (change x and y values) so they practically hide.

View 2 Replies

ActionScript 2.0 :: Hide External Swf's Movie Clip?

Oct 25, 2011

I have my main.swf and in the second frame i load an external swf called first.swf with this method[code]...

View 3 Replies

ActionScript 2.0 :: Show Hide Movie Clip ?

Feb 16, 2011

I am trying to make, it involves someone pressing a button which generates a random number between 1 and 2, and depending on which number two images are displayed, "heads" and "tails".This is what I have so far on the button

on (release) {
var numCoin = random(2) + 1;
if (numCoin = 1) {[code]......

View 2 Replies

ActionScript 2.0 :: Hide The Movie Clip That Follows The Mouse?

Feb 4, 2002

Is there a way to hide the movie clip that follows the mouse when the mouse is not on the movie on followmouseeffects?

View 14 Replies

Professional :: Button Does Not Work Inside Movie Clip?

Oct 6, 2010

On the about page of my Flash website, I wanted 7 buttons to navigate to various labels. I just finished the first button. I made it while I was inside the about_mc. It worked well but would NOT navigate. I took the button OUT of the Movie clip and made a separate layer on the about page for buttons and pasted it there and it worked perfect. When I made it inside the mc, is there some different code I should have used other than the standard code for making a button navigate to a frame. I built an addeventlistener and a function. BUT they only worked when the button was "ON TOP" of the mc NOT when it was INSIDE the mc. I have a transition tween on the about_mc and therefore the button does not tween when it is on TOP of the mc only when it is inside the mc.

var aboutTween:Tween = new Tween(about_mc, "y", Elastic.easeOut, -200, 146, 3, true);
laborLaw1_btn.addEventListener(MouseEvent.CLICK, laborLaw1);
function laborLaw1(evtObj:MouseEvent):void{ gotoAndStop("laborLaw1_fl"); }

[code].....

View 2 Replies

Professional :: Create An Animated Movie Clip Button In AS2 Using CS5?

Nov 22, 2010

I'm trying to create an animated movie clip button in AS2 using CS5. The button should fade in/out as the mouse moves over and away from the button.Lets say my frame rate is 30 FPS. When  I insert a motion tween on frame 1, the timeline is automatically extended by 30 frames. I then select frame 30, select the button and change the alpha value to 30%. When I drag the head marker back and forth, the button fades in and out smoothly exactly as I wanted.But I want to create a motion tween between frame 1 and 10. So I select frame 10, insert a keyframe, select frame 5 and insert a motion tween. Then I select frame 10, select the button and change the alpha value to 30% like before. When I drag the head marker, there is no fade in/out. When the head marker is exactly over frame 10, the button is faded, but when it is on any frame between 1 and 9, it is normal.

View 2 Replies

Professional :: Make A Movie Clip Button Into A Url Link?

Aug 15, 2011

I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instancesIn the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.

View 3 Replies

ActionScript 3.0 :: Press Any Keyboard Key To Delete Movie Clip?

Jan 24, 2010

I want to press any keyboard key to delete movie clip - how do I go about it? This is what I have for mouse click

bubble_mc.addEventListener(MouseEvent.CLICK,rotateBall);
 
trace("ball working");
 
function rotateBall(e:MouseEvent):void {    ball_mc.rotation+=5;}
 
addEventListener(Event.ENTER_FRAME, ballMove);

View 5 Replies

Professional :: When Press On The Button The Stars Will Be Flying From The Button And The Sound Will Play?

Jan 29, 2011

i'm designing a website in flash8... now i have created some buttons, and i want that when i click on the button stars will fly from them and there will be a sound... i have already created the animation of the stars seperatly and it's in the library, i have also the sound file.... i just can't remember how to put everything together.... when i'll press on the button the stars will be flying from the button and the sound will play?

View 3 Replies

ActionScript 2.0 :: Hide Showing Drawing On Movie Clip?

Oct 20, 2004

I have a movie clip that has an image on it.

I want to dynically open this movie clip and move it to a specific location (x,y) on the main timeline on top of everything else.

Then I want to draw lines on that new movie clip that display on top of the image on that movie clip.

how to draw the lines, (well at least I think I do)

Code:
_root.audiogram.lineStyle(2, 0xFF0000, 100);
_root.audiogram.moveTo(0, 0);
_root.audiogram.lineTo(200, 150);
_root.audiogram.lineTo(100, 50);

I also need to be able to clear the lines that are drawn.

View 1 Replies

ActionScript 3.0 :: Movie Clip Blocking Rollover And Press For Clips Under It?

Jan 4, 2008

I have some buttons and over them a semi transparent panel appears. I want the panel to block press and rollover and other mouse events for all the movie clips that it covers. How to do that?

View 12 Replies

ActionScript 2.0 :: When Press The Movie Clip It Goes To Specific Scene Label

Aug 20, 2011

i have a menu with 8 buttons and every movie clip of them have the following script on it

[Code]....

what i need is when i press the movie clip it goes to specific scene label. i tried this code

on (release) {_parent._parent.gotoAndPlay("b")
}

but it doesnt work with movie clip but works with buttons only , so is there any equivalent code to use with the main code above of movie clip.

View 7 Replies







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