ActionScript 3.0 :: How To Play Multifiles Seamlessly

Jul 27, 2010

I use the following code to play 2 files continuously.

ActionScript Code:
import fl.video.*;
my_FLVPlybk.source = "1.flv";

[code]...

But they can't be played like a single file. There is a big jitter between these 2 files. How to elimit this jitter?

View 0 Replies


Similar Posts:


Html :: Getting Videos To Play Seamlessly On A Webpage?

Oct 30, 2010

I have a mov file that's 157 megabytes. I try running it on my page within a javascript scroller animation and the animation is very choppy and in fact I used css to simulate a mask but the thing doesn't get masked, probably do to the sluggishness of whole page, the page never fully loads, and the movie file makes it nearly impossible to scroll through the page. The file is just too huge. I currently have it embedded as such:

<a href="#">
<object class="im" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="286" width="655">
<param name="src" value="why_eating_dry_fruit_is_unhealthy.MOV">

[code]....

1) Should I convert the mov to swf - that is, is swf a more compatible and appropriate format for seamless integration in html web page?

2) Whichever I choose, how do I reduce the file size - like on youtube where the videos run seamlessly? I plan on using javascript to scroll through a gallery of videos, so I need the videos to not bog down the page.

3) Also, a lot of sites with galleries of videos have an icon that indicates "click to play". Is that part of the video itself or can I just create an image and then when clicked on, the video plays?

I do have Adobe Flash CS4 Professional, if that matters. And if mov file is more suitable, then how can I reduce its file size?

View 1 Replies

Flash :: Play Audio Seamlessly Like Nike While Reloading Each Page?

Sep 1, 2009

How do you play the audio seamlessly in flash, while reloading each page? Example is the nike blog, [URL] Will be glad if anyone could point me to a tutorial or there is a existing workaround script for this.

View 3 Replies

Professional :: Audio Won't Loop Seamlessly

Dec 30, 2010

I have an MP3 of helicopter blades that's about 4 seconds.  I put this as a layer in my movie of the helicopter, yet the sound "hesitates" when the movie loops. The audio goes from edge to edge of every frame of the movie, yet I still get the hesitation. 

View 6 Replies

Flash :: FLVPlayback Component Won't Seamlessly Loop

May 19, 2010

Everything I've tried so far with a FLVPlayback component to seemlessly loop a progressively-downloaded 15 second video has failed. There's always a split-second pause when it's time to loop. For the scenario, embedding video in a flash project is not an option, and the split-second pause is unacceptable. I've tried setting autorewind to true and handling autorewind event fired by FLVplayback. I've tried watching the playhead of the flvplayer for when It gets upwards of 99.5 percent done and seeking to 0. My latest solution involves having two VideoPlayer instances with the same source behind the FLVPlayback component and toggling between them when it's time to loop, and there is still a seem between the end and beginning. I've tested the video in quicktime to make sure it's not an artifact of the video.

View 1 Replies

ActionScript 2.0 :: Flash Can't Really Loop Mp3s Seamlessly

Nov 17, 2004

