ActionScript 2.0 :: Pause/ Stop Embedded Video?

Feb 18, 2009

The Flash site I am building includes an FLV video which is embedded into a SWF (SWF1), which contains the video control components. SWF1 is in turn loaded into another SWF (SWF2) after SWF2 is launched. After I leave the part of SWF2 which contains the video, the video and audio continue to play. You can still hear the audio after you have moved away from the SWF1 video.The SWF1 video is part of a set of mostly PNG images that slide like a slide show along the X axis. When I hit the forward arrow, the SWF1 video slides out to the left and a loaded PNG image slides in from the right and into view. But you still hear the audio from SWF1 and the video continues to play.All of the loaded SWF video (there are three total) and PNG images are loaded into the same movie clip.Question: How can I tell the FLV video embedded in SWF1 to stop playing once SWF1 has moved out of view? I would like SWF2 to tell SWF1 to stop the video.

View 5 Replies


Similar Posts:


Actionscript 3.0 :: Possible To Stop / Pause Embedded Audio On Timeline?

Dec 8, 2009

I have a swf that has embedded audio on the swf's timeline which is set to Stream. This swf is then loaded into my main flash timeline via the loader class. I have a button coded as a toggle switch that pauses the loaded swf via the stop() and play() command. This works fine. The issue is that when the swf is paused (stop()), the audio is longer heard, but it continues to play. When I press my toggle switch again, the swf begins to play exactly where it was paused and the audio is now heard, but the issue is that the streaming audio is now out of sync since the swf timeline paused, but the audio continued to play. Is it possible to stop or pause the embedded audio on the timeline? I've tried looking at the SoundMixer static class, but this doesn't seem to help. I can use SoundMixer.stopAll(), but there's no way to start the audio again.

View 5 Replies

ActionScript 3.0 :: Play Pause In Embedded Video?

May 19, 2010

I am using AS3 and have embedded a video into flash using player. I want to play pause the video.

So, I am using ns.pause(); to pause the video and its working. ns denotes the instance name.

Simultaneously, i am using ns.play(); to play the video. But its not working.

View 10 Replies

ActionScript 3.0 :: Pause Play Embedded Video?

Apr 16, 2011

I'm new to Flash, and obviously AS3 (or AS in general) and am currently making a menu in which I have 2 video files.I want people to be able to play and pause (and stop) these videos.I currently have them playing and pausing using the FLVplayback method with no skins (have to make my own buttons). Though this is working I really need the video files to be embedded into the .swf/.fla as apposed to an external video.I have imported the videos into the library but they're not in use atm.

Is it possible to tell FLVplayback to use a embedded file from the library?If not is it possible to make a embedded video play/pause/stop in AS3 any other way? I couldn't seem to get it to which is why I went to FLVplayback method.

View 3 Replies

Add Video Play / Stop / Pause Button To Flash Video

Dec 7, 2009

I have created my first flash video and wish to allow the visitors to play the movie themselves instead of having the movie play automatically also have a stop or pause button too.

View 2 Replies

ActionScript 2.0 :: [CS3] Embedded Video Stop?

Feb 12, 2009

I have a flash header built that contains a embedded video how can i stop the embedded video but not the rest of the movie?

View 1 Replies

Flash - Stop Embedded Video From Autoplaying?

Jan 12, 2012

I've literally tried everything and cant get anything to work. I'm trying to get a video to not autoplay.I have added what code i have to this fiddle.

View 1 Replies

ActionScript 2.0 :: Using Button To Stop An Embedded Video?

Jul 13, 2007

I have an embedded video in Layer 1. I create a new Layer 2 and wish to add a button to stop the embedded video.I change the Instance Name of the embedded video to my_video. I then add the following ActionScript to the button:

on(click) {
my_video.stop();
}

[code].....

View 3 Replies

ActionScript 3.0 :: Automatically Stop Embedded Video When Go To Another Scene?

Jan 14, 2009

I have a movie with two scenes, each scene has a video. When I go from one scene to the other, I want the video in the previous scene to stop playing. But when I go to the next scene, I can hear the video playing from the previous scene. How can I automatically stop the video from the previous scene, when I go to the next scene.

View 0 Replies

ActionScript 3.0 :: Stop Embedded Youtube Video From Displaying 'Just Watched' End Screen?

May 14, 2011

My site was 95% point and clicked and the rest getting lucky with mostly the right AS3 after searching the various forums etc. Please be patient and type slowly that I may understand

I managed to get a youtube embedded into my AS3 Flash site. Plays well enough and in the right box. Gota figure out how to default to 480 or 720 but thats not the problem... see below.

My questions is this: is there any way to stop the video from playing all the way through to Youtubes default end screen where it has the Just Watched and Up Next screen? Either by going back to the thumbnail it uses by default or by sending it to another page on my flash site?

The last thing I want is my viewer wandering away from my site ><.

