ActionScript 3.0 :: Stop The Play Head Wherever The Viewer Clicks The Button?

Nov 8, 2010

I am trying to acomplish a very simple task with AS 3 with no results. I have a simple time line with a stop button. All I want to do is to stop the play head wherever the viewer clicks the button, and then to start again from there when the button is clicked again.

View 4 Replies


Similar Posts:


Stop Video From Playing Until User Clicks The Play Button?

Mar 27, 2009

I am using flash 8 professional.

I have a custom video player that loads videos from an external xml file. It uses all actionscript to control the video using the attatchVideo(ns).

At present the video starts playing as soon as the video opens, I would like the video to only start playing after the user clicks the play button.

What is the actionscript I need to achieve this?

* all the actionscript for all buttons etc. is on one layer called actions. Videos are external not on layers.

View 3 Replies

ActionScript 3.0 :: Play Next 5 Frames And Stop The Play Head?

Jan 6, 2011

how would you play the next 5 frames if the space bar was clicked and then stop the playhead?

View 4 Replies

ActionScript 3.0 :: Moving The Play Head In The Main Timeline From A Button In A Movie Clip?

Jun 23, 2009

I have a movie clip that loads and when it is done playing it has a close button that unloads the movie clip... I want to add code to this button that moves the play head to frame 20 of my main timline using actionScript 3.0

View 10 Replies

ActionScript 2.0 :: Stop Video From Starting Until User Clicks Play

Mar 28, 2009

Using the tutorials on the gotoandlearn main page I built a custom video player that loads the videos from an xml file and it works great. At present the video starts playing as soon as the video opens, I would like the video to only start playing after the user clicks the play button.

View 3 Replies

ActionScript 2.0 :: Bar - Play And Stop Button To Play And Stop Frames In A Flash Movie

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

IDE :: Vertical Menu Of Questions The Viewer Clicks On?

May 12, 2010

So I have an animation I'm working on, its dialog driven and I want a vertical menu of questions the viewer clicks on. When its clicked it plays a specific sequence of animation, that part I have covered. Depending on the question clicked however, I want the menu to update with follow up questions.

-several menu items need to open up new menu items.
-the new menu items appear beneath the previous item.
-each new menu item needs to highlight text.
-each used menu item needs to dim text.

I'm mostly a script kiddy, I find stuff similar to what I need and take it apart and rebuild it to my needs. But I haven't found anything of this sort. The closest thing I have is creating a menu with an array.

I thought to assign the initial array values to questions as they would appear on a complete list. The idea is at the end of a string of dialog to run a check on a specific array value, if it comes up false, create that value and hence the new menu item is in it's proper place on the list (including appropriate highlight/dim text color). The problem is that when I run a trace I get a bunch of undefined values in-between. I don't want a menu with "undefined" text labels/buttons, is there a way to run a check for undefined during the menu loop and tell it to skip to the next value?

is this the best way to handle this project? I'd rather not create a complex movie clip of every possible menu configuration and run a ton of value checks with goto frames.

View 3 Replies

ActionScript 3.0 :: Getting FLV To Stop Playing When User Clicks On Nav Button

Jul 22, 2009

I have a portfolio_mc that is inside of a content_mc (stage->content_mc->portfolio_mc). There are 3 buttons that take the user to an appropriate frame designated by a frame label and this loads up an FLV. The problem is that when I click on any of the navigation buttons on the main timeline, the FLV that is currently playing, is still playing (I can hear the audio). How to stop this.

Here is the code used for controlling the buttons in the motion_mc timeline:
stop();
var naviArr:Array = new Array(btn01, btn02, btn03);
btn01.addEventListener(MouseEvent.CLICK, navigate);
btn02.addEventListener(MouseEvent.CLICK, navigate);
btn03.addEventListener(MouseEvent.CLICK, navigate);
[Code] .....

View 18 Replies

ActionScript 3.0 :: Stop Timer Until User Clicks A Button On Second Swf

Jul 7, 2009

