Preloading large FLVs inside of a swf
Hi I have a client that I have developed a trailer for their project. Its a swf and at certain keyframes large videos play, the my listener tells the time line to continue on its path, and eventually hits a new large video.
These videos are not playing very well for the client, when they start typically they stutter.
Client is mad now and I need a solution. I am using actionscript 2.0 . How can I have each flv loadup all the way before it starts playing so it'd be smooth. I was hoping there would be a plugin or something I could buy that would show a loading bar and then have it go.
Any ideas? Thanks in advance, this would be a huge releif if I could get this finished.
Thanks,
John
Thanks so much. One more small thing if you have time. I'm not sure what I'm doing wrong. I don't mean to
monopolize your time.
Here's the code I have but my text field isn't displaying. I was able to play with it a bunch and the best thing I could get to happen was a NAN.
myFlv.play();
myFlv.stop();
myFlv.onEnterFrame = function (){
// display load progress
tf.text=100*flv.bytesLoaded/bytesTotal+"% Loaded";
if(myFlv.bytesLoaded>0&&myFlv.bytesLoaded>=myFlv.bytesTotal){
delete myFlv.onEnterFrame;
myFlv.play();
here's a link to the fla I'm pretty sure I have the text field set up correctly.
Again. You rock. Thanks!
http://www.thedenebianempire.com/flash/bytesTest.zip
Similar Messages
-
Embedding a .flv inside of a SWF?
1.) Why would you want to embed a .flv inside of a SWF?
2.) Do you need to do this if you want to place small video
clips inside
of a SWF?
Thanks.1.) Why would you want to embed a .flv inside of a SWF?
2.) Do you need to do this if you want to place small video
clips inside
of a SWF?
Thanks. -
Using Flash MX, ActionScript 2:
I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content). I’ve done countless tutorials, and none seem to work on my presentation. I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have). It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely. During the initial wait time, there’s no indication that anything is happening: no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds.
I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly. I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0. Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf. Is this true?
Thanks for any assistance you can offer.If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
to the for loop if you know how to get a page-loaded request into JavaScript.
But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities. In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage. You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
-markerline
P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside. You can then use CSS to control placement of the SWF object if it is in a div tag. -
Working with preloader and FLV files
I am able to get the Flash preloader working with say an image like JPG but when I attempt to have the preloader load a video it doesn't work. I read that in order to use a FLV file it needs to be embedded into a SWF file so preloader can work with it. One issue with embedding the FLV file into the SWF is the sound does not match up with video after that conversion which can kinda be fixed by changing the FPS.
Needless to say I have not been able to get this working correctly. I am not sure if there is a work around for this issue.
Thanks for all the help out there.Here is my code
var imageURL:String = "vid12.SWF";
var request:URLRequest = new URLRequest(imageURL);
uiLoader.scaleContent = true;
uiLoader.load(request);
progressBar.source = uiLoader;
progressBar.addEventListener(ProgressEvent.PROGRESS, progressHandler);
progressBar.addEventListener(Event.COMPLETE, completeHandler);
function progressHandler (event:ProgressEvent):void {
status_txt.text = int(event.currentTarget.percentComplete) + " %";
function completeHandler (event:Event):void {
progressBar.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
progressBar.removeEventListener(Event.COMPLETE, completeHandler);
removeChild(progressBar);
status_txt.text = ""; -
I have a movie (SWF) playing and while it is playing at one
point it will start playing an FLV.
Before I get to the point of playing the FLV.. while the
earlier part of the SWF is going I would like to be preloading the
FLV in the background. The problem is I cannot seem to locate
anything in the documentation for how to do this.. everything seems
to point to happening after the netstream.play() has been called
the actual loading takes place... i want to load the FLV before
getting to the play() command (so its preloading in the
background). Can anyone help? *I am using actionscript 3.0*
Thanks!You could use a URLLoader. See the example in the help docs.
-
AS2 SWF loaded inside a AS3 SWF
Hi,
In a recent project I had to load a FlashPaper2 document
inside a SWF implemented in AS3. I read a couple of articles about
Darron
Shcall's article and
FlashInterface
but none of them seemed to be useful in my case.
I needed to load a FlashPaper SWF inside a AS3 and couldn't
rely on ExternalInterface since they were not two separate SWF's.
To be more clear, I was using the Loader class via a Sprite to load
the FlashPaper SWF.
Anyways, I created FlashPaperLoader.SWF implemented in AS2
which was used to load the FlashPaper SWF. This loader was able to
communicate with the FlashPaper APIs (AS2). As you can guess, the
AS3 SWF was used to load the FlashPaperLoader.swf.
What I don't understand is how come the FlashPaperLoader the
FlashPaper document SWFs can communicate with each other thru AS2
function calls when they are loaded inside a AS3 SWF, I thought
that due to VM differences, no communication is possible!
I hope I was clear, if I was, any guru insight is really
appreciated.
Cheers.Thanks kglad,
But you still haven't answered my question. I am not looking
for solutions, my own solution works. I wanted to understand more
about the VM's.
AS3
var request:URLRequest = new
URLRequest("./FlashPaperLoader.swf");
var loader:Loader = new Loader();
loader.load(request);
AS2
var loader:MovieClipLoader = new MovieClipLoader();
loader.loadClip("./FlashPaperDoc.swf", fpContainer);
// the loader SWF used IFlashPaper APIs to communicate with
the FlashPaper SWF.
Now, the first part (AS3), all that code is interpreted by
VM2. Once an AS2 SWF is loaded a
AVM1Movie
is created and no direct communication between AS3 and AS2 is
possible. I am curious to know how come the two AS2 SWFs can
communicate with each other while inside the VM2 space. -
How can I get Firefox to store the larger FLV Files in Cache ?
I use Cache Viewer Revisited to save cache files & for some reason larger FLV Files won`t store in the FireFox Cache...
Even under "about cache" Large FLV Files show as 0 in sizeYou can try to check if the video is being fully stored by using a stand-alone cache viewer. eg. [http://nirsoft.net/utils/video_cache_view.html VideoCacheView]
Please note that this is an unknown application. Many security software may flag the site or the software as suspicious. There could be many similar applications. -
Revealing a larger image inside of a shape?
Using CS5, I want to take a shape, and to place larger images inside of the shape so that the only part of the larger image that is revealed is the part showing through the shape. I understand the Drawing Inside Mode, though I already have the larger artwork done, so it will not work with that drawing mode.
1. Is the name of the smaller shape the "mask" that will be masking the larger artwork?
2. How can I use the smaller shape to now hide the larger artwork except the part that will be revealed through the inside of the shape.
Thanks.http://layersmagazine.com/clipping-masks-in-illustrator-cs5.html
-
Where do large FLV files go on Mac OS Lion
Where do large FLV video files get stored on Mac OS, Mountain Lion?
Firefox stores small FLV video files (less than 10 minute long) under /Library/Application Support/Firefox/Profiles/<user's profilename>/Cache, but it does not store larger ones (longer than 10 minutes). I also increased the cache maximum limit to 350 MB and I still have the same problem.
Where those larger FLV video file go?
Please help!FLV files are usually streamed and played by a dedicated Flash media player.<br />
Streamed files are usually not stored in the Firefox disk cache, but more likely in the memory cache and only that last downloaded chunk may be present.
It is best to use an extension if you want a copy of such a media file.
*https://addons.mozilla.org/en-US/firefox/search/?q=video%20Downloader -
Flash CS4/AS3 - How to use a preloader with FLVs?
Somehow I've had a really hard time finding a straightforward forum answer or tutorial for this--maybe someone can help?
I have an SWF file that references/loads an external FLV file (www.44designs.com/promo_video.php), but since the FLV file is about 9MB and can take time to load on a slower connection, I think a preloader (something simple like "LOADING...100%") would be a good idea as the FLV loads.
Anyone have a simple way to do this?? I've had no success in finding what I need--just scripts for loading SWFs. You can see an example of this on www.44designs.com where a preloader script I've got seems to be referencing the SWF (thus loading almost immediately) instead of the much larger external FLV. Make sense? I'm not super AS3 savvy, but I can follow logic and cut and pasteGreat info, thanks for the post!
-
Preload and flv doesn't work on Firefox
Hello,
We've created this interactive for a Cd-rom. Now we are
trying to implement it to internet and are facing some problems.
We were testing it in Internet Explorer and all works well.
But the client in testing it in Firefox 2.0.0.3 and in fact
the preloads are skipped and the videos don't load.
The videos are loaded into an FLVPlayback from a external
folder. I'm using Flash 8.
You may take a look at it in here:
http://www.laserretadecallus.com/index_new.html
Or, if the client decides to put it active on-line, here:
http://www.laserretadecallus.com
Help!!
Thanks.
Valdemarlet me try to explain a little better the structure.
The first "intro" video loads fine, but once you go inside,
choosing "Catalán" or "Castellano" there are more videos
located on the right side of the screen.
The "intro" video is located in a folder, let's say
rootServer/flv/videoIntro.flv, and is loaded using the *.swf that
is located in the main rootServer/parcsud.swf.
But the other videos are loaded using other *.swf's that are
located in a folder rootServer/swf/moviex.swf and are calling the
videos from this same folder;: rootServer/flv/videox.flv
If we put the videos directly into the root of the server
(rootServer/videox.flv ; rootServer/videoy.flv ; etc...) they all
load. If we keep them into this flv folder they don't load.
Is it normal that mozilla doesn't accept this kind of paths?
I hope I'm explaining it well. -
HOW TO TURN A .FLV FILE INTO AN SWF IN ADOBE?
Questions,,,,,
1. In a flash slide,,,,,How do I add effects to the movie,
like an intro black curtain coming up from the top and closing down
on the bottom,,,,,,to make it look more
professional?,,,,,,,,,,,like this video-SUMMER NIGHTS-
http://music.yahoo.com/ar-289037-videos--Lil-Rob
2. How do I convert .flv files to swf files so I can upload
them to my site,,,,,because thats all it excepts?Peace,
I will try to answer both questions. You abviously know how
to creat an .FLV file. when you load you files on the server you
must place the .SWF and the .FLV in the same folder. With that you
will create your link to the .SWF file.
In regards to the other issue. I am incline to think that
what you see is a video effect and not a Flash one. If I where to
try this I would upload my video into the time line and add a new
layor to hold my effect. This should do it. But it will of course
make you .SWF larger than if you did the effect in a video editing
program.
I hope I helped some how.
Peace
Khnumtemu -
FLV embedded in a SWF file, does not play in HTML file.
Hi,
I embedded a FLV file into flash movie clip, which on publish plays well on SWF file, but when the same is embedded in HTML, it does not play.
What is it i'm missing ..
Kindly help.
Regards
ShashiFirst, clarify this... are you embedding the .flv into the time line, as in:
The .FLV file is imported on the timeline of a movie clip.
I embedded the .flv file,
If you are in fact embedding the video, then there is no external video file... it's embedded into the timeline.
If you are using the FLVPlayback component and an external vid file to display the video and the .swf when testing plays the video just fine but not on the HTML Web page:
SWF plays external video file, as soon as I embed SWF in HTML, it no longer playes the external video file.
then it's most likely a pathing problem.
If you are placing the .swf on a Web page and the .swf and/or the .flv file are not both in the same folder as the Web page.... then the .swf should NOT work when you test it directly! That's because it should be pathed to play from the Web page and not the location of the .swf.
For your review:
Almost always when it works on the local machine and not the server, it's a pathing problem.
You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location. So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
Best wishes,
Eye for Video
www.cidigitalmedia.com
Best of luck,
Adninjastrator -
Issue seeking & scrubbing through a very large FLV
BACKGROUND
I am working with a flash developer on a project where we
need to playback, scrub and seek through a 2 hour video. The
developer is controlling a locally stored 3.3 GB FLV file using the
netstream command. The FLV specs are: 640x480x29.97FPS encoded w/
key frames every 12 frames to support ½ second seek accuracy.
PROBLEMS
It feels like the there is some caching mechanism fighting
against our seek performance past the first few minutes of the
video.
1) The first time we seek to any point past the first few
minutes there is a long one-time delay. If we go to the 30 minute
mark, it takes 10-15 seconds to cue the video. However, after that
one delay, subsequent seeks from 0-30 minutes are immediate.
2) If we seek or scrub past ~5300 seconds, go back to the
start and then try to go past the 5300 mark the seek delay happens
again. So after "warming the movie up" we can quickly seek through
the first half until we attempt to pass the magic 5300 second mark.
I could live with problem #1 but #2 is a deal breaker. Here
are some more data points:
TESTS
1) SMALLER FLV: If I compress the movie to 2.75 GB I can seek
further in before running into the above problem (6300 seconds)
2) LARGER BUFFER: Setting a large pre-load buffer solved the
performance issues but there is no way we have enough RAM to
preload the entire video. (We tried and it crashed).
3) MEMORY OBSERVATIONS: When we seeked to 30 minutes, we did
NOT notice a jump in memory usage while waiting for the video to
cue.
Does anyone have any ideas on this one? My gut is telling me
that Flash is building some kind of time code lookup table on the
fly and it is arbitrarily limited in size.
peteThat's a tough one. Acrobat is not designed for tiling PDF files to create another PDF. That's really what you're asking. There is the option to PRINT to a PDF, and turn on the Poster feature. If were in Windows where there is a real Adobe PDF printer driver, you could probably use that feature. But for various reasons (too complicated to describe here), that was withdrawn on the Macintosh.
If you have a copy of Adobe InDesign, and if you installed an Adobe PDF 9 PPD file (see description below), it could be done in a somewhat awkward way. InDesign allows you to place PDF files so you would need to make a page of the proper size and place your large PDF:
Then after installing the Adobe PDF 9 PPD file, you could choose File > Print. Then choose to print a PostScript file to the Adobe PDF 9.0 PPD file. In the Setup panel, you'd choose a Letter size page. Then you'd choose the Tile option at the bottom and set the Overlap amount:
Then you'd save the PostScript file and process through Distiller.
My blog post below describes how to find and install the Adobe PDF 9.0 PPD file:
http://indesignsecrets.com/creating-postscript-files-in-snow-leopard-for-older-print-workf lows.php -
Preload full FLV file with a preloading elements
I have a client that would like for the full flv movie to be preloaded to the end before it starts to play also they would like to some sort of preloader.
I can do this with a normal swf however I don't know where to begin with something like this.
I would like to use the FLVPlayback component if possible.
Thanks for any suggestions or help,
ChrisI don't know that you can connect more than a single iPod at one time to a computer. I seem to recall you can not.
As to preloading the video, if you set each Nano to manual updating, then the video will stay on the iPod when they plug it in. But if they change their setting for the Nano to Auto, it will then be removed.
How big is the video? One option is to ALSO load it into the drive portion of the iPod (when you set to Manual or set to Enable Disk mode) the Nano will show up as a drive on your computer. You can load any files in there you want like any other computer drive. If the clients change their iPod to auto updating, the version on the "player" section (the playable on the iPod part) will be removed, but the video would still exist in the Nano on the drive area. They could move it from the drive of the Nano and populate it into their own iTunes library if they wanted to sync the video back to the "player" part of the iPod to view on the iPod.
Patrick
Maybe you are looking for
-
we have several iphones in the family and want to share music. do we need to have everyone on same account?
-
After installing Lion, my iomega ex. hard drive no longer recognized for time machine
Is all my back up gone? Lion does not see the iomega external hard drive. No more automatic backup? How can I restore to Leopard if Lion doesn't recogize the Iomega?
-
After upgrading to IOS 8 several things on my iPhone 5 stop working, like safari, maps, mail, messages. When you go in on these apps they only shut down. How can i fix this?
-
Safari flash player problem! Pls Help!
Hi, the issue is that if i'm loading a website with a flash player my safari shows me this: "The page "Electronica / Dance - mp3spy - download mp3" has content of MIME type "application/x-shockwave-flash", but you don't have a plug-in installed for t
-
I have a new PC and would like to transfer my old premiere elements on my brand new computer. Can I do this or do I have to pay for a new program all over again?