Below is the code I used on the Video holder object Sorry i forgot the tute i pasted from - but it worked thank you who ever you may be:

Security.allowDomain("www.youtube.com");

// This will hold the API player instance once it is initialized.
var player:Object;
var loader:Loader = new Loader();

[Code].....

View 4 Replies

Javascript :: Gain Access To An Embedded Flash Video's Parameters That Is Embedded On A Site You Don't Own Via A Browser Extension?

Jan 2, 2011

I'd like to gain read only access to the following parameters of embedded Flash videos located on sites that I do not own through my own custom browser extension/add-on:

Time location of playback head (so I can display the current time in the browser extension via HTML5/JavaScript) Frames (so I can make capture them to an image file, save it and display image in browser extension) Original Dimensions in pixels (so I can display the original video dimensions via JS/HTML5 in browser extension)

Is this possible by using Javascript and HTML5 from a browser extension?

Would I have to use something like the SWFObject Javascript API [URL]

View 1 Replies

ActionScript 2.0 :: [CS3] Streaming Flv To Trigger Embedded Mp3 On Pause?

Feb 29, 2008

I have a loop (mp3) playing from the instant my index page is loaded. This is to be my web portfolio site and on the third page (loaded by clicking a linkage button), I have some buttons that trigger streaming flv files in an flv playback component. What I want to do is to pause or stop the loop for the duration of each flv, then when the streamed flv is finished, the loop resumes playing. Is there a way to do this? I can do this if the flv files are embedded in the swf, but since these files are streamed, I am kind of at a loss.

View 3 Replies

ActionScript 3.0 :: Video Won't Stop Using Same Command That Made Video Stop

May 7, 2011

I have a website that plays video1 when it opens. When you navigate to next page the video stops. One of the buttons on the second page plays video2. The problem is that video 2 won't stop using the same command that made video1 stop.

View 2 Replies

Professional :: Trigger The Video To Pause When Clicked Anywhere On The Video Screen?

Jan 19, 2010

I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thichbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?

View 2 Replies

ActionScript 3.0 :: Embedded Video And External Video With Playback Component

Nov 9, 2010

I have trouble in choosing between external video with playback component and embedded video . I have tried adding video to dynamic page and everything is perfect .This video I have imported using the option File ->import video -> external video with playback component. If I try to execute flv on another system , the video is not playing eventhough it is in library.

So, I have imported video using the option of embedded video and this worked fine on another systems as it embeds video. The video plays for only 2 min 54 sec. I have compressed the bit rate to how much ever I can in premier pro. It resulted in reducing the size of the file but still I see the video occupying more than 3500 frames in the timeline. I feel this is not optimal.

View 1 Replies

IDE :: Stop/pause For Slideshow?

Jun 8, 2009

each frame on the main movie pulls in an external jpg. on entering that frame.this movieclip ( slideshow timer) is associated with a play button.frame 1 (slideshow timer)just has a stop.once the play button is pressed then the following code in frame 2.(slideshow timer) begins to switch through the frames on the main movie.but if i want to stop the slide show it doesn't seem to do anything.i suspect that a function cannot be removed but have not found anything to say whether it can or can't.

function jumpFast(){
_root.nextFrame()
}

[code]....

View 3 Replies

Professional :: Add Controls Like Play, Stop, Pause

Apr 9, 2007

I just want to add controls so that people can control if they play or pause or stop the animation when I export the fla.

View 3 Replies

ActionScript 3.0 :: Pause, Stop And Resume Buttons?

Jun 29, 2009

I've got a fairly short little animation sequence that the folks here at my work would like to insert into one of our web pages on our site.  It's a demo on how to use one of our products, so I'd like to add a few buttons so the user can pause and then resume the entire movie.  There is absolutely no scripting applied to the FLA right now.
 
I've been working on another project that involves scripting some buttons with AS3, so I have some knowledge, but am still having a lot of difficulty,

View 3 Replies

ActionScript 3.0 :: Play/Pause And Stop Buttons?

Mar 20, 2010

I can do this in AS2 but am struggling in 3.  I've got the Play/Pause working and toggling and the Stop button stopping but I can't get the Play/Pause to toggle when the Stop button is pushed.
 
Here's my code:
 
var isPlaying:Boolean;var soundChannel:SoundChannel = new SoundChannel();var sound:Sound = new Sound(new URLRequest("commercial.mp3"));xstop.addEventListener(MouseEvent.CLICK, clickStop);xplay.addEventListener(MouseEvent.CLICK, clickPlayPause);

[Code]...

View 4 Replies

ActionScript 2.0 :: Pause Dynamically Loaded MP3 (Not Stop)

Nov 23, 2005

I already have an mp3 player I've built that uses dynamic text (song title and track info) and variables to load an mp3 dynamically through .php & FlashVars. I only need 1 mp3 playing at one time and so this method works great for me. This way I can update it without going into Flash at all (but XML is overkill so no need for that either). Thing is, I would like to have a play and stop button that actually stops and starts the track where it last was stopped / paused, rather than resuming from the beginning. I also have built in a volume slider.