so Macromedia says Flash can't really loop mp3s seamlessly, and suggests importing WAV files. But if you're using AS to load an external sound at runtime, this is not possible. So I ask you, coding geniuses, is there a work-around to the silence that Flash adds to the beginning (end?) of an mp3 file, thus causing it to loop incorrectly (I've already tried adding a decimal to the secondsOffset and it sounds awful).

View 2 Replies

ActionScript 2.0 :: Make A Sound Loop Seamlessly?

Feb 14, 2005

So I got a loop that I'm loading into Flash with the Sound object. The sound loads good and it starts playing but when it loops back to the beginning there's some silence and then it loops again. The sound loops fine in a sound editing program, the only problem is that Flash leaves a gap when its going to start again. Anyone has come up with a solution to make a sound loop seamlessly?

[Code]...

View 4 Replies

ActionScript 3.0 :: Seamlessly Queuing Audio In MovieClips

Mar 3, 2010

So I'm currently charged with making a karaoke-style app which displays lyrics on-screen synced with an audio track. I'd prefer not to have one massive timeline for each track so I've cut the audio into sections (verses & choruses) and put each one on the timeline of separate MovieClips so I can sync the lyrics manually.

I store each MC in an array in my MainPlayer class, which listens for an Event dispatched from the last frame of each MC, removes it and then adds the next one and runs its play() method. There's an audible gap in between which at first thought might be due to using .mp3s so I switched to .wavs and it's still there.

View 1 Replies

ActionScript 2.0 :: How To Make Sound Looping Seamlessly

Feb 14, 2005

I got a loop that I'm loading into Flash with the Sound object. The sound loads good and it starts playing but when it loops back to the beginning there's some silence and then it loops again. The sound loops fine in a sound editing program, the only problem is that Flash leaves a gap when its going to start again. How to make a sound loop seamlessly?

This is my code:
loadMusic = function() {
loop = new Sound();
loop.loadSound("lomtrack.mp3", false);
} loadMusic();
playMusic = function() {
loop.start(0, 100);
} playmusic();

View 4 Replies

Flash :: Professional - Videos - Get 4 FLV To Seamlessly Run From One To Another Without The End User Having To Click A Button?

Mar 16, 2010

how to get 4 FLV to seamlessly run from one to another without the end user having to click a button?

View 4 Replies

ActionScript 2.0 :: Looping MP3s Seamlessly Unless Mute Button Clicked?

Apr 24, 2004

I'm using some modified code from a chapter exercise (from a text book) to play four separate MP3s external to the FLA. Here's an example of what happens when a button is clicked:

Code:
BtnOne.onRelease = function():Void {
stopAllSounds();
song1=new Sound();
song1.loadSound("Music/Puffy.mp3", true);
gotoAndPlay("music1");

On the label 'music1', I have this AS:
Code:
stop();
song1.onSoundComplete = function() {
song1.start();
}

The problem is, there's something of a noticeable stutter when the MP3 reaches the end, just before it starts up again. The first MP3 (contrary to the others), is a seamless ambient sound which ought to sound perfect in the FLA, but doesn't, again, because of the slight stutter in starting it up again. Is there a better way to do this? I thought, perhaps, this would be fixed if I removed the "stop();" line and instead had it play the next frame, which would invariably send it back to the previous one, but this changed nothing. Is there a better method to use? Even with the other three MP3s, which aren't seamless, I want to loop, unless and until the user clicks the 'Mute' button.

View 2 Replies

ActionScript 2.0 :: Seamlessly Present Multiple Flash Video Clips?

May 27, 2008

I'm having trouble getting a decent system running for playing multiple independent flv movies in a container clip using the flv component back-to-back. I guess what I'm looking for is tips or examples of creating the video equivalent of a slide show - with options to skip next, previous and go to a specific clip.

Basically, at the heart of it, I'm just setting flvcomponent.play(newcontentpath) via actionscript. But that causes a skip of about 0.5s while flash switches gears and begins the next clip.

Does anyone have any tips on achieving good transitions in actionscript2? More generally and tips on dealing with video via actionscript .

View 1 Replies

ActionScript 2.0 :: Matching CSS Background - Get The Htm Repeated Image To Seamlessly Blend Into Swf File

Oct 22, 2004

I've just joined if you haven't noticed and wanted to express my admiration for all the skills on these pages and links. Much inspiration has already been delt on my humbled mind. Visit the file in question here

1) on this dude's site, Beyond the Pixel, he/she's got the style sheet repeating a trend gif. I created one myself and have got it working on my htm file. Problem is, I want to be able to get the htm repeated image to seamlessly blend into my swf file. How did BTP do it? I assume I need to estimate the pixel distance (the repeated gif I'm using is 5x5 pixels) then absolute place the swf file using proper css placement code. Then I'd just start that same gif in flash on the movie's edge and repeat it across the movie (x and y). I think I'm right on the former, but feel that I'm being to simplistic in the latter.

2) I followed this tutorial on preloaders. Got it to work, even managed to get it to load vertically and change the size of the loadBar. Problem, and it may not be on true publishing, but when I test the movie, the preloader does its deal but right before it goes to frame 3 to display a ND picture, a little green box pops up in the upper left of the frame. It does this every time. I'm using Flash MX '04 on a G5.

View 3 Replies

ActionScript 2.0 :: Create A Movie With Buttons That Load External Movies And Works Seamlessly?

Nov 18, 2007

i used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.

my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..

View 4 Replies

ActionScript 3.0 :: Play Multiple Videos (all On Xml File) To Play On Button Action?

Jul 14, 2011

I am trying to make a swf with one FLV playback player and 6 buttons. I've got 6 different videofiles that I want to have linked to this swf. Some of the videos are quit large.When starting the Swf, the first video has to start, after playing it, it has to stop. Then you must be able to choose which video to play by clicking one of the buttons. I don't want to have small thumbnails of the video, just plain and simple buttons.I have to have all my files, both fla, swf and xml files in the same directory (I cannot have them stored in different folders, since I have to upload this to a cms system which has limited upload properties).
 
I've tried to find the right script on the internet, I'm not very good at scripting myselve, actually rather poor educated there.It seems to me that I have to make an xml file with a list of all my videos, I have my default swf ready, with a FLVplayback and buttons.Now there's just the coding part....

View 1 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 :: Movie Clip Play, Stop And Play On Mouse Event?

Sep 1, 2010

I want a movie clip (let's call it homecontent_MC) with 100 frames play to frame 80 and stop.Then when someone clicks a button on the navigation bar (home, about, services, contact, etc...) homecontent_MC would then begin playing from it's position (frame 80) til it reaches 100, at which point it wouldn't be on screen, and the movie clip that corresponds to the navigation button press (say services_MC...) would start from frame 1 and continue til it stops at it's frame 80...

View 7 Replies

Media Server :: Stream.play (live_from_FMLE, -1, 4500, True) Got No NetStream.Play.Start?

Nov 5, 2010

I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".

On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.

With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:

info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.

View 3 Replies

Professional :: Can't Play Pogo's New Daily Hot Shots Game But Other Flash Games Play Fine?

Jan 22, 2011

I play games on Pogo and have never had a problem with their Flash Games until released Daily Hot Shots.  It doesn't load fully and I've done EVERYTHING I know to do to get it to play.  No errors show up.  I can play ALL the other flash games but this one.  When I right click, the name of the site's owners do not show up....I have the settings showing though Not all of the game loads and that's the problem.  I've tried uninstalling and reinstalling....tried a different browser and have the same exact problem.  THIS GAME WILL NOT PLAY.

View 2 Replies

ActionScript 1/2 :: Button Sounds In Play Scenes But Not In Play Movie

Oct 11, 2009

I have five different scenes all including three different buttons. When I test the buttons in "play scene" - all buttons sounds correctly in all scenes. But when I play movie, there is sound only with one button (the same button in every scene). I have looked for differences, but this button seem to have all the same parameters as the others.

View 10 Replies

ActionScript 1/2 :: Makes Scene To Play When Called For And Not Play Automatically

Nov 7, 2009

So this is my code so far:
 
on (press) { // Gives your movie a button functionsgetUrl("http://www.astahost.com");}
on (rollOver) {this._alpha=100;gotoAndPlay("Scene 2"); }

[Code]....

when i play the movie, it plays scene 2, however, scene 2, which is in my flash document, plays automatically. how can i stop this? is there some code which only makes scene 2 play when called for and not play automatically.

View 1 Replies

Professional :: Play At Full Screen When Play .swf Files Using Web Browser

Jan 14, 2010

So i've made my .swf files. The only thing is they all play at full screen when i play them using my web browser. I need them to play at 548 x 408. when i open the .fla and go to properties it says the size IS at 548 x 410 but it can't be if its playing full screen.

View 2 Replies

ActionScript 3.0 :: Nested Movies To Play Consecutively With Play Pause?

Mar 8, 2010

I have several products I want to animate with graphics and text individualy then stack them on a time line for output with play and pause buttons. Is there a tutorial somwhere that shows you how to do this? and how do I stop the entire animation on a frame, I don't understand "not_set_yet"

View 4 Replies

ActionScript 2.0 :: Rollover Play Forward, Rollout Play Backward?

Jul 29, 2008

simple one this, or so i thought! basically, i want a mc to play from start to finish (11 frames) upon rollover and upon rollout i want it to play backwards to the first frame. Accurately.

ActionScript Code:
on (rollOver) {
if (activ.currentFrame <= 11)
{

[Code]....

Currently i JUST goes to the next frame. So i need something like currentFrame +1 or something?

View 7 Replies

ActionScript 2.0 :: CS3 - Modify From Just Play To Play/stop (toggle)?

Sep 21, 2009

I have modified the original to include more head shots accompanied by audio clips. I have worked out the playing of the clips on release. I realize now that people may not want to listen to entire clip. Each mug shot serves as the button to hear the person talk. I do not know how to modify the button code for it to be a toggle. I guess it would need to be some kind of "play if, stop if" The only part of concern is loading playing the the audio, no changes need to be made to the rollover functionality.

mugWidth = 60; //change these if you change the size of your mugshots
mugHeight = 60; //change to your mugshot height
//instantiate sound and textformat classes

[code]....

View 2 Replies

ActionScript 2.0 :: CS4 Play Check For Key / Play At End Execute Action

Apr 6, 2011

Root timeline: keyframe 1, keyframe 2, etc...

-keyframe 1 has a MC "frist MC"
-keyframe 2 has a MC "second MC", etc.
-the MCs are all duplicates containing different animation, but have the same AS inside them.

The construction of the MC is:Play intro animation -> Stop and wait for key stroke. If key is "space" set variable value to 1, if else set variable value to 0, then continue to play next frame. -> Complete the animation till the last frame.In the last frame check what is the value of the variable to check which key was been hit. If it was a space (var =1) go to root and play current frame +1 (go forward), Else, go to root and play current frame -1 (go back)Its a kind of slideshow.so heres the code in the middle, after the intro animation was played:[code] The problem with var reverse is, it works well in the first frame, its beign filled with value depending on what key is being hit, But in the last frame, when the time comes to check the value, trace says its "undefined".I have tried setting up a _global.variablename = reverse and it works in both frames (the check at the end is succesful, it detects the given value), but still the last frame only plays the currentframe -1 as if always executing the "else" command, no matter what the value of var reverse is.

View 1 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 2.0 :: Release Play Frame Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 2.0 :: On Release, Play Frame, Then Play Movie?

Jul 23, 2004

I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).

View 1 Replies

ActionScript 3.0 :: Play An Mp3 File Using NetStream.play?

Mar 23, 2010

I have a "movie player" that plays flv files using the code below (videoToPlay is the name of the file to play and is just a string). I want to use the same setup to play an mp3 file also.I tried using mySound = new Sound(); and then mySound.attachNetStream(ns);, but it gives me this error: 1061: Call to a possibly undefined method attachNetStream through a reference with static type flash.media:Sound.

View 5 Replies







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