Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Can You Synchronize Two Swf's?



i have two banners on a page that i want to operate together to create something in sync. any way to have one swf trigger another to play at the same time. even better, a way to keep them synced in the event that one is a slagger



Ultrashock Forums > Flash > Flash Professional
Posted on: 2005-05-07


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Synchronize
what is the best way to make the audio and animation synchronize to each other esp. with the machine that uses a modem? http://www15.brinkster.com/jonsalad/test.html

I use streaming mp3. Thanks!

p.s. apologize for having the url changed!

Synchronize Two Movies
Hello

I am using Flash MX 2004
I want to synchronize two external swf files. Fist I load the movie and then I load the music for the movie.
The movie is playing while the sound is loading.
After the music finish loading, I want to synchronize the music along with the movie.
So let’s say that the movie is on frame 100 I want the music to start playing on frame 100.
If you have any ideas, please help.

Synchronize Function?
Hi,

is the a way to tell flash to wait until finish execute a function of a class that i wrote before continue running the script?
like synchronize in Java?
if events are the only solution the how do i do that?
thanks ....

Synchronize Audio
I need to synchronize audio with some changing images.

I have audio on the time line now but I understand there is a way to have cuepoints in a loaded audio file trigger events on the stage.

Any ideas?

Thanks in advance

Synchronize Symbols
When do you use "synchronize symbols" option? What is it for?

Synchronize 2 Movies
I have a fla with two movies, one in SWF and the other one in FLV, that I load externally. Unfortanetely they are tricky to synchronize as they lag when playing at the same time. First I tried to embed them but then they went even slower. Someone who has any suggestions and tricks to make them run simultaneously?

/Andreas

