Use A Play Button To Run Movie In Flash?
Dec 6, 2010
Alrighty so I'm super new to actually using coding in Flash (this is my first time, actually) so... yeah. And I pretty much registered an account on here just to ask this.I'm using ActionScript 2 and Flash CS4, and I'm trying to get my play button to play a movie clip. Originally it was in .wmv format, but I have tried importing it in different ways in different file formats to see if it works any better. It works perfectly when I demo it in Flash with the ctrl+enter thing and if I just open the thing in my browser, but when I upload it to my deviantART (to showcase video since they don't support video) it clicks the button and displays a white screen.I'm really not sure what I'm doing wrong, as I've been leafing through a lot of tutorials and trying those out, and it works fine in Flash.
View 2 Replies
Similar Posts:
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
Dec 1, 2004
give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck
View 2 Replies
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
Oct 11, 2009
I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.
View 10 Replies
May 17, 2011
I want to play a movie clip when I click a button.I made 3 states: inicial (how it looks before anything happens) (up)hover (plays an animation after waiting 20 frames) (over)click (plays an animation right away) (down)I placed these movie clips inside of my button's up, over, and down frames. This works great except when I click, i'll need to click and hold for my animation to get past the first frame.
View 1 Replies
Jan 28, 2011
I have been trying to create a play/pause button for the main timeline in my flash movie. Created a movie clip with 1st frame - a pause graphic, then on 2nd frame - play graphic, labelled the frames 'pause' and 'play' consecutively and put a stop action on the first frame of the movieclip. Then put the following code in the actions layer of the main timeline (and gave instance name of 'ppBtn' to the movieclip):
var pp:Boolean = true;
function ppState(event:MouseEvent) {
if(pp) {
stop();
event.target.gotoAndStop('pause');
[Code] ....
It works in stopping and starting the movie but the actual movieclip doesn't toggle between the pause and the play graphics (just stays on the 'pause' state - 1st frame).
View 5 Replies
Jul 13, 2009
I work with 3d animation. Im have a problem with a personal website Im doing, I have a link in a button inside a flash movie to open a new window and play a youtube movie:
on (release) {
var jscommand:String = "window.open('http://www.youtube.com/v/b0L4XLODhAA&hl=en&fs=1&','win','height=344,width=4 25,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
}
This works fine in Firefox but in IE it doesnt work, I then change the /v/ in the youtube link with /p.swf?video_id= and now I have the window open showing the small youtube thumbnail of my video but once a click play, nothing happens, I check it and is not loading anything.
View 8 Replies
Jan 9, 2009
I have a MC inside a button and I put in in the "Over" state how to make the MC play in reverse on mouseOut? Or is there a better or easier way of doing this?
View 1 Replies
Apr 16, 2011
I placed a movie clip instance inside a button, and I want this movie clip to play when the button is released. I'm using this code on the frame containing the button:
function playMovie(event:MouseEvent)
{
this.theButton.theMC.gotoAndPlay(3);
[code].....
View 2 Replies
Sep 6, 2009
what is the script in CS4 to make a button play a movie?I have a button that opens each page as a movie. To align the movie I use a blank movie.I have been using the below....what replaces it in CS4?
View 1 Replies
Feb 14, 2012
I want to play the music file in flash player (which is embedded obviously) by clicking the play button which is in the web page (not in flash player).
View 2 Replies
Apr 12, 2009
On looking into buttons, I understand that to get a movie clip to play when a button is clicked you simply place the movie clip on the buttons 'hit' state. Having done this it does not work? Have I read wrong? Also the movie clip has a background the full size of the stage area. So when I attach this to the button, the button changes size to the same size as the movie? (i.e. whole stage area). How do I keep the button in it's original size while still playing the movie clip with large background?
View 2 Replies
Jun 10, 2009
im making an intereactive map and i have certain areas in the map where you can click and a video pops up so you can view real footage of the area. I just need help making the video pop up like how to import it and whatnot.
View 1 Replies
Jun 12, 2010
I have a simulation of a 3d rotation in a movie clip and what I want to do is on button press:
1) check to see if the movie clip is on a certain frame and if it is do nothing
2) if it is less than the 16th frame reverse the movie clip and play until it gets to a certain frame
3 if it is more than the 16th frame play until it gets to a certain frame
View 13 Replies
Oct 11, 2009
I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file. (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
eg.
thumbnail1_btn needs to go to main swf and play movieclip1.mc, frame 1
thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2
View 2 Replies
Jan 25, 2010
OKay I have a button, "home_btn". I also have a movie clip, "movie1_mc."
What I want to do is when I roll over "home_btn," I want it to play "movie1_mc."
What is the action script code to make a roll over on a button play a movie.
*The movie is going to be a sub navigation list containing other buttons, which will fade in when you roll over the main button.
View 18 Replies
Mar 25, 2010
I'm trying to get a movie to start once I click on a text button (play movie).So far I have this code in place and it is working.I just need to know the function necessary to start the movie to put in place of the comment I have below.[code]...
View 1 Replies
Feb 14, 2009
i am tryin to play a movie clip with a button and my code is like this..
stop();
function onSouthClick(evt:MouseEvent):void {
gotoAndPlay("southsouth");
[Code]....
View 1 Replies
Nov 18, 2009
I have a button which I have made into a button symbol.
I have created a movie clip in which a panel fades in and out.
I would like to play the movie clip when the button is hovered over.
I have the below entered on the button but not sure what to put next to make the clip play.[code]...
View 3 Replies
Feb 9, 2010
I have a menu bar at the top and and when i click the different buttons i want to play different movies from the start i.e different pages, and where i used to just type goto and play etc
I have the impression that i cant type straight on the button layer anymore so I need to type the code on an actions layer (right or wrong?)
I think this is nearly the code i need but what do i type to get it to go to a particular movie and frame?[code]...
View 2 Replies
Jun 27, 2007
Need the action script that makes a button (when rolled over) play a movie. I have a stop action in the first frame of the movie and know to point the action FROM the button to the second frame, but I need the rest of the script.
Imagine four buttons next to each other, each, when rolled over, make text movies fade in and out when user rolls off the buttons. Each text movie would play in the same spot on the page.
View 6 Replies
Sep 3, 2004
im trying to get 1 button to play a movie clip (a door opening) and the same button to close the door i know its possible and i think its by arrays
View 1 Replies
Sep 3, 2004
im trying to get 1 button to play a movie clip (a door opening) and the same button to close the door i know its possible and i think its by arrays .
View 1 Replies
Oct 2, 2009
I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.I was trying to use this code to scroll down from the first set of 5 to the second:
on (release) {
design_thumbnails.gotoAndPlay (20)
}
When I click the button nothing happens I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.
Here's what it looks like:I made a vertical list of thumbnails and converted them into a movie clip. There is a total of 20 thumbnails. I masked the movie clips so that it only shows 5 thumbnails at a time. I created keyframes at every point in the clip that 5 thumbnails are shown so that I can pause it.I was trying to use this code to scroll down from the first set of 5 to the second:
on (release) {
design_thumbnails.gotoAndPlay (20)
}
When I click the button nothing happens I'd also like to know how to rewind the movie so that when I press the up arrow it goes up to the previous set of 5.
View 3 Replies
Feb 10, 2010
I've created a widget that that, on roll over, starts an animation and allows the user to jump to a url on clicking the widget. It all works well, except that the whole stage area (209x204 pixels) is sensitive to the roll, and I want to somehow make a specific target area start the animation on roll over.
I've tried putting it into another button and adding a hit state to the button, which did create the specific area I was aiming for, but prevented the movie from playing, creating a weird 'stutter' of the cursor.
View 2 Replies
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
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
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
Dec 23, 2009
I have a very simple fla i built, all i need is the hover "over" stage to play this tween. On the keyframe I made it a symbol, movie clip. In there all the tweens are set exactly. It seems if you wanted motion on a stage,you would just put that clip on the over stage. I uploaded the fla file: [URL]
View 6 Replies