Actionscript 3.0 :: Sync Swf Timeline With External Flv?

Jan 26, 2010

There are all kinds of tutorials on FLVPlayback, streaming video from a URL, etc., but nothing I can find on how to make it play nice with the rest of the flash animation in my .swf. I assume this is a matter of simple actionscript, but my ignorance is profound.

So . . . I've got a flash animation that leads into a gotoAndPlay button, which references the frame where my video starts. The video, streaming from my url, plays fine, but if it takes a moment to buffer, the main timeline in my .swf just continues on through the frames I've created for the length of the video. Since my intention is to have the video finish and loop back to the intro. animation, ending with the play button displaying again, what happens is that it loops before the video is done playing, leaving the audio still streaming but the viewer staring at the play button. In other words, if there is no lag time for buffering, the number of frames before it loops is enough for the whole video. If it lags for buffering, it cuts off part of my video, prematurely looping to the intro.

Is there a way to sync the two playheads, so to speak, so that the .swf doesn't continue on when the video is paused?

View 2 Replies


Similar Posts:


Sync A Netstream Flv To The Main Timeline?

Oct 13, 2009

Is there a way to sync a netstream flv to the main timeline? I want the animation on layer 1 to play in sync with the netstream object on layer 2, that's why. netstream.time only provides seconds so I would lose a lot of frames of the animation. And adding a cue point for every frame would be a bit too much.

View 1 Replies

Professional :: Playing Sound In Timeline (For Lip Sync)

May 16, 2010

I've run into a bit of a problem using Adobe's CS3 flash program in terms of lip syncing... I can place the sound files in the timeline at whichever point I like and so forth, but I have no way to play them in such a way where I can adequately make lip syncs. It's hard to explain, but in flash MX I would merely click the timeline, drag the cursor along it, and it would play the sounds as it did the frames, one piece at a time. That way I could tell where the consonants were and therefore where to change my characters' lips. This is not the same as simply hitting "enter" and letting the sound play in its entirety.

View 4 Replies

Professional :: How To Time Music (sync) To Timeline

Jul 8, 2010

If i create timeline slideshow with tweensbetween the pictures, how do I add music so that it ends when the pictures end?I read that audio can come out of sync??What if i use another program to create the swf like after effects that exports with audio? and import, would it lose sync then?

View 1 Replies

ActionScript 3.0 :: Five MovieClips In Main Timeline - Sound Sync

Sep 26, 2008

Is it possible to add 5 movieClip in the main timeline, and add for each movieClip a Sound object at frame 5, so that when I play the main timeline, all sound are played simultaneously. Because if I store all Sound object in array, and I do for example (see attach code). That's correct ? Because the play method of Sound class have may latency.

View 1 Replies

IDE :: CS5 Audio Sync - Stream Sounds On Long Timeline?

May 13, 2011

I have a long timeline (5000+ frames) with cartoon animation and streaming dialogue sound on it. I've run into the dreaded audio sync problem. I found many discussions, peaking around 2005, but no solutions for this problem. I have a track of silence to ensure frame-dropping even between lines of dialogue. Prior to around 2000 frames the error is not noticeable.

My testing shows that playback is off by 2 frames per 1000 at 24fps. So at frame 10,000 the audio is out of sync with the graphics by 20 frames, nearly a second. This is predictable and reproducible on a variety of PCs and an iMac. I'm publishing to Flash 8 + AS2, but publishing to Flash 9 or Flash 10 don't make any difference at all.

I don't want to split this into multiple SWFs. Scenes don't help. Putting things into multiple movieclips would complicate my controls and our workflow. Just shifting the audio on the timeline is preferable to those solutions, but it makes maintenance difficult.

View 4 Replies

How To Sync Swf And External Flv

Jan 27, 2010

I'm a total novice and I think I can't find an answer to this question because it is so basic. There are all kinds of tutorials on FLVPlayback, streaming video from a URL, etc.,but nothing I can find on how to make it play nice with the rest of the flash animation in my .swf. I assume this is a matter of simple actionscript (AS3), but my ignorance is profound.

So . . . I've got a flash animation that leads into a gotoAndPlay button, which references the frame where my video starts. The video, streaming from my url, plays fine, but if it takes a moment to buffer, the main timeline in my .swf just continues on through the frames I've created for the length of the video. Since my intention is to have the video finish and loop back to the intro. animation, ending with the play button displaying again, what happens is that it loops before the video is done playing, leaving the audio still streaming but the viewer staring at the play button. In other words, if there is no lag time for buffering, the number of frames before it loops is enough for the whole video. If it lags for buffering, it cuts off part of my video, prematurely looping to the intro.

View 3 Replies

Javascript :: Is External Interface In Flash Async Or Sync

Jan 10, 2012