I have an opening screen which asks the user to enter the first name and then they click the "start" button.This then loads an external swf into it and it starts a quiz on a timer.All that works except that the timer starts sometime during opening swf.I'm not sure if it's when the main swf is loaded or if when the user clicks in the input box but it is definitely not when the user clicks the "start" button like I have programmed.I even tried to stop the timer until the user clicks a button on the second swf (the external swf that is loaded into the main swf)[code]In the loaded swf I have a clock_mc that holds the timer.the first frame has a simple stop(); and the second holds all of the code that makes the clock run.I then have code setup so that when the user clicks a button the clock_mc.gotoAndPlay(2)[code]

View 5 Replies

IDE :: Stop Flv Playback When User Clicks A Navigation Button?

Feb 6, 2008

I have a few flv component instances on different frames. When you click a navigation button the current flv should stop and it takes you to a new flv on a different frame. But the previous one keeps playing. How do I stop the current one playing when the button clicks?

View 6 Replies

ActionScript 3.0 :: Stop Video When User Clicks A Navigation Button?

Jul 11, 2009

I have a flash page that loads a video. Under that I have a button tcalled "Audio Demos" that opens a pop up with an audio player.

The problem is that the video keeps playing, so I need some code that stops the video when the user clicks on the "Audio Demos" button.

Here's the code for the button:

function getGilbertAudiodemos(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.gilbert.net.au/demo.html"));
}
gil_audio.addEventListener(MouseEvent.CLICK, getGilbertAudiodemos);

View 2 Replies

ActionScript 3.0 :: Load A Movieclip Into Scene When The Viewer Clicks On An Invisible_btn?

Nov 26, 2008

I'm trying to load a movieclip into my scene when the viewer clicks on an invisible_btn the instance name of the btn is "invisible_btn" and the name of the movieclip is "Symbol1."

How can I get my movieclip to run once the invisible_btn is clicked?

View 3 Replies

ActionScript 3.0 :: Getting A Video To Stop Playing When User Clicks On Another Button To Navigate

Jan 17, 2010

I am trying to create a little website in flash.. I have some video that plays automatically once the user goes to that section (I am using frame labels to navigate from section to section of the site). But, when the user clicks another button to go to a different page, the video is still playing because I hear it..How can I stop the video from playing once another button gets clicked?

View 20 Replies

ActionScript 3.0 :: Video / Sound Won't Stop When Clicks A Menu Button To Go To Another Frame?

Mar 19, 2010

I am in frame 20 which is playing a video, How do I get it to stop sound and video when some clicks a menu button to go to another frame? Where do I put the code?0

View 3 Replies

Flex :: Pages With Flash Won't Load Until User Clicks The X (stop) Button On IE

Dec 1, 2009

I am building a flash application using flex. From time to time, I see an issue in IE 7 and 8 where the user logs into the site and the browser content pane is completely grey and the entire page (html, javascript and flash) won't load until the user clicks the X (Stop) button next the address bar. As soon as the X is clicked, the html loads and then the swf file loads immediately.

This doesn't happen for me or any other developers on the project so it is very hard to diagnose. The users are all using the latest flash player. The only difference between our setups that I can think of is that we have the debug version of flash player and they probably do not.

View 1 Replies

ActionScript 3.0 :: Get Main Timeline To Stop In The Beginning On Button Press To Play And At The End Stop Again?

Feb 1, 2008

I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly.

The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either.Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3.

View 9 Replies

ActionScript 3.0 :: Play / Stop Button - Current Audio File To Play The Next One

Feb 27, 2012

I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?

[Code]...

View 1 Replies

ActionScript 2.0 :: Determining Play Head Location?

Feb 28, 2006

find out where the play head is?

I'm trying to do something like this

Code:
if(_root.movie.currentPlayHeadPosition == 1) doSomething();

Its been a long time since I last did any flash, can anyone jog my memory on how to get the current frame?

View 1 Replies

ActionScript 2.0 :: Wait Play-head For 5 Second In A Frame?

Dec 10, 2003

how will be actionScript for waiting the play head in a frame for 5 second ?

View 5 Replies

ActionScript 3.0 :: Moving The Play Head On The Main Timline From A MC?

Jun 23, 2009

I am using flash CS4 and ActionScript 3.0 i have a movie clip on stage that i have close when the user hits a button how to i also tell the maine time line to go to a frame when this button in the Movie clip is pressed?

