ActionScript 2.0 :: Make The Movie Play When Click Anywhere On The Screen

Feb 6, 2009

what is the code to put in the frame to make the movie play when you click anywhere on the screen... is it something along the lines of this...

Code:
this.onPress = function() {
play();
}
};
?

View 5 Replies


Similar Posts:


Professional :: Make A Big Screen PLAY Button For FLV Which Will Fade Away After The Movie Starts?

Feb 2, 2012

I wanted to make play button. Kind of this huge one in the middle of the screen as users used to see on YouTube.Here is the code for it which seems to work:

play_btn.addEventListener(MouseEvent.CLICK, onClick_Play);function onClick_Play(event:MouseEvent) :void {
SWF_flv2.play();

[code].....

View 3 Replies

ActionScript 3.0 :: Make The Mouse Click Event Recognize When Click Anywhere On The Screen?

Jan 26, 2012

I just started playing around with as3 and I have a function for mouse clicks that draws a shape on each click. However the mouse click event does not appear to work unless I click a movieClip object I placed in the middle of the screen. Is there a way to make the mouse click event recognize when I click anywhere on the screen?

[Code]...

View 2 Replies

Professional :: Make A Button Click Make Text Appear Elsewhere On The Screen?

Apr 1, 2011

I have a map of the US and each state has a rollover that changes the color of the state...what i am trying to figure out is how to click on the state and have text appear to the side of the US map and have that text stay up until the user clicks on another state.

View 16 Replies

ActionScript 3.0 :: Flash Error - Make A .swf File Go Into Full Screen Without Falling To A Black Screen When A Movie Is Played?

Feb 11, 2009

My question is what needs to be done in order to make a .swf file go into full screen without falling to a black screen when a movie is played? I have tried coding it, however I come up with the following error.

[Code]....

What should I do to fix this? This is not going to be an HTML file, however, so the initial thought of changing the publish settings does not seem to work this time.

View 9 Replies

Professional :: Make The FLV Video Screen A Play Button?

Sep 10, 2011

The video imported and plays fine with the provided skins.  However I want to display the video online with the same Play control as many YouTube videos - a Play button shown in the center of the video screen area.  Right now I have the video player controls that I selected during import and they are at the bottom.  These skin controls work but I'd like to let the user just click on the screen to start the playback.

View 3 Replies

ActionScript 2.0 :: Click On Screen To Attach Movie Clip?

Feb 1, 2006

I need to be able to click on any part of the screen and have a movieclip from the library appear where I clicked. It would be the same item each time.

View 10 Replies

ActionScript 3.0 :: Flash - Play Movie Clip With The Button Click Without Playing All The Movie Clips On The Main Timeline

Apr 26, 2009

I'm trying to make a flash website that has clickable buttons that will play different movie clips. But I dont know how to make it to just play the movie clip with the button you click without playing all the movie clips on the main timeline.

View 1 Replies

ActionScript 3.0 :: Make Sound Play On Click?

Jul 12, 2010

The sound only plays when I hold the mouse button down. I need  it to play when I click it. But it has to stop the sound from  playing twice import flash.media.SoundMixer; this.addEventListener(MouseEvent.MOUSE_UP,f); function f(e:Event):void{ SoundMixer.stopAll(); } here is a link to my swf file [URL]

View 4 Replies

ActionScript 1/2 :: Click A Keyboard Key To Make A Mc Play?

Feb 22, 2011

I've been looking for this for years, and a good friend of mine that is a master at AS3 is not well versed in AS2, so I thought I'd ask the pros here.onClipEvent(mouseUp) on(release)I have code like these two examples on a mc (sometimes a button, I only use buttons in AS2) on the root timeline. Usually I use a mouse-click to activate them, but there's this one mc I'd like to have work via a keyboard keypress. What I can do is make the first frame of this mc blank, and the 2nd frame and beyond have elements to expose. So I was thinking I hit the key "v" to play this mc that resembles a volume overlay screen for this UI I'm working on

View 5 Replies

Make A Frame Become Visible And Play / When Click On A Movieclip

Apr 27, 2009

This time I'm experimenting with visibility. All the tutorials online vary a lot. I'm trying to find something noob proof. I have actionscript 2 and 3. I'm not sure which one to use..I'm just trying to learn how to make a frame become visible and Play when I click on a movieclip.

View 5 Replies

ActionScript 3.0 :: Make A Motion Tween Play When You Click On It?

Nov 18, 2009

I'm brand new to Flash, and I have a motion tween of a wheel that spins 360 degrees and I need it to play when it is clicked on. This is probably something that's really easy to do, but I just can't figure it out.

View 3 Replies

Professional :: How To Make Imported Video Play On Click

Feb 21, 2010

We have imported our video into flash cs4 (we are using presentation mode to mimic a powerpoint presentation), we have gone into the component inspector and altered it so it doesn't autoplay. When it is on autoplay, it plays the audio throughout the entire presentation. We want the video to start on click (hit the spacebar or return or anything).

View 9 Replies

ActionScript 2.0 :: Have Layer Pop In Flash Movie That Allows The User To Click And Drag It Around The Screen?

Jun 24, 2004

I want to have layer pop in my flash movie that allows the user to click and drag it around the screen. I also want this to have minimize, maximize, and close buttons on it.

View 2 Replies

ActionScript 3.0 :: Make A Movieclip Display And Play When Click On A Button?

Jul 23, 2009

I'm looking to have a movie clip pop up, play itself after a user clicks on a flash navigation button.
 
(something like this???)  
message_btn.addEventListener(MouseEvent.CLICK, goMessage1);
function goMessage1(evt:MouseEvent):void{    ???(play message movie clip here)???;}

View 3 Replies

Play And Stop Movie On A Key Click?

Apr 7, 2009

I just want to play and stop my movie on a key click.I don't want to have the drop menu open and have the user click 'play'. Isn't there some way they can just press any key and the animation will progress forward?

View 4 Replies

IDE :: Publish SWF Movie And Automatically Play At Half Screen Size

Jul 23, 2009

I've made a presentation in the form of a swf movie using macromedia flash 8. I want to upload this to a website where when the website is loaded the movie would play automatically at a half screen size... Any host server that I could subscribe to? How to upload the file? Also, my swf file has an action script camera that doesn't work when I publish it as a html but it works in swf.

View 1 Replies

ActionScript 2.0 :: MC - Click On Movieclip And Make It Go To And Play A Keyframe On The Main Timeline?

Jul 28, 2010

I have a movieclip (a), inside another movieclip (b), on the main timeline. I want to click on movieclip (a) and make it go to and play a keyframe on the main timeline. I'm used to using buttons for actions, not movie clips, and I forget how to use the _root thingy.

View 3 Replies

Professional :: Link Audio To Button To Make It Play And Stop On Click?

Mar 2, 2010

I am trying to connect audio to the button so when I click on the button music it starts playing and when clicked again music stops.

View 5 Replies

ActionScript 3.0 :: Click Buttons To Play Movie?

May 10, 2011

I am trying to make buttons that play a movie then go to the page.

I want you to be able to click on the button (bottle) and then the motion tween play out and then when its finished direct you to the desired page.

I posted the code above that I used to get the button to play out on click, but I cannot get the code right to get it to redirect to a different page or url right after the movie plays?

View 9 Replies

ActionScript 3.0 :: Play Movie Clip ONCE Then Stop (on Click)?

Dec 17, 2009

i have a movie clip symbol on the stagei have set up a "CLICK" event listener. in the nction it saysCode:MC.play();how can i make it stop after playing once? WHY IS THIS SO HARD!i tried putting a stop(); inside the movie clips last frame but that did nothing

View 3 Replies

ActionScript 3.0 :: Play Movie Clip On Button Click?

Apr 8, 2010

I have been using flash for a while, but AS3 is a whole new world to me.

I simply want to have a movie (box1) to play when a button (btn1) is clicked.

NOTE: The button is within a movie clip (bulb1) which is within another movie clip (trees).

I tried this, but it just kept replaying the whole animation:

Code:

btn1.addEventListener (MouseEvent.CLICK, onClick);
function onClick( event:MouseEvent):void
{
box1.play();
}

View 15 Replies

ActionScript 3.0 :: Click Button To Play Movie In Reverse?

Apr 23, 2010

Actionscript 3 ---- Looking to have a movie clip and 2 buttons. Click the right button to make the movie clip go to the right, left button to make it go left (play backwards in the timeline) Currently the movie clip is set up as a 90 frame animation that moves across the stage on a motion tween. The right button just makes the movie clip play, so I'm looking to make my left button play that timeline in reverse. I've found lots of examples for AS2 online, but none for AS3......

View 4 Replies

ActionScript 3.0 :: Click Button To Play Movie Clip?

Dec 7, 2010

I am working on a project that I have three movie clips animate onto the stage.I then have 3 buttons come up correlating with each movie clip.How do I script the buttons to play the movie clips?The movie clips are embeded FLV files just fyi.

View 4 Replies

Flash :: Play Movie Clip When Click On Button?

Sep 16, 2011

I working on the timeline and have some Actionscript 3 code (I have a actions layer on the timeline). I am not sure what the code is for clicking on a button(I made the buttons movie clips since I wanted to animate it) and it plays a movie clip.

View 2 Replies

ActionScript 3.0 :: Play Specific Movie Clip From Click On Other MC?

Sep 29, 2009

I am making point and click game with AS3, with few scenes. On one scene, I've made some kind of door movie clip, and animated it inside that movieclip. there is a "doorhandle" movieclip also, and it needs to animate that animation (inside "door" mc) on click, as well as animation inside "doorhandle" movieclip in the same time.

View 2 Replies

ActionScript 2.0 :: Attach / Play Movie Clip On Click

Dec 14, 2008

I'm kind of a flash newbie, and I need some help with AS2 in Macromedia Flash 8. I want to make it so that when you click the mouse, it plays a certain movie clip at the current mouse position, without the movie clip actually being on the stage.

View 10 Replies

Flash :: Professional :: Create A Movie That Has The Classic "Click To Play" Over A Thumbanil Of Frame From The Movie

Apr 7, 2010

I am new to Flash and want to create a movie that has the classic "Click to Play" over a thumbanil of frame from the movie.

View 3 Replies

ActionScript 2.0 :: How To Play Random Scenes In Movie On Button Click

Apr 17, 2004

I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?

View 5 Replies

ActionScript 2.0 :: Play A Nested Movie Clip When Click The Mouse?

Oct 21, 2008

i need to play a nested movie clip when i click the mosue... how?

View 3 Replies







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