How To Synchronize Arrays
i need help on this one, my brain stopped working (:

how to synchronize 2 arrays? let's say I have squares and circles with numbers, like (c1, c2, c3....) and (s2, s4, s3, s1....). I need to make new array that will sort one array based on other... they don't have to have same number of items, if that's the case only things that are in smaller array have to be sync.ed...

i've tried this:

ActionScript Code:
for (var i:int = 0; i < first.length; i++) {  for (var j:int = 0; j < second.length; j++) {    if (first[i].number != second[j].number) {      temp.push(second.shift());      second.push(temp.pop());    } else {      newArray.push(second[j]);    }  }}

but i have a problem when number of items isn't same in first and second array...

in my application im loading objects with xml properties. I made 2 arrays, one with display objects- items are added as they load, the other array (with xml properties of each object) is created in loop when i make loaders... So, i don't know when my object will finish loading and I already have xml array. I have to synchronize them as my objects load, since I want to be able to access properties of even one loaded object...

As2 (or As3) Synchronize Two Swf Files
Hi
I’m making two web banner commercials where a bottle is supposed to fall from one banner to the other. The two files are separate and I don’t think I can communicate between them. I need a quick solution to make the animation start at the same time in both files (if one file is loaded quicker than the other). Is this possible? I’ve seen commercials where this has been done, but I don’t know how they did it. I use as2 but if you have a solution in as3 its no problem.

Synchronize Symbols
When do you use "synchronize symbols" option? What is it for?

About Synchronize Symbols
Does anybody know what the "synchronize symbols" function does? It's driving me crazy.

Thanks in advance, Gustav

Synchronize Sound
I have a .swf that is moving a lot of fairly detailed vector illustrations around the stage with actionscript. On slower machines it is lagging slightly, but not so much that I am really concerned about it...the problem is that there is music that goes with the movie (which I've placed in a m.c. and put on the stage) that seems to run at the same rate on all machines, which means that it is finishing before my movie does on the slower computers. Is there any way to synchronize the music with the movie...and would that mean that the music sounds like it's running slow? Thanks for any help.
Derek

Video Doesn't Synchronize
Just wondering if anyone has seen the same problem that I've seen with flash and importing video

I've imported a Quicktime .mov file, 320x240, 24 frames per second. My flash movie, however is at 120 frames per second. I have the "synchronize video to flash frame rate" checkbox checked.

When I publish my movie, the video is not synchronized with the sound! So I tried it again, but instead had my flash movie at 24 frames per second. There was no problem with synchronization problems.

What does this mean? If I have my movie at 120 frames per second, then I can't have video at different frame rates imported? Am I missing a setting?

How Do I Synchronize Two Duplicated Mc's Without Glitches?
Hi,

I've got two mc's that are suppose to be playing simultaneously. Both duplicate mc's are called "Cloud Motion Tween" and there is one on the main timeline that has a brightness of -55 and the other duplicate of that mc is inside a mask in a mc called "Nav Bar (About)". Both mc's are suppose to be in sync.

Now every time I rollover the "Nav Hit Panel" button the mc inside the mask starts all over again and stuffs up the synchronization of the two mc's.

I have attached the fla file. You'll see what I mean.

Thank you so much for you valued time and effort. You are a true champ!!! (Whoever you are)

Blastbum

I Need A Script To Synchronize Two Movies
Hi,

I want to be able to be in a scene where there's a movie clip playing back and forth and to be able to click on a button that will take me to another scene that has the same clip there, but without the clip having to start all over again.

In other words, I want to be able to click from one duplicated movie to another one with the playhead to land in the same frame number as where the playhead left off with the first movie.

Any help will be greatly appreciated.

Thank you and LOVE YOUR WORK!!

Blastbum

I Need A Script To Synchronize Two Movies
Hi,

I want to be able to be in a scene where there's a movie clip playing back and forth and to be able to click on a button that will take me to another scene that has the same clip there, but without the clip having to start all over again.

In other words, I want to be able to click from one duplicated movie to another one with the playhead to land in the same frame number as where the playhead left off with the first movie.

Any help will be greatly appreciated.

Thank you and LOVE YOUR WORK!!

Blastbum

I Need A Script To Synchronize Two Movies
Hi,

I want to be able to be in a scene where there's a movie clip playing back and forth and to be able to click on a button that will take me to another scene that has the same clip there, but without the clip having to start all over again.

In other words, I want to be able to click from one duplicated movie to another one with the playhead to land in the same frame number as where the playhead left off with the first movie.

Any help will be greatly appreciated.

Thank you and LOVE YOUR WORK!!

Blastbum

PLEASE I Need A Script To Synchronize A Mc Between Scenes
Hi,

I've got a mc called "Cloud Motion Tween" in two scenes. When I click a button to go across to the other scene, the mc jerks because the mc on the second scene plays from the start. How do I get the mc to be smooth and consistant between the two scenes?

I've attached the file. The "yellow" frame is "About Us" (even though on the About Us page the yellow frame is "home") and the "red" frame is "Our Product" (even though on the Our Product page the red frame is "home").

You'll see what I mean.

If somebody is feeling extremely generous (and sympathetic), if you could download the attachment and fix it and repost it, that would make all my dreams come true!!

THANKS HEAPS!!!!!

Blastbum

How Do I Synchronize Animation With Voice Over
hi, i'm designing a presentation with animation and a voice over. i need the animation to be in time with the voice over. is there a way i can quicken or slow down the animation for it to occur at the same time as the voice over. please help as i've been trying to get it to work for the past 2 days. thanks

Synchronize Audio And Flash?
Hello,


I am working on a small animation for a client, and it is very important that the audio and the animations be in perfect synch!! I made sure to set the tweens up with the audio, BUT when played on the net, its WAYYYY off( What is the best way to setup my flash so the animations run perfectly with the audio???

please helppp!!!

thnx
sean

Synchronize Music With Lyric
hi,
I am new to flash i'm creating ecards in flash mx can any one teach me or suggest me any tutorial how can i synchronize music with lyric. i am looking for compelete tutorial.

thanks

How To Synchronize Streamed FLV With Preloaded SWF?
Hi there,

The following Macromedia url:

http://www.macromedia.com/devnet/mx/...eo_primer.html

shows a "sophisticated example of a web page containing Flash Video synchronized to text and graphics". This is precisely what I am trying to achieve. I'm doing this by:
Preloading the SWF with the "text and graphics" animations (anim.swf) into an empty movieclip (instance name: anim_mc).
Attempting first NetConnect to Flash Communications Server 1.5 in order to check bandwidth. If this is successful, then I proceed to the next step.
NetConnect to another application with the desired FLV video (video.flv) and immediately NetStream (instance name: video_ns) to empty embedded video object.
Synchronize anim_mc with video_ns.

All this works well till step four. I first attempted this by simply checking the video_ns.time variable whenever the status of the NetStream changed and then making sure the anim_mc gotoAndStop'd or gotoAndPlay'd to the same timecode where video_ns.time was - this didnt work because streaming didn’t always play at the 12 fps but rather fluctuated so much that by the end of the 71 seconds (that’s how long the video is) there was usually 1-3 second offsets in the synchronization. What I ended up doing is probably very processor intensive but accurate (or so I thought!):

I had already setup an interval that checked video_ns.time and video_ns.bufferLength to make sure the bar with the controls refreshed the position of the playback and loading. I set this for every 500 milliseconds. I reduced this to 1000/12 milliseconds so that it played approximately every time there was a frame change and added this line of code into the intervaled function:


ActionScript Code:
anim_mc.gotoAndStop(Math.round(video_ns.time*12))

so the anim_mc is actually never playing - its following the pace of the stream 12 times per second and each of these stopping its own playback till the next 1/12th of the second. It's not a very elegant solution to my problem but it worked.

Then, I realized that when I paused and the resumed the video on certain lower bandwidth version of my stream it restarts the video all over again but doesn’t restart the timecode (video_ns.time, that is) so since I coordinate the current frame in the mediaclip with the timecode then it become all very out of synch. It is very odd because I use the video_ns.pause(false) command to resume and not video_ns.seek(0) nor video_ns.play(“video”,0). I found it had to do with the lack of timely key frames within the FLV file itself due to lower bandwidth nature - a setting I wasn’t aware of in my Sorenson compressing software when I generated those files in the first place. I reduced the key frame separation to 30 frames and that problem was solved.

Another more serious problem came up when I finally ran the main SWF (that is, the one that streams video.flv and synchronizes it to anim.swf) in the localhost instead of testing it from with Flash. BTW, the other two components: video.flv and anim.swf were already working from a remote server and streaming/preloading into the main SWF correctly. Anyway, to make this story short, the main SWF doesn’t synch the other two components correctly when working from http://localhost (up to 5 second offsets) but synchs when working from file://... In this case, it shouldn't make a difference. Right?

In any case, I can’t trust my code anymore because I need some real tried and tested answers rather than the outcome of my trial and error. I was going to use the VideoPlayback components but I haven’t found any tutorials on how to: 1) synchronize it with other animations and text 2) skin it (not nearly as important as number 1).

I am getting very frustrated . How can I effectively synchronize? I would greatly appreciate any answers. Thanks.

Preloading And Synchronize Flv Play
I have 3 flv files that I would like to start playing at the same time. It doesn't matter if they are completely preloaded, just as long as they start at the same time. Does anyone have any ideas of how this could be done? How to synchronize the playback of multiple flv's in a flash file?

I have attempted a preloader but the flv file which is loaded starts and I'm unable to get the flv to pause before the other file is finished loading. So the files start playing at different times, which isn't what I want. The Netstream stop/pause doesn't seem to work, does anyone have any advice or maybe other solutions?

thanks!

Synchronize Multiple Flv Files
Can anyone give me an idea of how I could set up some code that could synchronize 3 flv files? I would like these three flv files to play back on my website at the same time. So far, one will load and start playing while the other 2 will still be loading.

any ideas?

How To Make The Music Synchronize
i have a litt le bit of a problem.. i can't make my music synchronize
to the text... in this case the synchronizesation depends on witch internetspeed you have..

i want the music to start in the firt frame and not depending on the internet speed..

in this case i have made a karaoke.. you can taka a look at it on www.jennifereskola.com and then klick on the link nÖjen....
and then karaoke...

i hope someone can help me
/ Fredrik

How To Make The Music Synchronize
i have a litt le bit of a problem.. i can't make my music synchronize
to the text... in this case the synchronizesation depends on witch internetspeed you have..

i want the music to start in the firt frame and not depending on the internet speed..

in this case i have made a karaoke.. you can taka a look at it on www.jennifereskola.com and then klick on the link nÖjen....
and then karaoke...

i hope someone can help me
/ Fredrik

Synchronize A Sound In Flash
Hi guys, i´m a newbie, i really need to know, how can i synchronyze a sound in a flash movie.

I already have an animation, but i want to add a sound who synchronize with the total time of my movie.

Thanks,

Synchronize SOUND Files With Actionscript
1. I want to make a person that talks to the user.

2. The person is moving its lips while talking.

3. I want to upload the soundfiles by using a Content Management Tool (xml) so big companies can easily use it.

4. They should be able to be give the .mp3 or .wav file, and upload it on the live-site.

5. Therefore the flash animation must not be playing longer than the sound file's lenght - otherwise the guy keeps moving his lips but the sound file has already stopped.

7. I dont want to edit the flash file everytime we use another sound file. Just shorten its lenght.

8. Is it possible to make the flash script analyze the sound file - and if there's a silence - the animation stops - and if there's a soundwave it starts for example "talking animation 2"?

6. how the hell do i do this??

any comments / ideas highly apreciated!


sirus

How Do I Synchronize A Duplicated Movie In A Button?
Hi,

I trying to get a smooth synchronized transition between two copies of a movie (a simple animated tween) I've placed on two frames within a button. The first movie I placed on the "over" frame within a button and a copy of the movie placed on the "release" frame (the movie placed on the "release" frame has a 30% brightness effect on it) within the same button.

Now, when I test the button it works fine when I roll the mouse over the button, but when I click on it, the movie I placed on the "release" frame plays from the start of the tween as a separate movie and causes the transition from the "over" frame to the "release" frame to be disjointed. I'm trying to get the button to work as a synchronized single movie, so when I click on the button it goes 30% brighter without the tween animation (movie) being disjointed. I hope I'm making sense!

Anybody bold enough to take this one on is a true champ!

I'm using Flash 5.

Blastbum

How Do I Synchronize A Duplicated Movie In A Button?
Hi,

I trying to get a smooth synchronized transition between two copies of a movie (a simple animated tween) I've placed on two frames within a button. The first movie I placed on the "over" frame within a button and a copy of the movie placed on the "release" frame (the movie placed on the "release" frame has a 30% brightness effect on it) within the same button.

Now, when I test the button it works fine when I roll the mouse over the button, but when I click on it, the movie I placed on the "release" frame plays from the start of the tween as a separate movie and causes the transition from the "over" frame to the "release" frame to be disjointed. I'm trying to get the button to work as a synchronized single movie, so when I click on the button it goes 30% brighter without the tween animation (movie) being disjointed. I hope I'm making sense!

Anybody bold enough to take this one on is a true champ!

I'm using Flash 5.

Blastbum

How Do I Synchronize A Duplicated Movie In A Button?
Hi,

I trying to get a smooth synchronized transition between two copies of a movie (a simple animated tween) I've placed on two frames within a button. The first movie I placed on the "over" frame within a button and a copy of the movie placed on the "release" frame (the movie placed on the "release" frame has a 30% brightness effect on it) within the same button.

Now, when I test the button it works fine when I roll the mouse over the button, but when I click on it, the movie I placed on the "release" frame plays from the start of the tween as a separate movie and causes the transition from the "over" frame to the "release" frame to be disjointed. I'm trying to get the button to work as a synchronized single movie, so when I click on the button it goes 30% brighter without the tween animation (movie) being disjointed. I hope I'm making sense!

Anybody bold enough to take this one on is a true champ!

I'm using Flash 5.

Blastbum

How Do I Synchronize A Duplicated Movie In A Button?
Hi,

I trying to get a smooth synchronized transition between two copies of a movie (a simple animated tween) I've placed on two frames within a button. The first movie I placed on the "over" frame within a button and a copy of the movie placed on the "release" frame (the movie placed on the "release" frame has a 30% brightness effect on it) within the same button.

Now, when I test the button it works fine when I roll the mouse over the button, but when I click on it, the movie I placed on the "release" frame plays from the start of the tween as a separate movie and causes the transition from the "over" frame to the "release" frame to be disjointed. I'm trying to get the button to work as a synchronized single movie, so when I click on the button it goes 30% brighter without the tween animation (movie) being disjointed. I hope I'm making sense!

Anybody bold enough to take this one on is a true champ!

Please find attached, a sample of the button I'm talking about.

I'm using Flash 5.

LOVE YOUR WORK!!!

Blastbum

I Need A Script To Synchronize A Movie In Two Different Scenes
Hi,

I've got a mc in two scenes called "Cloud Motion Tween". When I click a button to go across to the other scene, the mc jerks because the mc on the second scene plays from the start. I need a script to get the mc to be smooth and consistant between the two scenes.

I've attached the file. The "yellow" frame is "About Us" (even though on the About Us page the yellow frame is "home") and the "red" frame is "Our Product" (even though on the Our Product page the red frame is "home").

You'll see what I mean.

THANKS HEAPS!!!!!

Blastbum

How To Synchronize Sound With Animation [renamed]
hi im using flash mx 2004
i wanted to make a guy saying stuff to music, but i cant get the sound and the animation to match up!
can someone please tell me how to do this??

thanks

Synchronize 2 Seperate Flash Files
Hi, I made 1 flash file and had to chop it in half, and I am wondering if anyone can help me synchonize the two parts so that they will play at the same time and look like 1 flash movie... Is there something I can use to make them wait until the page loads before they start playing?...
-otherwise the top one loads and begins playing before the bottom one... very annoying!

ol

Synchronize The Play Of 2 Movie Clips
got a problem which bothers me for days: i launched 2 different movieclip-symbols in 2 consecutive script lines and expected them to play one after another, just like 2 consecutive function calls. but i saw they play in parallel and i don't have any possibility to synchronize them by code. (or do i have one????)
the solution i figured out is to stop the first one and condition the resume with a button pressed in the second one. but how can i sprea the on (release) event? in plain english: how can i tell one movie clip that in the second one i pressed a button? i hope you can understamd what i mean...

Synchronize Slides And Flash Video
I've searched for this, haven't found a good solution. I'd like to play a flash video and have javascript look for where the playback head is (in regard to time, not frames) in the flash video to change the slide image appearing in a div. I'm looking to a javascript solution to make it as easy to configure each time (just set a javascript var to a list of times). Anyone know how this can be done? I know I can reference the frame number using TCurrentFrame(movieObj), but not the time.

**update: I also tried getting the playheadTime value, but I imagine that, since the swf is only one frame for the media player component, that it won't do me much good.

I’m using one of the mediaPlayback component in Flash MX 2004.

Thanks,
Mike

Is It Posible To Synchronize A Real Video With A Scrolling Bar
Has anyone done a "Bar" with MX that controls a real video ?


thx

How To Create Ecard With Synchronize Music With Lyric
hi,


can any one teach me or refer me any tutorial for creating ecards in flash mx i am new to flash . i'm looking for how can i have ecard with synchronize music with lyric. please refer me any easy and compelete tutorial.

thanks

Movie Synchronize Problem + Removed Action Remains
Hello,

at http://ardiendo.org you can find a flash site. Enter the site first to end up with my problem.

You see 2 pairs of 4 buttons each. They all move the exact same way and are synchronized. When I add an action to a button it's done as follows:

there's a movie container in which there are 4 movie buttons. Each movie button consists of a movie, namely the changing form, and a button. The actual button is the text.

when I assign an action to a button at the top all is okay and the movement of the shape behind it stays synchronized with the other shapes.

as for the bottom buttons it's a different story as synchronization stops for that button with the other buttons. No idea what's the difference.

Yet there's another happening that's even more peculiar. When I remove the action assigned to the bottom button, it remains out of synchronized movement with the other shapes. It's as if the .fla contains dirty code that is not removed properly. Anyone got experience with this? Or a solution at least?

Thanks,
Ardiendo

Looking For A Method To Synchronize Data Transfers Or A Programmer To Write It
We have a problem trying to pass messages from Flash to an underlying C++ program.

When attempting to pass these messages we get data transfer errors. This is a fundamental limitation of Flash. For example:

"There is no event in the player to detect when the socket has finished sending a message and on very high speed data transfers (our case qualifies) you can overload the XMLSocket.send method causing the Player to error and overwrite a message being sent out." (Response from Ted Patrick)

We need a program to handle the generalized case of sending any series of messages since the FLASH environment does not have Synchronization Semaphores and/or Blocking function calls.

We also have a problem in handling Error recovery. Flash does NOT have a good way to handle hardware, real-time and/or general errors. We are looking for suggestions or a program to handle that as well.

Thanks you for your interest.

How Do I Synchronize Three Seperate Flash Swfs Which Are In An Html Page?
Hi! - Im having problems synchronizing three swfs which
have all been made at the same frame rate but play at different
times depending on when they load - is there a quick simple
bit of code that will synchronise all 3?


the homepage so far is
http://www.kaifeng.co.uk/kaifengsite.htm

thanks heaps to any kind flashers out there...

How Can I Synchronize My Flash Movie With Imported Video Clips?
Hi there:

I'm working on my first Flash project, and have come across a problem. I created a Flash movie with one scene and a couple of movie clips. I imported a one minute musical bed that is 1,800 frames (I set the movie to 30 frames/sec).

I created some animation and it tested perfectly. I then created a movie clip and imported a short video piece into it (processed at 30 frames/sec).

Now all of a sudden my timing is off. The music ends well before it is suppose to. And, the video clip that I imported seems to be running in slow motion!

The scene still has 1,800 frames; but it seems as if the addition of the video clips has stretched the work somehow.

I assumed that if all the elements were set to 30 frames/sec everything would fit seemlessly.

Any suggestions as to how I can get the imported video clip to run in time with the music???

Thanks in advance.

John

How Can I Synchronize My Flash Movie With Imported Video Clips?
Hi there:

I'm working on my first Flash project, and have come across a problem. I created a Flash movie with one scene and a couple of movie clips. I imported a one minute musical bed that is 1,800 frames (I set the movie to 30 frames/sec).

I created some animation and it tested perfectly. I then created a movie clip and imported a short video piece into it (processed at 30 frames/sec).

Now all of a sudden my timing is off. The music ends well before it is suppose to. And, the video clip that I imported seems to be running in slow motion!

The scene still has 1,800 frames; but it seems as if the addition of the video clips has stretched the work somehow.

I assumed that if all the elements were set to 30 frames/sec everything would fit seemlessly.

Any suggestions as to how I can get the imported video clip to run in time with the music???

Thanks in advance.

John

Synchronize Video Playback With Image Playback
Hey guys, I was wondering how can we synchronize a video playback with an image slideshow, what I would like to achieve is to have the image slideshow playback follow the sequence of a video playlist, so supposing I have item 1(a video) playing I would want the item 1(image) show up for the duration of the video and change to the following image when item 2(video) starts playing.
Any ideas? Should I have one playlist for both videos and images or two seperate playlists, one for video and one for images?

I'm open to suggestions as long as i can get the image playback to follow the video playback.

Thanks in advance.

Copyright © 2005-08 www.BigResource.com, All rights reserved