Here is the Actionscript I've been using:
On Volume Slider MC [mySlider]:
Code:
onClipEvent (load) {
mySound = new Sound();
mySound.loadSound(mp3Title,true);
} onClipEvent (enterFrame) {
mySound.setVolume(_root.volume);
[Code] .....

It Works ok, but like I said...stop does not "pause" the mp3 but rather stops it irrecoverably. Play starts from the beginning which I would like to avoid.

View 4 Replies

ActionScript 2.0 :: Start/stop/pause A Sound In External Swf?

Jan 15, 2010

I'va any troubles in controlling sound in an external swf. I need to stop/play/pause it. I've put the sound file on the timeline of the external swf and I want to control it from tha main movie in wich I've load it. the swfs are made using AS2.0

View 2 Replies

Professional :: Animation Start/stop/pause On Mouseclick #2?

Jan 6, 2012

My final goal would be to have the animation pause after the first click, then resume with the next click and so on.So, after successfully having started the animation on I tried adding a

this.addEventListener(MouseEvent.CLICK,stopF);
function stopF(e:MouseEvent):void{
this.stop();

[code]....

View 1 Replies

Multiple Flash Players - First Pause And Stop Then Start

May 1, 2010

I have a flash player that plays an MP3 from my website. On one of my pages i have around 20 of these flash players embeded on the website. i've seen on other websites so when the user presses the play on flash player #1 and then while that's playing, they press play on flash player #2, it would first pause and stop flash player #1 and then start flash player #2 and so on.

View 4 Replies

ActionScript 2.0 :: Pause Or Stop The Timeline For An Amount Of Time?

Sep 29, 2004

is there a line of code to pause or stop the timeline for an amount of time?

View 4 Replies

ActionScript 1/2 :: Pause, Stop, Play A Sound That Is Loaded From The Other .swf File?

May 6, 2009

Pause and Resume external SWF sound filesI have this code that plays the sound through linkage. It reside in scene1.fla -> scene1.swf.

var mc:MovieClip = this.createEmptyMovieClip("mc",1);var myLoop:Sound = new Sound(mc);myLoop.attachSound("bg_sound");myLoopVolume=0;myLoop.setVolume(myLoopVolume);
mc.onEnterFrame = function () {  if (fadeIn01==1) {  

[code].....

View 1 Replies

ActionScript 2.0 :: Play / Pause Buttons To Stop Then Start Music?

May 23, 2005

How can I get the pause button to stop sounds and music, and the play button to start them up again? As of now, it only stops the animation, and lets the music continue.

View 1 Replies

ActionScript 2.0 :: Pause / Stop And Play Buttons To Control MP3 File

Jan 17, 2007

I am trying to make a play, pause and stop btns controlling a mp3 file which is in the library which has a linkage id of Speakers. I've manage to get the pause and play to work but now incorporating a stop button isn't working for me

Code:
var snd:Sound = new Sound();
snd.attachSound("Speakers");
btnHalt.onRelease = function() {
snd.stop();
} btnResume.onRelease = function() {
snd.start(snd.position / 1000);
} restartbtn.onRelease = function() {
snd.start();
}

To say basically if you have pressed the pause btn, then the play btn, play from state pause at, but if you have pressed the stop btn then pressed the play btn, play from start and also if the play btn has been pressed and the audio is playing if pressed again dont play again do nothing.

View 5 Replies

Stop / Remove An Embedded Player?

Mar 8, 2010

I am working on a webpage where i have to include an embedded video.The video is hosted on some other domain.I am able to embed the video and autoplay once the web page is loaded.However i have a requirement where i have to remove the div displaying the video once it is played , and in place of the video i have to now display some text.

The problem is i am able to do autoplay by the autostart variable in the embed tag...but how do i know that the video has ended.The hosting company only provides an embed tag and they donot have any player apis to use.

One way (or rather a workaround) that i feel is to start a eventlistener in the background and see for the total time of the video and when that time is reached remove the content.But the problem is what if the user pauses the video, then also the div would be deleted.

View 1 Replies

ActionScript 3.0 :: Sound - When Press Stop Then Play It Only Plays From The Last Pause And Not The Beginning

Apr 26, 2009

i'm habing abit of problem with this code, its supposed to play pause and stop, the problem being that when i press stop then play it only plays from the last pause and not the beggining how to get it to play from the start after the stop button is pressed

[Code]...

View 1 Replies

Professional :: Create An Audio Player With Play, Stop, And Pause Buttons?

Apr 16, 2010

I want to do something that is probably very simple, but I'm having difficulty.
 
I want to create an audio player with play, stop, and pause buttons that I can then import into Fireworks/Dreamweaver. 

View 2 Replies







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