View 2 Replies

ActionScript 2.0 :: Create A Progress Bar With Custom Play Head?

Dec 29, 2007

I make a flash movie. I want to create a progress bar with custom play head that when we drag it, the swf file will adjust appropriate position, similar to the progress bar in comman media players. My main swf file has about 2000 frames

View 2 Replies

ActionScript 2.0 :: Direct Play Head To Go To Two Positons In One Function?

Mar 23, 2005

I'm trying to make this script work in which two things should happen onRlease of a movie clip. The "transition" plays but frame 18 doesn't..even though the path is right. I even tried frame label even that doesn't work.I must be doing something wrong, maybe you can detect from this script. The script is on the clip itself.[code]

View 7 Replies

ActionScript 2.0 :: Button - Play It In "inactive" State When The User Clicks Anything Else

Apr 11, 2005

I have buttons (transparent) and little mc animations (tweened the good old fashioned way) that play underneath them on onPress.What I want to do is make it so that when you press say "Home" the animation will stay in the "on" position until you click something else, anything else. That is to say, I want to say "This button just got clicked, play the animation, keep it in the "active" state while the user is looking at the page, and play the "inactive" state when the user clicks ANYTHING else."Right now, I've coded each individual button like this:

on(release) {
content.loadMovie("about.swf");
buttonthing.gotoAndPlay ("off");[code]....

View 2 Replies

ActionScript 3.0 :: Trace When Play Head Hits A Frame Label?

Mar 24, 2009

would like flash to trace something when the play head goes over a frame label named "test" I would also like to have the code placed on the first key frame. I realize that the easiest way out would be to place the trace statement on the frame with the label on it but I'm trying to run this with a listener.

PHP Code:
stage.addEventListener(Event.ENTER_FRAME, checkFrame,false,0,true);
function checkFrame(event:Event):void

[code]....

View 2 Replies

ActionScript 2.0 :: XML Return Hangs Flash Movie Play Head?

Jan 17, 2007

anyone can offer me a way of housing an XML return in a seperate object, so that the flash movie in question doesn't hang around waiting for the feed to come back.The problem is we have an asp app which is returning the status of about 1000 citrix terminals at once.... while this only takes 10-15 seconds to return, any kind of animated loader i build into the movie, stops playing while flash holds on the XML return, as the http response status never responds dead, but says "waiting" instead.Any kind of way of adding the XML load script as an object listener maybe...?

View 3 Replies

ActionScript 2.0 :: Unload A Movie Clip As The Play Head Jumps To Another Frame?

Jun 27, 2007

The movie clip is called "theScene" and I have it created on Frame 60 of a movie clip when a button triggers the playhead to jump and stop at Frame 60. However, upon leaving that frame, it will not disappear, so I want to unload it upon leaving that frame.I put in the following code across all frames of the movie clip in its own layer:

Code:
if (this._currentframe !=60)
{

[code]....

View 3 Replies

Actionscript 2.0 :: Multiple Mp3 Players - Stop Button , Pause Button When Choose A Song The Previously That Play Will Be Muted

May 8, 2010

i started with a Multiple mp3 players project and i more complicated with that - as you see in the picture i try to do that when click on the play button for every song this switch the song that selected -first preloading + percentage the mp3 file and after play it immediately and of course there is stop button, pause button when choose a song the previously that play will be muted

View 4 Replies

Professional :: Play/stop Button Change Into One Button?

Mar 9, 2010

I have two buttons for paly and stop movie.

It is possible to only use ONE button ...
 
EXample
When click PLAY , stop btn is on
When click Stop, Play btn is on.
 
My file: [URL]

View 1 Replies

ActionScript 1/2 :: Tell Another Button To Send The Head Backwards?

Mar 5, 2011

As I use play(); in a button-script to send the timeline head forward in my mc animation, which is the simplest way to tell another button to send the head backwards?

View 5 Replies

Create A Button To Stop And Play Music?

Dec 23, 2009

I am using flash CS4 AS 2.0.creating a button to stop the music on click and play the music on the next click. Sort of on and off music.

View 12 Replies







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