ActionScript 2.0 :: How To Pause An External Swf
Jan 25, 2007
I need to pause an external movie and have it play from where it was stopped. I can get all sorts of communication to the external swf from the parent EXCEPT simple playing and stopping. The movie plays when it is brought in, but I cannot get the pause stop/play part to work. Below is code that I've come up with, but doesn't work:
[Code]...
View 2 Replies
Similar Posts:
Dec 18, 2009
I am having issues with MovieClips linking to HTML files on Firefox and I think part of the problem may be that the links aren't working in Firefox because of the browser waiting for the video to load.
Here is my code:
container.addChild(vid);
vid.autoPlay=false;
vid.source="video3.flv";
vid.skin="SkinOverPlaySeekStop.swf";
vid.skinBackgroundColor = 0x555555;
vid.skinBackgroundAlpha = 0.7;
vid.height=480; vid.width=640;
vid.x=305; vid.y=90;
The vid.autoPlay=false; does seem to do anything.
View 0 Replies
May 21, 2007
Im trying to get an external swf to pause but I can't seem to do it... here is how my movies are setup
Domain1
preloader.swf
Domain2
movie.swf
When they were on the same domain I could access movie.swf fine but now it is on the other domain... it loads, but i can't control it. Im using System.security.allowDomain so it loads fine but telling the container to pause now does nothing..
View 2 Replies
Mar 10, 2010
i have a main file that loads up 7 external swfs.Each of those swfs is progressively streaming flv files.From that main movie - i would like to pause those flvs..how would I do this? here is the code for one of the swf calls :
var swf2:MovieClip;
var loader2:Loader = new Loader();
var defaultSWF2:URLRequest = new URLRequest("test.swf");
[code].....
View 1 Replies
Oct 16, 2009
I am autoplaying a FLV in a SWF in scene 1. I have created buttons on this same scene that will do different things, and present different information. I really want that button to pause that autoplaying video when it starts those actions. How can I accomplish this?
View 6 Replies
Oct 11, 2010
I have created a Flash container movie (mainContainer.swf) that cycles through an array loading in several external swf files (animation1.swf, animation2.swf, animation3.swf, etc.). Once the user clicks the next button, the next swf is loaded, and so on...
What I need to be able to do, is to control the sound of the external swf files from the main container. Specifically, I need to be able to pause and play/resume the sound of the external swfs, but not quite sure how to access the external swf's soundChannel from the main container swf. My client recently wanted to add in a "pause" feature, and while I have been able to pause the external swf's animation, I cannot target the external swf's sound - it just continues playing while external animation is paused.
I can successfully pause/resume the sound (song.mp3) if the soundChannel is defined from within the same swf (using code below); however, I cannot seem to figure out how to communicate between the parent and child swf, if the parent is requesting the pause action, and the child swf is the one that loads in the song.
[Code]...
View 4 Replies
Nov 3, 2010
When i use the code: external_mc.stop(); only the maintimeline of the external swf stops but all the movieclips inside de external swf doesn't stop.
Is there a simple way to pause all the movieclips without to stop each movieclip seperatly.
View 4 Replies
Oct 7, 2010
I have created a Flash container that cycles through an array loading in several external swf files. What I need to be able to do, is to control the sound of the external swfs from the main container. I would like to be able to pause and play/resume the sound of the external swfs, but not quite sure how to accomplish this, as I am newly migrating to AS3. Some of the sound is embedded in the external files, while others load it in via AS.
I was able to successfully pause/resume the animation of the external files, but cannot get the sound to pause - it just continues playing while the animation is stopped.
How can I pause and resume the sound of my external swfs from my main container?
View 6 Replies
Jan 18, 2010
I have a site that loads an external mp3 player. Now I want to pause the sound when the "video" button is pressed. In the mqin swf file, there is a movie clip called "MP3_Player", in that clip is the loaded mp3 player. I used this method to call the mp3 swf file.[code]Now what path/s do apply to the button in the main swf file to get the music to pause.
View 2 Replies
Sep 2, 2009
I'm trying to create buttons so a viewer can pause and then play an externally loaded swf. My project can be accessed at the linke below. This is how I want the project to function
-Click a room on the building (choose Accounting for this discussion)
-Click one of the demo options (choose Ending a Period for this discussion)
- Now that the demo plays, I want the user to be able to play and pause the demo swf.
The demo .swfs were created in Captivate so I don't have access to their timeline. They are loaded into an empty Loader component using the MovieClipLoader Class.
[URL]
View 7 Replies
Dec 19, 2011
I am trying to control movie clip to anther swf file but its not working how to do .
View 1 Replies
Oct 18, 2010
I have been searching all morning and cannot find a solution to this. I have a 60MB SWF published from Camtasia and I would like to add the ability to pause/play the clip using spacebar. The file is too big to import into the library (Flash CS5) or at least I assume so because it keeps crashing when I try. So I thought I would create a new flash movie and have it just reference the clip externally. I have tried a couple methods each are resulting in different errors.
[Code]....
View 2 Replies
Aug 25, 2009
i have a movieclip on timeline, and then i addchild ( a container ) to load an external swf movie on it. Then i want to have a button so i can pause the loaded swf movie.
And my problem is, i can access to it, i can change the properties like the alpha, but i can just stop or pause it.
i've been search and testing many script, but i still can make it work it just a simple task right? i can do it quickly with AS2
View 8 Replies
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
Jun 20, 2011
loaded an external swf (with audio) in a conteiner swf.
From the cointeiner I want to controll audio pause/resume.
I know the procedure to do this with a mp3 file, but I can't intercept the sound channel of my child swf...
this should be the code to obtain the sound position:
var soundChannel:SoundChannel = new SoundChannel();
var sound:Sound = new Sound(new URLRequest("SOUND.mp3"));
soundChannel = sound.play();
pausePoint = soundChannel.position;
But I haven't the mp3 path.... My mp3 is embedded into swf child. And I can't put actionscript function in child, because is haven't source fla.
View 5 Replies
Mar 8, 2012
I am trying to control a external swf file with a pause function. The main idea is loading an external file and when I want, pause it and its childs. The loader object is "introStage"
[Code]...
View 9 Replies
Jun 26, 2010
How do I pause not play the external FLV video until I hit the "Play" button? I don't want my video to play immediately Couldn't figure out which code to edit or add in my AS.Below are my codes
Code: Select allvar nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
[code].....
View 2 Replies
Sep 10, 2004
I am trying to pause/play a swf loaded into a loader component.I tried putting it in a mc and contolling it that way but it aint work.
View 1 Replies
Aug 24, 2010
I have a preloader.swf that loads another swf (main.swf). It all works fine, however I would like the loading bar to stay on 100 (once it gets there) for 2-3 seconds before the main.swf opens, currently as expected from the code below, as soon as it gets to 100% it flicks straight over to the main.swf.
I am using tweener, and I could achieve this easily using the onComplete code to call this.addChild(loader);, however, the problem is, both my preloader and my main swf are liquid layouts, and if I were to call the this.addChild(loader); at the end in its own function, then it throws a
TypeError: Error #1009: Cannot access a property or method of a null object reference.
. The only way to get around this error is to put the this.addChild(loader); so that it loads upfront. After a bit of google research, i found this error occurs due to the stage properties already been set in the preloader.swf (from liquid layout)then once the main.swf loads it tries to set them again...So is there another way i can cause a delay for 2-3 seconds once my preloader hits 100?
Below is my preloader code with liquid layout settings
Code:
//LIQUID LAYOUT
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandlerLoading);
[Code]....
1. using my tweener onComplete method and fixing the error caused by preexisting stage properties
2. Thinking of an alternate way to delay the main.swf from opening straight away (keeping in mind that this.addChild(loader); would need to stay where it is...
PS - here is a link to a person who was getting the #1009 error with preloader and liquid layout, their solution works, but won't allow me to use a tweener delay...[URL]
View 2 Replies
Sep 10, 2004
I am trying to pause/play a swf loaded into a loader component.I tried putting it in a mc and contolling it that way but it aint work.
View 1 Replies
Aug 3, 2010
I'm loading an external .swf using the following code:
voiceover = new Sound ();voiceover.loadSound("Audio/Test.mp3", true);
The audio plays fine. My question is how can I create a pause, resume, rewind, or fast forward button for an external mp3?
View 1 Replies
Mar 25, 2012
I will try to be as clear as I can. I have an existing swf file that I need to add Play,Pause, FF and Rewind to but I need the controls to be part of the swf file and not as a video player.
I am loading an external swf file that has all of the controls on it via this code:
[Code]...
I am doing this so I can rollover the viewing window and have it appear. I cannot get any code to work to control the timeline (which is broken down into sections with individual MC's in each section.
What I am looking for is the code to apply to the buttons on the external controller to control the playing of the movie.
View 0 Replies
Mar 26, 2007
I am trying to create a pause button that will pause everything on the screen including movieclips/audio. Right now I can't figure out how to pause the movieclips.
View 2 Replies
Aug 2, 2009
I have some banners I am doing right now and have a pause timer question. I am fairly green at coding. In my first frame I have this:
[Code]...
I want it to pause each time in the last frame for 8 seconds and loop only 3x. Is there a better way to write this? I know all my code should be in the first frame but I still suck.
View 2 Replies
Nov 25, 2006
I am using Macromedia Flash Pro 8. I have a flash intro that has words (phrases) which slide in. I would like to add a 7 second pause between each phrase to give people time to read them (no buttons). Could someone tell me the script(s) to use with all functions, etc. included - as I am so new to all this. I have been looking for weeks & tried many codes but none seem to work - or I don't know exactly where to place them - or both
View 3 Replies
Dec 16, 2010
I have a timeline of 30 frames, each it's own mc (page01_mc, etc.). In each mc I show a picture or two and hear narration.I have a first, prev and next nav on the main timeline. I need to add a play/pause btn that will pause both pictures and sound. I assume I do that in each mc, but do not know where to find the code.Here is what is in each mc now:
var mySound:Sound = new Sound();
mySound.load(new URLRequest("english/Intro01.mp3"));
mySound.play()
View 1 Replies
Jul 10, 2009
I am designing a flv player... my problem right now is when I pause the video, and press play button again, the video starts from begining and I need it to play where it's paused.[code]...
View 2 Replies
Feb 29, 2004
i am making a music player in flashmx but i don't know how to pause the mp3..
View 4 Replies
Apr 24, 2003
how to pause a MC? for example if i have a ball moving from left to right and i want to press a button that will pause it in between the movement so that it can stop and when i press the buttons one more time i can make it continue with what it was doing?
View 2 Replies
Apr 15, 2009
How can I pause within a for loop?
Not do some other function or pause the playhead, just:
for (i=0;i<=10;i++) {
trace(i);
wait for 1 second;
[Code].....
I can't make it wait within the loop. I can use setTimeout or setInterval to delay the calling of the for loop, but once it's called it just flips through all the iterations.
View 7 Replies