Preloader for external files

Hi all I have a Director projector and when I click various
buttons this opens external files. Sometimes the external files
takes time to load. How can I create a preloader that the user can
view while the particular external file loads. Any help will be
appreciated.

Hi,
Here's some info (and script) for loading assets from disk:
http://www.lingoworkshop.com/Articles/Preloading_cast_member.php
Basically, for local files, you cannot determine the progress
through a single large asset. The best you can do is monitor your
progress through a list of assets.
Another example that might be of help:
http://www.lingoworkshop.com/Articles/imageslider/Loading_Local_Images.php
-- Luke

Similar Messages

  • Preloader for External file Template question

    I used the CS5 Flash templates>sample files>preloader for external file, to create my preloader.
    The problem is that when the preloader is done and my SWF is loaded, my SWF has already started playing.
    It is an animation that builds for 200 frames then buttons appear. By the time the SWF appears it has already gotten to the button frame.
    Depending on connection speed I have caught the animation building.
    Is there some action script I should put in my preloader or the first frame of my SWF to pause play?
    Here is the preloader action:
    var contentLoader:Loader;
    loadContent("stage002.swf");
    function loadContent(url:String):void {
        contentLoader = new Loader();
        contentLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
        contentLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, contentLoaded);
        contentLoader.load(new URLRequest(url));
    function contentLoaded(evt:Event):void {
        //Optionally change to a clip holder and set progressbar visibility.
        addChild(contentLoader);
    function loading(evt:ProgressEvent):void {
        var loaded:Number = evt.bytesLoaded / evt.bytesTotal;
        setBarProgress(loaded);
    function setBarProgress(value:Number) {
        progressbar.bar.scaleX = value;
    Thanks in advance!

    put a stop() on the first frame of your external swf in an otherwise empty first frame.  when preloading is complete apply a play() to your loader's content cast as a movieclip:
    function contentLoaded(evt:Event):void {
        //Optionally change to a clip holder and set progressbar visibility.
        addChild(contentLoader);
    MovieClip(contentLoader.content).play();

  • Best to load preloader from external file or place it directly into existing movie?

    Is it best to load the preloader from external file or place it directly into an already existing movie?

    there's no one answer for everyone.
    but for an inexperienced coder that's already completed their main project and is adding a preloader as an after-thought, it's usually easiest to create a stand-alone preloader.
    and even for experienced coder's, that's usually the easiest way to preceed.

  • Flash MX Preloader for external JPGs

    Hey all! Any help would be greatly appreciated. In all
    honesty, I have searched and studied and worked to get this myself,
    which I do alot with code, etc. BUT I am going to admit I'm a "make
    it pretty on the outside" kind of guy, and coding makes my eyeballs
    fall out and well, honestly, I just don't get it. My brain can not
    wrap itself around this. Sigh! So I could use your help a little.
    This is what I'm wanting to do. I have a website,
    www.luxeillustrato.com, and if you go to the portfolio area, and
    click on any of the sections (take fine art for example); it will
    showcase my works by loading external jpg files each time you click
    the forward arrow button.
    You can see I have preloaders on the site, that work fine. My
    main page has a movie target with the instance name of photoM. You
    click "artist", and it loads a new swf file into the photoM target.
    IF you click on "portfolio", "fine art", it loads the fine art swf
    file into photoM, using a preloader. THEN, if you click on the
    forward arrow button, a new jpg image of my work is loaded into the
    fine art movie target with the instance name of just
    photo. As you can see, you have to wait until the jpg image
    loads (and you start to wonder if it's doing anything.)
    The problem is, it is not preloading the external jpgs, it's
    just preloading the fine art swf. My preload code is currently:
    stop();
    onEnterFrame = function () {
    totalBytes = _parent.getBytesTotal();
    loadedBytes = _parent.getBytesLoaded();
    percent = Math.ceil((loadedBytes/totalBytes)*100);
    gotoAndStop(percent);
    info_txt.text = percent+" %";
    if (percent>=100) {
    _parent.gotoAndPlay("inter");
    I already have the preload animation bar created (as you can
    see on the site.) What do I need to do to alter the code above (or
    replace it) in order to have the external jpgs be preloaded as
    well? For example's sake, let's just say I have four jpgs, titled
    "door.jpg", "orange.jpg", "boyfriend.jpg", and "untitled.jpg" (in
    case these are needed for the code. They may not be.)
    I hope this is easy to understand. If NOT, just tell me. I'll
    simplify. And seriously, thanks!

    put a stop() on the first frame of your external swf in an otherwise empty first frame.  when preloading is complete apply a play() to your loader's content cast as a movieclip:
    function contentLoaded(evt:Event):void {
        //Optionally change to a clip holder and set progressbar visibility.
        addChild(contentLoader);
    MovieClip(contentLoader.content).play();

  • Using System::StartTime in variable for external file name comes out incorrect sometimes

    Hi All,
    I have an interesting dilemma.  I'm using SQL Server 2005 with Visual Studios 2005 (9.00.4035.00).
    I'm writing records from my database table out to an external flat file, nothing fancy other than in the naming of the file being dynamic and using system time.  So I have a couple of variables set:
    CR_Dir = \\host\directory\
    CR_Outfile = "AP_" +  (DT_WSTR, 4)  YEAR( @[System::StartTime] ) + RIGHT("0" + (DT_WSTR, 2) MONTH(@[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DAY( @[System::StartTime] ),2) + RIGHT("0"
    + (DT_WSTR,2) DATEPART("Hh", @[System::StartTime] ), 2) + RIGHT("0" + (DT_WSTR,2) DATEPART("mi", @[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DATEPART("ss", @[System::StartTime] ),2)
    + "_chref"
    And then in my Connection Manager properties I have an expression that brings them all together with a file extension:
    @[User::CR_Dir] +  @[User::CR_Outfile] + ".ctl"
    So what I should get for example is something like AP_20140309214502_chref.ctl  (if the job was run on 03/09/2014 @ 9:45pm) When executed properly.  I do this for two flat files one with an extension of .txt and the other with .ctl. 
    These steps are working fine the majority of the time.
    However, my problem is that occasionally, the portion of the filename that contains the datetime stamp is completely incorrect for one of the two files that are created during the same time frame.  And I'm not talking about a few seconds or even a minute
    or two, the date is off by weeks.  Here's an example:
    AP_20140309214502_chref.txt
    AP_20140213152253_chref.ctl
    This has happened twice since starting to run this job over the past four months, once on 12/15/2013 and again 03/09/2014.  This job is run every night at 9:45pm, and all the other days that this job runs the two filenames come out perfectly. 
    So I'm leaning towards something in the system that may be corrupting my variable every once in a while?  But because it happens intermittently how can I verify this?  Or is there a better way to perform what I'm trying to do that would be more accurate
    and consistent?
    Any help would be appreciated.
    Thanks
    Sawyer

    Hi All,
    I haven't found a solution to this issue.  I'm not actually able to reproduce it at will, so it's hard to troubleshoot.  What I've decided to do is rewrite my variable expression and make one system call for date and time and place it into
    a variable and then use the variable to build the file name.  Also I changed from using the System::Startime to using the GFETDATE() function (Don't know if this helps but it was easier to use in my substring when I parsed out the different time elements:
    v_DATETIME   STRING   SUBSTRING((DT_STR,30, 1252)GETDATE(), 1, 19)
    CR_Outfile      STRING   "AP_" + SUBSTRING(@[User::v_DateTime],1 ,4 ) + SUBSTRING(@[User::v_DateTime],6 ,2) + SUBSTRING(@[User::v_DateTime],9 ,2) + SUBSTRING(@[User::v_DateTime],12, 2) + (@[User::v_DateTime],15 ,2) + SUBSTRING(@[User::v_DateTime],18,2)
    + "_chref"
    I don't want to leave this thread as unanswered for too long so I'll give it another day or two and then close it.  I'll report back in a few months to let you all know if this problem has reoccurred or not.
    Thanks for the assistance.
    Sawyer

  • Preloader for xml file and stage assets

    I have a Flash app that shows a map with different regions
    colored depending on values in an external xml file. I also have a
    simple preloader that I want to appear until all the elements of
    the app are ready to be displayed. However, when I use the
    preloader, the results are the same as if I hadn't use it. My map
    comes up immediately with no colors, there is a pause, and then the
    colors come in (as calculated from the data in my xml file). Can
    anyone tell me what I'm doing wrong? Do I have to have code in my
    xml loader that tells the user what percent of the file is
    loaded?

    XML files are really small. If that is all you are loading,
    it should happen instantly, or close to it depending on the size.
    Also if you are running it on your local machine, it will load very
    fast unless you simulate the download.
    But incase that is not the issue, your code looks incomplete,
    or just headed down the wrong path. You should be useing a loader
    class that has a series of events associated with it. Events like
    "PROGRESS" and "COMPLETE". These events will fire automatically
    when a file loads, and when a file is done loading. The Enter frame
    event is not meant to handle loading. I would suggest using a class
    like BulkLoader to handle all your loading needs.
    http://code.google.com/p/bulk-loader/

  • Preloader for sound files

    I don't know where to begin this task. I have a program that
    plays mp3 files off of a cast that is on a CD-Rom (The entire
    program must be run from the CD). So before each piece, the CD
    drive has to spin up and load the next piece which makes for this
    great delay. How would I go about showing a little animation (not
    necessarily are real % loaded preloader) while this delay takes
    place? So while the cd is spinning up and the piece is loading the
    user will see something happening rather than thinking something is
    broken. The program plays the pieces in order. So when one is
    finished it moves on to the next, or the user may choose which
    piece to listen to (and watch). Of course, when I run the program
    with files on my hard drive there is no delay, but I don't want the
    user to install anything on his hard drive.
    Any suggestions?

    > I'm experiencing errors, but I don't think the file is
    ever accessed.
    Again, what does the error message say?
    > The one you recommended is only for Mac
    > and I need an Xtra that works on both platforms.
    No, there is a Windows version of the xtra in the archive,
    but you need
    to use Stuffit to uncompress/extract it
    > Here is my .ini file emptyfile.ini
    > [empty]
    > empty=nothing
    >
    > Then in the StartMovie script I have
    > --keeps CD spinning
    > t = timeout().new("CD_Spin_Up", 5000, #mAccessCD, 0)
    >
    > on mAccessCD
    put "accessing CD drive"
    > tList = baReadini("Empty", "Empty", "not", the
    moviePath&"emptyfile.ini" )
    > end
    >
    > How can I tell if this file is being read.
    By examining the result of the 'read' command.
    I have added a line to the handler above. If you can open a
    run-time
    message window (_player.debugPlaybackEnabled = 1) then you
    can examine
    output. If you never see the message "accessing CD drive"
    then the
    handler isn't being called and your problem lies elsewhere.
    Are you sure the #startMovie handler is in a #movie script,
    not a #score
    or #parent script?

  • Preloader for external swf

    first try, changed somethings from previous post, tried to
    make different changes, instead of using if else tried to set an
    onload handler both before and after the loadmovie sentence (not at
    the same time of course), copy paste of what goes on each frame
    (actionscript 1):
    frame 1:
    setProperty("", _focusrect, false);
    Stage.showMenu = false;
    fscommand("showmenu", "false");
    fscommand("allowscale", "true");
    var mensaje = "0 %";
    this.createEmptyMovieClip("pantalla", 0);
    pantalla._x = 0;
    pantalla._y = 0;
    loadMovie("centrino2x.swf", "pantalla");
    frame 2
    mensaje =
    (pantalla.getBytesLoaded()/pantalla.getBytesTotal())*100;
    mensaje = Math.round(mensaje)+" %";
    play();
    frame 3
    if (pantalla.getBytesLoaded()==pantalla.getBytesTotal()) {
    nextFrame();
    } else {
    prevFrame();
    frame 4:
    pantalla.swapDepths(0);
    pantalla.play();
    stop();
    the result: the if else goes right by to next frame, so it
    jumps as if the movie was whole loaded, remaining in last frame as
    a blank screen till the movie loads. the message appears as 100% in
    the half a sec it gets on screen. according to trace, bytes loaded
    and bytes total = 0
    version 2, i nearly copied it from a tutorial linked from
    another post, most of the preloader stuff is nearly exact from the
    tutorial, uses movieloader class (actionscript 2)
    frame 1:
    setProperty("", _focusrect, false);
    Stage.showMenu = false;
    fscommand("showmenu", "false");
    fscommand("allowscale", "true");
    var mensaje = "0 %";
    this.createEmptyMovieClip("pantalla", 0);
    pantalla._x = 0;
    pantalla._y = 0;
    var cargador:MovieClipLoader = new MovieClipLoader();
    var control:Object = new Objetc();
    control.onLoadProgress = function(target, loaded, total) {
    aviso.text = Math.round((loaded/total)*100)+" %";
    control.onLoadInit = function () {
    nextFrame();
    cargador.addListener(control);
    cargador.loadClip("centrino2x.swf", pantalla);
    stop();
    frame 2:
    pantalla.swapDepths(0);
    pantalla.play();
    stop();
    the result: it never changes frame (as if it never finishes
    loading), message giving percentage loaded never appears, and
    traces on event handlers for listener never come out
    i have no idea what %$#"&#" is wrong, i have spend quite
    a time on this, which at first seemed like the easiest part, any
    pointers?

    when first executed pantalla.getBytesLoaded is probably 0 as
    is pantalla.getBytesTotal() causing your problem.
    to remedy, check that pantalla.getBytesLoaded()>0 and that
    pantalla.getBytesLoaded()==pantalla.getBytesTotal().

  • Preloader for external movie

    I have a web site with a main movie that call to an external
    movie.
    My question is what is the action script to put a pre loader
    in the main movie that will show the loading progress of the
    external movie.
    (now the preloader is in the external movie and its take time
    until its showing the preloader and until then the page looks
    empty)
    Thanks in advance.

    Here is a sample I made that uses the progressBar component.
    You could use
    something similar.
    http://www.smithmediafusion.com/blog/?p=31
    Dan Mode
    *Must Read*
    http://www.smithmediafusion.com/blog
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    "mijal2" <[email protected]> wrote in
    message
    news:e2rfub$bbq$[email protected]..
    >I have a web site with a main movie that call to an
    external movie.
    > My question is what is the action script to put a pre
    loader in the main
    > movie
    > that will show the loading progress of the external
    movie.
    > (now the preloader is in the external movie and its take
    time until its
    > showing the preloader and until then the page looks
    empty)
    >
    > Thanks in advance.
    >
    >

  • How to include external files when building installer for a standalone executable?

    Hi,
    I was trying to build a stand alone executable from my Labview project and I was able to do it successfully.  Now I would like to include a few external .txt files in the installer. Those .txt files have parameters/constants that will be used by the program, and my program needs to load/read them when running.  For now I have to manually copy/paste them into the target machine, but I really hope the installer can do it automatically.  I see there is a "data" folder in the installer, and that's where I hope those .txt files can be added into.
    How can I do it? Can anyone give me some suggestions? Thanks!
    Rgds
    Harry
    Solved!
    Go to Solution.

    Norbert,
    I could not find "Add file" when right clicking the project. See attached image please. Under "Project" I do have a "Add to project" but there is no option for external files. I did not find "Source" location either.
    What did i do wrong? Is there any version requirement here? I have a 2010 base version. Thanks for your help.
    Rgds,
    Harry

  • External file hosting for Show and Share

    Hi,
    If I only use FTP server (no external streaming server) for external file hosting, can show and share still play the video? Is there any other limitation beside video editing with this scenario?
    Thanks.

    Hi
    1- If your upload your files locally on your SNS , SNS will be the origin server and will be responsible for "RTMP and HTTP". For External hosting files which is highly recommended by Cisco , you have to use external streaming server and Wowza server or Adobe flash server and this will allow all videos .flv , MP4 , WMV,,etc displayed and without streamin server the videos won't be displayed. I hope to take a look for the below :-
    http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_3/showandshare/admin/guide/filehosts.html
    Thank you
    please rate all useful information

  • Hyperlink in WebI document to open external files

    Hi all,
    I'm creating a WebI 3.0 document in Infoview and would like to know if it is possible to create a hyperlink on a drill down WebI report which will then open external file formats like PDF, TIFF, JPEG or etc. The external files reside outside BOE and they're in another system in DocuFlo.
    If yes, how can we do so? I've tried OpenDoc but got to realize that it doesn't work for external files. Is there a workaround for this?
    Hope my question is not too confusing. Thanks in advance.

    Yes Kuldeep, I could.
    But the situation that I have now is - the object that is carrying the data will open the relevant external document stored on the server.
    e.g. [State] is a dimension in my universe and the data could be US, UK and NY.
    When I activate the drill and click on US, it should open the US document. (http://servername/US.pdf)
    When I click on UK, it should open the UK document (http://servername/UK.pdf)
    My problem now is, when I click on any of the states, it opens the same document (http://servername/US.pdf). I'm running out of idea and solution
    Many many Cheers~

  • Is WebI the best tool for Excel file reporting?

    For many years we use BO/DeskI to produce reports.  The data source was DB2.
    From time to time, the users find the production so user friendly the begin to use DeskI for reports with Excel files for input.
    They create hundreads of reports with the 'Rich client' service.
    Now we are upgrading to WebI and the Rich Client will be on the server.  The BO Service server is a small machine, because of the licences we have.
    We have bigs questions :
    is WebI/Rich Client still a good solution for Reporting for external file like Excel?
    Is this solution will create a ressource problem on the server when more then 100 peoples will connect and use the service?
    Should we limite the external file for the rich client  location on the server (we do not want to install any more software on client computers like with DeskI)?  
    Is a product like Crystal Report a better solution for office reporting (file like Excel, Access, text file, etc)?
    In one word, is WebI the best solution for office reporting or we should go for a product like Crystal (server, ressources and licence limitation)?
    Thanks

    You should not compare Crystal Reports with Web Intelligence. If you were using DeskI then you should go with WebI because that means you are using ad-hoc reporting. WebI is the new DeskI. Crystal Reports is used for other purposes not for Ad-hoc reporting. You use Crystal for pixel perfect reports not for analysis.
    For excel data sources, are you going to use Excel with universe design or directly in WebI?
    If you are going to use it with Universe, then you will have some connection limitations. If more than one user tries to refresh the report based on excel universe, you will get an error.
    On the other hand, if you will use the excel directly in WebI, you cannot refresh the report on InfoView (BIlaunch pad).
    As you mentioned with not installing client tools then your choice will be the first one excel universes.
    Hope this helps.

  • I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    Hi mshields1162,
    Great question, and welcome to Apple Support Communities.
    First, you may want to choose to have the sidebar displayed for familiarity:
    iTunes 11: Frequently used features
    http://support.apple.com/kb/HT5649
    Afterwards, your device should be displayed if connected:
    We'll want to click on it, and choose the Music tab at the top. Let's make sure "Sync Music" is checked:
    Afterwards, you'll have the option to sync either the entire music library (for your first iPod), or "Selected playlists, artists, albums, and genres" (for the secondary device). Upon selecting this option, four larger option boxes will appear allowing you to pick and choose what content will be synced. For audiobooks, you may need to do the above in the "Books" section. For a visual instruction on how to do this, see the following:
    iTunes 10: Sync to your iPod
    http://support.apple.com/kb/VI72
    Thanks,
    Matt M.

  • HT201250 I have two external hard drives. One is my Time Machine backup drive.  The other I use for external storage of files (documents, photos, movies, etc).  Can I set Time Machine to backup BOTH my Mac hard drive and my other external hard drive?

    I have two external hard drives. One is my Time Machine backup drive.  The other I use for external storage of files (documents, photos, movies, etc).  Can I set Time Machine to backup BOTH my Mac hard drive and my other external hard drive?

    Yes you can make multiple backups on one hard drive, for example if you’ve 1TB hard drive installed in your PC and you’ve two Mac Machines with 500GB drive each then you just make two backup images with size of 500GB each.
    http://www.halfspot.com/use-your-pc-hard-drive-for-time-machine-backup/

Maybe you are looking for

  • Compilations: Can you show just one album cover with mixes/compiations?

    Using the current iTunes (11.01) is a misery. I have numerous mix discs and compilations, and for each title eg Royksopp's BACK TO MINE mix, there are about 15 tiles of the album, one for each song. In extreme cases, there may be over 100. Since I ha

  • Dynamic Converter Template Type drop down list error

    UCM 11g, win xp 64 bit when I try to check in dynamic converter template (Dynamic Converter Admin -> Check in existing template), the drop down of template types never gets updated with templates types, it just sits on "Loading values...". Any ideas

  • Linked documents in printed documentation

    Hi. I have a Robohelp project that contains links to Word docs. I know while generating the help project, Robohelp copies the Word docs into the help folder. So, my question is: Is there a way, when generating printed documentation, for Robohelp to i

  • Idoc ORDER05 Supressing fields

    Hi All,           I am new to IDoc's. In a case, when we were sending 8 IDOCs (ORDERS05), the size was 2 MB and the frequency was hourly. If there is a heavy load on the system then 100 IDOCs may be needed to send in an hour which will increase the l

  • Reformat hard drive

    Hi, I bought a Toshiba E.store Canvio external hard drive (3TB) and I have to reformat it for my Macbook pro (with Snow Leopard). When I open the Utility Disk, I have to choose the format, but I don't know which format of the pop up window is better