I will call flashObject.httpRequest to complete a http request via flash. The problem is there is no reference about httpRequest is an async method or sync. It is important for my application.

private function httpRequest (uri:String, param:String="", method:String="GET"):void
{
var

[Code]....

View 1 Replies

ActionScript 3.0 :: Loading External Data With Sync Mode?

Jan 12, 2009

as i understood, external data loads with async mode. Please, suggest me good way to get sync mode

View 9 Replies

ActionScript 2.0 :: External Audio Not In Sync With Text/screen On Windows XP?

Sep 23, 2011

I created a Flash program that utilizes audio and text. The audio is located in an external folder and is loaded using .loadSound(). The text is located on the timeline and appears based on a certain time in the audio. I have a pre-loader that looks to ensure all of the external audio is loaded before the user can move onto the appropriate screen and the audio would play. This is using a combination of the .getBytesTotal and .getsBytesLoaded.

It works fine on Windows 7 but doesn't seem to be working one particular user's Windows XP on IE 7 (So it's not happen on all Windows XP). On a particular user's computer, the text is slow to load while the sounds loads pretty quickly leaving the text out of sync. After a few screens, the text will catch up with the audio.

View 6 Replies

ActionScript 3.0 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies

ActionScript 3.0 :: Stopping External Swf's With No Timeline?

May 24, 2010

I just released my portfolio at [URL] which consists of a lot of externally loaded swf's (progressive banners). These swf's contains no timeline really, just one keyframe with an imported FLV. I don't have the source files so I need to control these from my Main flash file.
 
As these external swf's are auto-playing, I would like it to be user initiated instead, so the users click on a button and it plays. But commands like "loader.stop()", "gotoAndPlay" etc. doesn't seem to work obviously.

View 7 Replies

ActionScript 3.0 :: Controlling Timeline Of External Swf?

Jun 3, 2010

Just wondering how to control the timeline of an external swf loaded into the root of your main timeline, from within nested movieclips on your main timeline?I can successfully control it once it's loaded from within the function that assigns the external swf a MovieClip var, but I want to control it from deeper in my main swf.1. I've loaded an external swf into the root of my main swf.2. After loading, I assign the external swf a MovieClip var, and then set up a button to control the timeline of the external swf:
 
function dataOnLoad(evt:Event): void {
var myClip:MovieClip = evt.target.content;
function updateSwf(evt:MouseEvent): void{

[code].....

View 6 Replies

ActionScript 2.0 :: Remove An External SWF From A Timeline?

Jun 7, 2010

I loaded an external SWF file to my timeline using MovieClipLoader method. myMCL1.loadClip("game.swf", 5); It loaded fine. But then with a click of a button I need to go to the next frame and I want this MC to go away. I've tried everything I knew:

delete.myMCL1("game.swf").onEnterFrame;
myMCL1.onEnterFrame = unloadMovie;
delete myMCL1.onEnterFrame;

[Code].....

View 3 Replies

ActionScript 2.0 :: Control Timeline Of External Swf?

Oct 19, 2004

I have a loadMovie function in my timeline that is loading a external swf file. I want a button to control the tim line of the swf file that is loading externally.I know this is wrong, but kind show what i want to do:

Code:
loadMovie("g2.swf", empty_mc)
//button

[code].....

View 1 Replies

ActionScript 3.0 :: Control Timeline Of External Swf

Aug 6, 2009

I need to contro the timeline of an external swf that i'm loading in a movieclip that is in the main timeline.I have a button inside a MC that is on the Main swf that button has to say to the external swf something like "gotoAndStop(5)" i tried a lot of thinks but nothing works the last think i tried was this.[code]

View 2 Replies

ActionScript 2.0 :: Control Timeline Of External Swf

Oct 19, 2004

I have a loadMovie function in my timeline that is loading a external swf file. I want a button to control the tim line of the swf file that is loading externally. I know this is wrong, but kind show what i want to do:

[Code]....

View 1 Replies

ActionScript 3.0 :: Edit Main Timeline From An External Swf?

Mar 2, 2009

I have been going crazy all weekend trying to figure this out. All I want to do is communicate with the main timeline from a loaded external swf. So, I have loaded a external swf called "test.swf" from the main swf called "basetest.swf"So, on basetest.swf I have this code, simply loading test.swf:

var request2:URLRequest = new URLRequest("test.swf");
var loader:Loader = new Loader()
loader.load(request2);

[code].....

View 4 Replies

ActionScript 2.0 :: External SWF - Controlling Main Timeline

Mar 21, 2009

I'm having a bit of time getting this to work.
Setup like this: Main mov:
Nav1 is clicked and loads in external swf. In the swf that was just loaded there is button to call another external swf on the main movie's timeline. I'm trying make a "lightbox" effect. Where you click on the external swf and the screen darkens and a swf is loaded on top of it. Above the loaded swf. Of course on a new layer.

PHP Code:
This is handling the swfs that get loaded in
EXTERNAL SWF LOADER
_root.page_mc.preloader_mc._visible = false;
_root.page_mc.preloaderText_txt._visible = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[Code] .....

View 9 Replies

ActionScript 3.0 :: Accessing Main Timeline From An External .swf

Apr 29, 2010

I'm definitely more designer than flash developer (as most of you might know. At least those that hang in the lounge or Arena). I need to know how to allow a loaded .swf file to control the main timeline in AS3.

I have a container .swf that includes global controls (jump menu/volume control) and branding. Loading a swf for the dialogue boxes (timeline animated ... although I realize there may be better ways to handle it). Another swf for a simcity-ish illustration that has animated elements with various states. I need all to be able to communicate with each other. I was able to load the movies no problem. Even communicate with the loaded ones from the main timeline. Just need to be able to go the other way.

View 2 Replies

ActionScript 3.0 :: External Swfs Not Removing From 2nd Timeline

Feb 25, 2010

Here is what i am doing:maintimeline 1:frame 2 I have loaded 1 external swf  A and 2 textfields.on 2nd timeline (which is on  submenu navbar_mc) i am loading a different external swf and want to remove external swf A and textfields that are showing from the main timeline.[code]...

View 4 Replies

Actionscript 3 :: External Swf To Communicate With Its Own Timeline After Loading It Into A Containing Swf?

Feb 23, 2010

I have created a online portfolio that loads in External swfs. Everything works fine on its own but once the external swf is loaded into the containing swf I lose control of the external swfs timeline. Is this a bug or is there just something I am forgetting

[Code]..

So when I click the send button it sends the message, but does not go to the next frame. It works on its own but won't work once loaded into another swf.

View 1 Replies

ActionScript 2.0 :: External Swf To Control Main Timeline?

Feb 9, 2009

I apologise because I know this has been covered but none of the code I've found seems to have sorted my problem.On my main timeline (_level0 right?) I have the following code:

var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("container2",2);
container2._x=28

[code]......

View 9 Replies

ActionScript 3.0 :: Using External Text To Move In Timeline?

Oct 13, 2009

I'm using external text files in a flash project. I have them linking out to external websites fine. My question is, can I use external text to jump to another spot in my flash timeline?[code]

View 0 Replies

ActionScript 3.0 :: Load Movie From External Swf Timeline?

Oct 22, 2009

I have a main movie (let's call it Movie 1) with a menu in it. Through that menu you can load several external movies into a container (lets call them Movie 2 and Movie 3).What i want to do is this:When i load Movie 2 into the container in Movie 1 at some point of the timeline of Movie 2 there is an actionscript that tells to load Movie 3 in the container of Movie 1.

View 1 Replies

ActionScript 2.0 :: Control Timeline Within External Swfs?

Feb 15, 2010

I'm having a few issues controlling the timeline within an externally loaded swf.

View 0 Replies

ActionScript 3.0 :: Linking External SWF To Main Timeline?

Feb 27, 2012

keyframe one - dialogue / conversation with characters ( then a button is triggered to call an external swf [placed at keyframe two] )keyframe two - the external swf game. i want to put a button that makes you go back to the main timeline once you're done with the game and proceed to keyframe three (that's the problem. i dont know how to declare and make that button work)keyframe three - dialogue / conversation again .

keyframeone [main timeline]

Code:
...
memory_t.addEventListener(MouseEvent.CLICK, recalltraining)
function recalltraining(e:MouseEvent):void{
gotoAndStop(2)

[code]....

View 0 Replies

ActionScript 2.0 :: Control External Swf From Main Timeline?

Oct 26, 2005

I have a external SWF loading into a target on my main swf. Is there a way to control the timeline from the loaded movie from the main timeline. So , control B timeline from A. I've tried mcholder.gotoAndPlay (2); but it won't work. Also, how can I get the mumbers of frames from the external swf into the main timeline. Will a global variable work?

View 1 Replies

ActionScript 2.0 :: Reference Main Timeline From External Swf

Dec 13, 2006

im trying to tell my main movie to goto a certain movieclip in the timeline from my loaded external swf heres the code Im working with,[code]I can tell the script is executing because the external movieclip unloads itself but the main movie does nothing.

View 1 Replies

ActionScript 3.0 :: Access Main Timeline From External Swf?

Jul 16, 2007

my main application is a sprite heres my code:

package {
import flash.display.Sprite;
import flash.display.Loader;
import flash.events.Event;

[code]...

when my main app is a MovieClip (extends MovieClip) is working.but my main app is a sprite i take this message cannot convert ROOT@16b26df1 to flash.display.MovieClip.can i change this line

MovieClip(this.parent.parent).traceMe();

to something like this Sprite(this.parent.parent).traceMe();

View 13 Replies







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