Need Preloader for FLVplayback Component

Hi,
I'm playing external .flv videos using the 'FLVplayback'
component. My client's complaining that they stall and stutter a
bit when they start to stream, and wants to know if I can create a
preloader for them.
Can anyone help or point me in the right direction to create
preloaders for this component? Since the .flv is not on the
timeline, I don't know where to begin. I found some info on this in
the Flash Help files, but it's a little over my head.
Thanks very much

Hey metrov,
ActionScripting is the way to go for this situation. Try this
link (hope it helps)...
http://www.actionscript.org/forums/showthread.php3?t=105158
Jaythan

Similar Messages

  • Need Preloader for Multiple SWF files

    SORRY FOR THE DUPE POST, THE OTHER CAN BE DELETED. MY ADOBE
    ID PROFILES WERE MESSED UP.
    Hi forums, I'm new to Flash. I did the following:
    1. Created a complex home page, about 3.5MB in size, due to a
    large graphic I had to use many times over and couldn't make into a
    symbol (long story). It's called INDEX.SWF, with accompanying
    INDEX.HTML file from Flash
    2. Split pieces of the INDEX.SWF file into multiple SWF files
    to make it load faster
    3. Created multiple layers in INDEX.SWF using loadMovieNum to
    call to multiple SWF files from step 2
    This works OK, but I think a preloader would optimize my page
    animation. However:
    1. I don't understand how a preloader file gets recognized on
    the site load. If I create a file called PRELOADER.FLA and publish
    it, how does the site know to use it first? Does it need a special
    name?
    2. Once I understand #1 above, I might be able to use some
    sample preloader files I've found. It seems like all I have to do
    is change the actionscript to point to my main file, but not sure
    yet. I'll get to that next once I understand how the file even gets
    recognized and loaded. Thanks for your help!

    PLEASE DELETE THIS POST AND USE NEWER ONE FROM
    MOUSEHOUSESITE, I APOLOGIZE FOR DUPE POST DUE TO MESSED UP ADOBE
    ID.

  • Need help for adding component

    i have 2 class, the first one is Workspace.java, the other one is BannerBox.java,
    in my BannerBox.java, the code is look like this:
    public class BannerBox extends JPanel{
         private JLabel bannerLabel;
         public BannerBox(){
              setLayout( new GridBagLayout());
              bannerLabel = new JLabel();
              bannerLabel.setIcon(SparkRes.getImageIcon("TEST_IMAGE"));
              bannerLabel.setHorizontalAlignment(JLabel.LEFT);
              add(bannerLabel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 2, 2, 2), 0, 0));
              setBorder(BorderFactory.createLineBorder(new Color(197, 213, 230), 1));
    in my Workspace.java i've tried to add the bannerbox into workspace
    and my code is looks like this:
    public class Workspace extends JPanel implements PacketListener {
    private BannerBox bannerBox;
    private Workspace(){
    add(bannerBox, new GridBagConstraints(0, 3, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(2, 4, 4, 4), 0, 0));
    There is no error, so i can run it, but the bannerbox is not showed up... hmm, what should i do?
    is there some mistake that make this code doesn't work?
    (actually this class has a long code, but i can't put it all here, it very long code, and workspace.java is not my code so i barely understand the code but i need to add the label which contain image to this workspace)
    need help here.. i'm stuck..
    thx before
    ralese

    1) In the future, Swing related questions should be posted in the Swing forum (after searching to make sure it hasn't been asked before)
    2) Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
    3) Learn how to use other layout manager before using the GridBagLayout. All the others are much easier to understand
    4) Read the Swing tutorial on [How to Use Icons|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for a working example.
    5) If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.

  • FLVPlayback Component for AIR & IOS

    Hello,
    I have referenced this and other forums several times in regards to this question, but would like to canvas it myself here once more in hopes of any new or additional insights that were absent before.
    I am developing an AIR application that uses a long (45min) video as a centerpiece. It necessarily (I think) needs to be applied with the FLVPlayback component because it is both masked by menu and playback controls, and has a large variety of interactive content layered on top of the full-screen (more or less) video.  As of now, the video is encoded in FLV, and works fairly well, but I do have some lingering performance issues, which I am asking help with here today.
    I have read that using FLV in iOS apps is not advised, but for the reasons listed above I most likely will have to do so. I don't think I can use the other options (stagevideo, or otherwise) due to the layering of content above the video, and an irregular mask. I have placed the video in the main directory of the app package (which made all the difference), used GPU, and tweaked the encoding ad nauseam. While all-in-all it has resulted in "okay" performance, I still have a slight but noticeable skip/hiccup/jump in the video during the more graphically intense portions of the production. This only occurs on the iPhone 4/s devices, while the iPhone 5 experience is flawless.
    So I am asking for ANY help/suggestions anyone could offer towards a possible solution/improvement to this problem. I would be grateful for any other setting, encoding, file structure, or alternate suggestions that I have not thought of or addressed.
    Thank you.

    Hi Freelance77,
    The product team would like to know the steps to reproduce this issue. After that, we can try solving it for you. Do let us know.
    Thanks,
    Preran

  • Is Action Script for netStreaming and FLVPlayback component radically different, not interchangeabl?

    Hi.
    I am using NetConnection and NetStream to play back flv in Flash Pro CS5.5, and trying to add cue point to trigger events using Action Script, and to automatically rewind to the start at the end. There is no problem to trigger events via AS when the cue points are embedded, but i am unable to add cue points using AS.
    When i use an FLVPlayback component, there is no problem to add cue points (http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html) and to loop the playback using autoRewind (and fl.video.VideoEvent.AUTO_REWOUND which i got from Nafem at http://forums.adobe.com/thread/857036).
    However, i am failing to use this same code w/a netConnection and netStream, and would appreciate any help.
    thanks.

    Hello,
    Well, I've got some help from another helpful fellow at macscripter.net and I have a working script - albeit a bit more specific (ie, hardcoded extensions to look for) and a different approach.
    Here's the script:
    on adding folder items to thisFolder after receiving addedItems
    repeat with movieFile in addedItems
    set {Nm, Ex} to getName_andExtension(movieFile)
    set movieFilePath to (thisFolder as text) & Nm & ".avi"
    set subtitleFile to (thisFolder as text) & Nm & ".srt"
    if Ex is ".srt" then
    try
    tell application "iFlicks"
    import (movieFilePath as alias) with gui
    end tell
    end try
    else if Ex is ".avi" then
    if my FinderItemExists(subtitleFile) then
    try
    tell application "iFlicks"
    import (movieFilePath as alias) with gui
    end tell
    end try
    end if
    end if
    end repeat
    end adding folder items to
    on getName_andExtension(F)
    set F to F as Unicode text
    set {name:Nm, name extension:Ex} to info for file F without size
    if Ex is missing value then set Ex to ""
    if Ex is not "" then
    set Nm to text 1 thru ((count Nm) - (count Ex) - 1) of Nm
    set Ex to "." & Ex
    end if
    return {Nm, Ex}
    end getName_andExtension
    on FinderItemExists(thePath)
    try
    set thePath to thePath as alias
    on error
    return false
    end try
    return true
    end FinderItemExists

  • I need a preloader for my website

    Hi Experts.
    Can someone point me to good tutorials and/or instruction videos that solve the following problem?
    I am building a website that will have many images and several movies created in my CAD software as ".avi" files, then re-saved as Quicktime ".mov" files.  The largest movie is 60.8KB.  They will be located on more than one page on the site.
    Here's a link to the site in progress: http://www.integra-living.com/rht
    I need a preloader that runs automatically as my site splash page opens, and loads all that stuff while displaying a progress indicator of some sort.
    I also need tips on whether the best strategy is to use CSS, Action Script, or some other coding that will work for most browsers and does not subvert optimization or do other mysterious bad things.
    Thanks very much for any help.
    Richard Talbott

    Unless I'm misunderstanding what you're trying to do, you don't need a preloaded for embed movies.  The page will load without any delay.  It's not until the user chooses to play a movie will it begin downloading / streaming it from the server.  Even if the video is a large file, internet users are use to this type of scenario where they choose to play a movie, ala youtube and others, that if their connections are slow there may be delays in video playback.  With all that said, I have seen and used page loaders where visitors will be expecting to wait a while for a result to happen, I just don't think this scenario warrants it.

  • Need free preloader for flash

    Need some free simple preloader for my flash banner or animation.
    Thank's
    Michel

    [Have a look here.|http://web.mac.com/wyodor/iFrame>
    Click the Flash page. You can download the neccessary code

  • Need to stop playback of an FLVPlayback component when navigate away from page!

    I have an movieclip playing as auto start on the first page of my website.  The component continues to play when I navigate away from the page.  How can I stop the playback of the movie if it has not completed when navigation away from the page is invoked.  I have search and am unable to find such an event using an FLVPlayback component.  Presently there is no code in actionscript to display here.
    thanks

    Hi, this is the entire code that is placed on the timeline in frame 1 of the AS line.  There is now an error and the FLVPlayer component, which is also begin in frame 1. At this point there is one method that I thought should work when the vTinesDayBtn is clicked.  However, is not.
    The error is:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at ewddSite_fla::MainTimeline/vTines()
    ArgumentError: Error #1063: Argument count mismatch on ewddSite_fla::MainTimeline/stoppedVid(). Expected 0, got 1.
    The code is:
    stop();
    import flash.events.*;
    import flash.display.*;
    import fl.video.*;
    import fl.video.FLVPlayback;
    function stoppedVid() {
      vidPlay.stop();
    vTinesDayBtn.addEventListener(MouseEvent.CLICK, stoppedVid)
    function vTines(evt:MouseEvent):void {
    gotoAndStop(20);
    vidPlay.stop();
    function engagements(evt:MouseEvent):void {
    gotoAndStop(25);
    function weddings(evt:MouseEvent):void {
    gotoAndStop(30);
    function births(evt:MouseEvent):void {
    gotoAndStop(35);
    function birthdays(evt:MouseEvent):void {
    gotoAndStop(40);
    function graduations(evt:MouseEvent):void {
    gotoAndStop(45);
    function anniversaries(evt:MouseEvent):void {
    gotoAndStop(50);
    function specEvents(evt:MouseEvent):void {
    gotoAndStop(55);
    function memorials(evt:MouseEvent):void {
    gotoAndStop(60);
    //main.addEventListener(MouseEvent.MOUSE_DOWN, mainPg);
    vTinesDayBtn.addEventListener(MouseEvent.MOUSE_DOWN, vTines);
    engageBtn.addEventListener(MouseEvent.MOUSE_DOWN, engagements);
    weddingsBtn.addEventListener(MouseEvent.MOUSE_DOWN, weddings);
    birthsBtn.addEventListener(MouseEvent.MOUSE_DOWN, births);
    bDaysBtn.addEventListener(MouseEvent.MOUSE_DOWN, birthdays);
    graduBtn.addEventListener(MouseEvent.MOUSE_DOWN, graduations);
    annivBtn.addEventListener(MouseEvent.MOUSE_DOWN, anniversaries);
    spEventsBtn.addEventListener(MouseEvent.MOUSE_DOWN, specEvents);
    memorialsBtn.addEventListener(MouseEvent.MOUSE_DOWN, memorials);

  • FLVPlayback Component fails to call FLV source

    I have a progressive download FLV set up using the
    FLVPlayback Component which has cue points embeded. Everything
    plays back correctly locally or over a network. But once the files
    are deployed to the web the link to the FLV is broken. The Activity
    in Safari reports that the FLV file is not found, when it clearly
    is in the directory as it should be.
    Is there any reason to use Netconn and NetStream with this
    setup, or should this work as is? Any ideas how to cure this. I was
    up all night trying to reach a deadline for today (Tuesday) and I
    banging my head on my desk at this point.
    The link can be tested here...
    http://dev.binaryinteractive.com/transcepta/MultimediaTour/demo.html
    cheers
    mm66

    I am sad to say that is one element I could never figure out.
    The FLV is external and it buffers, so I am not sure it actually
    needs to be preloaded (or can be). The workaround is to hide the
    FLVPLayback component by making it invisible. Make sure it is not
    set to autoplay. Set the video content path early and the video
    will load into the hidden component. Then when you want the user to
    see the video you make it visible and start it playing, as it is
    sitting there pre-buffered and ready to go.
    Hope that makes sense.
    Here are some discussions and nobody seems to have it figured
    out:
    http://www.gotoandlearn.com/forum/viewtopic.php?t=4891
    http://www.gotoandlearn.com/forum/viewtopic.php?t=1264
    http://www.gotoandlearn.com/forum/viewtopic.php?t=1376
    You may need to sign up there to view these files. That forum
    is really good for FLV related issues.

  • Opening .mp4 files using flvplayback component 2.5 in Air 3.2

    I've publishing the package using the extended desktop profile and captive runtime.
    When I run the published .exe file from a hard disk (either on my local machine or other test machines) it works fine, so I know that I have my code at least partially correct.
    I'm accessing the .mp4 files from a subdirectory of the applicationDirectory (eg: app:/video), the file names are read in from a .xml file.
    Example structure:
    exampleVideoSource = File.applicationDirectory.url+"video/12-16/attacking when in balance/counterattacking 2.mp4"
    Is this likely to confuse the FLVplayback component, if so what's the best way to get a working path?
    Thanks,
    Dan

    Discovered the issue.
    For mounted drives you need to use the nativePath property.
    For cross platform applications you can simply replace() the delimiter with the .separator property.
    Also for some reason the skin wouldn't load, despite the fact that I had chosen it in the component selector.
    I ended up setting the myFLVplayback.skin property just before I added the component to the stage.
    On  a related note, does anyone know if there's a difference between publishing an app with included folders, and simply publishing the app and adding the folders to the .app directory after the .app folder has been published?
    Dan

  • Targeting an FLVplayback component within a nested movie element

    I'm trying to get my own buttons to load FLV movies into the FLVplayback component. I've got it to work in a simple test but need help making it work on a more complex level. The test is here http://lawrencejonespromoprince.com/testvideo.html
    I've named the FLVplayback instance 'my_video'
    The simple buttons have this script in the actions:
    on (release) {
          my_video.load("videonamehere.flv");
          my_video.autoPlay=true;
    This all works great as long as the buttons and the FLVplayback component are on the same frame on the same page. But for the actual use, i need it to work where the buttons are on a nested page within another movie element. So the nest looks like this:
    Scene1   Nestmovie1   Nestmovie2   Nestmovie3
    ...where the FLVplayback component is in Nestmovie2 and the buttons are in Nestmovie3.
    The nesting was needed so the buttons are on a separate slider panel so i can scroll through the list of movies.
    See the actual flash site in progress here http://lawrencejonespromoprince.com/index2.html
    and the movie list (not done) will be on the 30 Promos page.
    So now the question is, how can i target the FLVplayback instance within a nested movie.
    Thanks

    You should be able to use _root references to get back to the main timeline to target the flv player
    on (release) {
          _root.nestedMovie1.my_video.load("videonamehere.flv");
          _root.nestedMovie1.my_video.autoPlay=true;

  • FLVPlayback component connection

    I would like to specify my own NetConnection instance for
    FLVPlayback connection to Flash media Server 2. Is this possible,
    perhaps by using the FLVPlayback.ncMgr property?
    Thanks in advance as this is really stalling development of
    my application, which uses multiple instances of FLVPlayback over
    multiple pages... therefore I really need just one NetConnection to
    FMS2.
    Please note that I'm looking into the FLVPlayback component
    as a more robust player inplace of my NetStream setup.
    I really am stuck on this and need some help.

    apologies, but in the code above gives these errors:
    Scene 1, Layer 'Scripts', Frame 1, Line 105 1061: Call to a possibly undefined method toString through a reference with static type fl.video:VideoError.          (line 105 is :  trace("3 - VideoError: " + e.toString());)
    Scene 1, Layer 'Scripts', Frame 1, Line 108 1061: Call to a possibly undefined method toString through a reference with static type fl.video:VideoError.          (line 108 is :  trace("3 - VideoError: " + e.toString());)
    Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.                                                                     (line 96 is: V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);)
    The issue seems to be in the VideoError listener, even leaving just something like:
              V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed);
              function sourceFailed (e:VideoError):void     { trace ("VideoError") }
    Still gives the eror: Scene 1, Layer 'Scripts', Frame 1, Line 96 1067: Implicit coercion of a value of type uint to an unrelated type String.

  • FLVPlayback Component + HTML5

    For a HTML5 Canvas project I'm in need to use imported FLV videos (green screen w/ alpha channel), with the goal to publish it highly compatible on the web. As the FLVPlayback Component is not supported in HTML5 projects, is there some possible workaround to achieve what I want with Adobe's software? If not, could I get briefed how this could be done with other programs/techniques?

    While there have been 'workarounds' in the past, the answer is ultimately that codecs that support this are limited and unreliable. You'll need to use a <canvas> trick to really pull this off which involves separating your alpha channel into its own video, then using an invisible canvas to process the video based on the alpha channels (reading pixel by pixel to determine what opacity percentage to draw of every single pixel). Some people use a specific color in the video as the channel (for instance if you just needed red text, then use a different background color as the alpha). You then draw that to a visible canvas after calculated. It's very unideal but there's no "best way" to do this currently, outside Flash.
    A quick search will show you the techniques I'm talking about but none of them are drag and drop approaches to the problem. They require JavaScript, proper types of video and a bunch of processing.

  • Controlling the FLVplayback component Volume

    Hi there,
    I have a FLVPlayback component which I have modified to the
    core.There is one problem with the volume slider. Im using Flash
    Professional 8 with XP, and the skin Im using is
    "steelExternalAll". Suppose I load some file into the contentPath,
    it plays, and I drag the volume slider up (100%) and down(0%) for a
    couple of time I get a bug. The bug is that when Im finally in the
    down state, with 0% I still hear the sound which was in the
    previous status, say 38 or 50%. And it happens in the reverse too.
    Why is this happening? Can i resolve it?
    I tried doing this using a fresh FLASH file, still the result
    is the same. It happens once in a 10 times, but this surely is a
    defect i need to handle. I dont think I have enough API's to do
    something serious. Can anyone help me out?

    Hi kglad,
    Greetings. Felt so glad when I saw your reply saying that the
    problem was with the skinning, because I did one hell of a
    skinning. But I had a crosscheck. I tool a sample
    "steelExternalAll" skin, just like it is in the component panel,
    and just added a contentPath. Simple. I checked for the volume
    slider problem, and there it was.
    I can find the problem in the normal unmodified skin. This is
    the same problem I face. Can this be solved. There is no other code
    piece Im using other than the one given below.
    Thanks a lot for your kind patience.

  • How to play recorded videos using FLVPlayback component?

    Hey Guys,
         I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find something
    useful, I tried this code :
         flvplayback.source = "rtmp://localhost/appname/instancename/video";
         this code is not working. Am i doing it wrong or something? Can anyone please point me on the right direction!
        Thanks in advance!
    Randy

    You may like to use this tutorial for your purpose:
    http://en.wikibooks.org/wiki/Beginner's_Guide_to_Adobe_Flash/Video/Using_The_FLVPlayback_C omponent
    Here, in the content path you need to put your URL, also make sure that the instance name exist and provide the FLV extension in the url.
    Hope that will help you.

Maybe you are looking for