Exporting library assets to frame 1 causes delay

I'm fairly new to Actionscript 3, just trying to puzzle something out.
I have several small movie clips saved in the library of myCS4 Flash.fla file, I want to make them available to dynamically add to the display list as children, based on the button clicks of the viewer. I can get it all to work fine via Symbol Properties > Linkage > Export for Actionscript.
BUT - When the movie clips are set to "export for actionscript" from the  Library, playback seems to hang on frame 1 until all of these  exported assets have downloaded. The big problem is that I have an ultra-simple but totally custom preloader/progress animation coded in a loop in the second and third frames, which kicks out to frame 4 and continues playback as soon as the download is complete.
Because of this, the preloader has essentially become useless - because all that can be seen is several seconds of empty stage, until the vast majority of the bulky assets have downloaded. Then the preloader flashes onstage for just an instant, and disappears because the content is already up.
So, my questions are:
A)  Is there a SIMPLE alternate method to load these library assets in such a way that it doesn't cause this major lag on frame 1?
B)  Failing that, I suspect I may have to retool my preloader to run as an ENTER_FRAME event in frame 1.  Is this worth the effort (can this potentially resolve the lag issue and allow for a meaningful preload progress animation, despite the lag from the asset export?)
Any advice, thoughts, ideas (sample code?) would be greatly appreciated!!
Thanks in advance,
</a>
**Edit follows**
OK, so after a little more research, I have basically answered this question for myself. I'm updating the post for the benefit of others who may find themselves in my shoes somewhere down the road.
The solution (as far as I can see) is to pretty much just avoid using the "Export for Actionscript" option for exporting assets to the timeline, as much as possible. Maybe it's fine for a few small assets, but not the best choice for large stuff, which in my case was the lions' share of the content!!
Or at least don't use the default setting of exporting to frame one!!  This will likely foul up ANY preloader, because essentially Flash player will not display any of the content on frame one until ALL of the content on that frame has fully downloaded - You'll be stuck staring at an empty stage for ages, then when the preloader finally does show up on the stage and run, it will zip by in an instant while (probably) doing its job properly, but it's really only updating on the load progress of the balance of the SWF file.
The info I found suggested one easy method of making the assets available to Actionscript -- simply just place all of the required library assets into some unseen frame in the timeline, shortly AFTER your preloader runs.  Then Flash Player will load them after the preloader has done its thing, and they will be available to be accessed by Actionscript later in the timeline when you really need them.
Also FYI -- I also tried changing the export settings to have Flash export the assets in question in frame four instead of frame one, with the unfortunate and unexpected result that my published SWF began skipping playback directly to frame four, which also effectively killed my preloader (which was running in frames two and three.) This glitch remained, even after reverting the export setting back to export the assets in frame one!!  It seems like my .FLA file was irreversibly altered (contaminated??) by changing the export frame setting?!?  Yikes!!
Luckily I had an earlier version saved under a different file name, it was relatively easy to go back to that version and bring it up to date.
Anyway - that's all for now. Hope this info can help someone else....
</a>

See edit at bottom of original post....

Similar Messages

  • Indesign Script to import Library asset beneath all graphic frames

    Hi all,
    I wonder if anybody could help me with a problem? (I'm learning scripting but some things are still a bit tricky)
    I have managed a script to place a Library Asset onto a page.
    What I need however is a script to place multiple instances of this Library asset directly beneath every graphic frame that exists in my whole document. If it can be done, I preferably need the asset to snap to the bottom left of the frames, top of the asset touching the bottom of the graphic frame.
    This is from Library 'Library' and the asset is 'Test'
    Has anybody a script or something similar? Thank you.

    AFAIK, you’re wasting your time. If you want those options you’ll need to use file>place. It is worth noting that many of those options are sticky so if you need the same option all the time just place one file and choose the appropriate options.

  • Flash CS5.5 Library Assets "Preview not available"

    Library assets essentially vanishing into thin air.  You either get blank white or "Preview not available" when you click on them.  And then when you click to Edit them, you get a memory error. 
    Still no fix for this guys?  2 years and a version upgrade later...unbelievable.  Adobe is a lost cause...

    The number of frames in each scene doesn't look like a problem.
    I would suggest you to Keep one scene and split your elements in Movie Clips instead of creating different scenes.
    Your explanation suggests that your scenes run continuously and there is no interaction by the user. So you can easily use 6 movie Clips in the timeline instead of Six Scenes.
    Let me know if this solution resolves your issue.

  • Debugging in "strict mode" while using external library assets

    Hi everyone. A new ActionScript-3 user here with a question on strict mode.
       I have multiple Flash pages which use the same art assets. To support modularity and possibly decrease total download time, I have implemented this by placing the shared assets into the library of a shared .swf file (the other .swf files all load this shared .swf file). The shared .swf contains ActionScript routines to place instances of the assets onto the stage and to perform other common functionality.
       A drawback to this strategy is that, correct me if I'm wrong, "strict mode" can not be used to debug calls to functions which exist in external .swf files. That is, if the parent .swf makes a call to a function which is defined within an externally loaded .swf, that function call will be reported as an error in strict-mode because Flash is unaware of the contents of an external .swf at compile time (though it is aware at run-time.)
       My understanding is that shared code can be compiled under strict-mode if the shared code exists purely as an external .as file, not as an external .swf file. However, again please correct me if I'm wrong, art assets which are shared at run-time must exist in an external .swf file. Therefore, by my understanding, if run-time shared assets are desired, then strict mode will not properly compile the projects.
       Is my understanding correct?
       Thanks for any help,
         - Rashid

          Posting an update.
          I have since found a way to compile in strict mode a project which loads an external .swf and acesses its functions. This external swf is able to have a library of its own which is accessed in the external swf's own ActionScript.
          Unfortunately, the solution I have found increases the size of the project's compiled swf. If anyone knows of a way to solve this problem without increasing swf size, I would be quite grateful if you were to share your knowledge.
          Posted below is the solution I am aware of, which increases file size. In these steps, “main project” refers to the top-level Flash project which is attempting to load other swf's. “External project” refers to an swf which is to be loaded by the main project.
    1) Publish the external projects as swc files. “Swc” is a class file, and is to be accessed by the main project when debugging under strict mode. The .swc presumably contains information about external project's library items which are to be exported for ActionScript.
          To create an .swc file, head to “File->Publish Settings...->Flash”. Check the “Export SWC” box.
    2) In the main project, add the external projects' .swc files to the external library path. This is found in, “File->Publish Settings...->Flash->Settings->External library path”. Either individual swc files can be added here (via the SWC file button) or the name of the directory where they reside (via the Path button). Both approaches should work.
    3) Somewhere in the main project's ActionScript, the external project is likely being loaded via a line of code similar to myLoaderObject.load( myURLRequest ). For this new approach, it is now necessary to make use of the second parameter to load(), the loader context. Here's the new line of code:
    myLoaderObject.load( myURLRequest, new LoaderContext( false, ApplicationDomain.currentDomain ) );
          If the LoaderContext parameter is NOT passed, then Flash unfortunately shall not report this as an error. Instead, you may observe strange behavior when the external swf attempts to use its exported library items.
    4) If the main project's code refers to the external project's class by name, then that class will need to be “import”ed into the main project's code. Without this, the compiler will complain about not recognizing the class.
    5) In the main project, edit  “File->Publish Settings...->Flash->Settings->Source path”.  Add the path to the external project's .as class file. Without this, the main project shall give a run-time error of not being able to find the external class.
       This final step, 5, is what increases the size of the main project's swf. I have a project with a few nested .swf loads, and the main project's swf increased by about 10Kb when using this solution.
          This does not seem proper. That is, one would desire the sizes of the final swf's to remain unchanged regardless of the level of compile-time error reporting. If my interpretation of an .swc class file is correct, then it seems logical to presume that step 5 above should not even be necessary, because the class information is given to the compiler/debugger through the .swc.
       Anyone know what I am doing wrong, or otherwise how to get around this problem?
       Thanks bunches.

  • When i export library,will it keep the play count?

    when i export library,will it keep the play count so it is the same when i add to another itunes?
    PS iTunes 7 Scuck thats why I want to keep play count so it stays the same when I unistall 7 to put 6 on.
      Windows XP  

    This problem has also been plaguing me today. Here are my specifics and how I solved it (Expanding on what Quentin Holmes mentioned)
    CONFIRMED WORK AROUND! The .m4v file gets created while encoding, but Adobe Media Encoder does not re-pack it back into the .mp4 unless you select the "Export Audio" in Adobe Premier export prior to queuing. If you don't want audio, mute the individual tracks and still export audio.
    My details:
    Just bought a GH4, shooting 4k 25fps MOV, trying to simply trim a few clips and export them as H.264 .mp4 with no audio. (By the way it would be nice if we could export 4k .MOV files from the camera back into .MOV once finished editing, but in premier that frame resolution is not supported)
    Specs: Mac Mini, Quad Core i7, 16GB Ram, OSX 10.9.4, Adobe Premier Pro CS6 6.0.5, Adobe Media Encoder 6.0.2.81
    Hope that helps anyone with the same prob

  • Is Outside In's PDF Export library's function EXOpenExport thread-safe?

    I'm writing a C++ wrapper, for Node.js, around the Outside In PDF Export library, on Ubuntu Linux. Node.js has a single threaded event loop and therefor any long-running processing is done on a worker thread. So, my wrapper is calling all of the PDF Export methods inside of this worker thread. I mention this so that you can be sure of two things: this is a threaded environment, and all PDF Export functions are being called on the same worker thread. Also, I am not making use of any redirected IO or PDF Export-handled threading. I've initialized the library specifying to use no threads. So all of this processing should be occuring within the thread that I call the functions on.
    Everything seems to go fine when exporting a single PDF or even maybe two or three in quick succession. When I up the number of PDFs that I try to export to 5+, I receive a SIGSEGV segementation fault from within the OIT libs. The back trace is below:
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7ffff4fd0700 (LWP 1577)]
    0x00007fffeef1da26 in HandlePoolCreateHandle () from /usr/local/lib/pdfexport/libwv_core.so
    (gdb) bt
    #0 0x00007fffeef1da26 in HandlePoolCreateHandle () from /usr/local/lib/pdfexport/libwv_core.so
    #1 0x00007fffeef1925d in Win32VCreateHandle () from /usr/local/lib/pdfexport/libwv_core.so
    #2 0x00007fffed49046b in WrapBrush(void*, GdiBrush*) () from /usr/local/lib/pdfexport/libos_pdf.so
    #3 0x00007fffed46e8c8 in ?? () from /usr/local/lib/pdfexport/libos_pdf.so
    #4 0x00007fffed46df63 in GNGetOutputSolutionInfoAt () from /usr/local/lib/pdfexport/libos_pdf.so
    #5 0x00007fffeef1e32a in ?? () from /usr/local/lib/pdfexport/libwv_core.so
    #6 0x00007fffeef1e214 in ?? () from /usr/local/lib/pdfexport/libwv_core.so
    #7 0x00007fffeef18ed3 in Win32VLoadOS () from /usr/local/lib/pdfexport/libwv_core.so
    #8 0x00007fffeddffb24 in VwExportOpen () from /usr/local/lib/pdfexport/libex_pagelayout.so
    #9 0x00007ffff4062c4d in FAOpenExport () from /usr/local/lib/pdfexport/libsc_fa.so
    #10 0x00007ffff7e53270 in EXOpenExport () from /usr/local/lib/pdfexport/libsc_ex.so
    #11 0x00007ffff43c0a4d in topdf_convert(uv_work_s*) ()
    from /home/ryan/repos/pdf-service/node_modules/topdf/build/Release/topdf.node
    #12 0x00000000006e2ec7 in worker (arg=<optimized out>) at ../deps/uv/src/unix/threadpool.c:65
    #13 0x00007ffff6fa6e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
    #14 0x00007ffff6cd3cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
    #15 0x0000000000000000 in ?? ()
    I'll explain the back trace a little. The function on #11 is the function inside my code. That is the function in which I call all of the OIT lib functions. The functions on lines #12 and higher are the Node.js-related threading functions, setting up the thread to run my code's function. Functions on lines #10 down to #1 are all the OIT-called functions.
    In the documentation for PDF Export, it says that if you're going to be using this library inside a threaded environment, then you need to call the init and deinit functions each time within the worker thread. I'm doing this in my code, which you can see here: https://github.com/ryancole/topdf/blob/master/src/topdf.cc#L29-L74
    Is there anything else that I need to be setting that would cause this? I'm only specifying the font directory, explicitly. Are these libraries actually thread-safe? It doesn't look like they are.

    Well, upon receiving a second opinion on the meaning of the phrasing in the documentation, I have got the library working in a threaded environment now. The first parameter to DEInitEx was supposed to specify to enable PTHREAD support, which I did not have. I thought that it meant something other than it actually does.

  • I am trying to export a video I have made in FCP 10.0.8 to Youtube or to a master file and I keep on getting an error -50, or "error exporting master file at frame 20074" Any ideas?

    Having used FCExpress for a while I decided to give FC Pro X a trial, I created my first video with it, exported to youtube and it worked fine.  I am now trying to export my second video to youtube and I get an error -50 which means absolutely nothing.  Not being defeated that easy I tried exporting to a mster file using the H.264 codec and I get an error "exporting master file at frame 20074" - again another useless error.  It takes at least 10 minutes to get to this error after the rendering has started, it gets about 12% in.  Any ideas where to start - I am seriously at the point of giving up with Final Cut Pro X simply on the basis of it being more trouble than its worth - I am just glad I did not pay for it yet...
    Any help would be much appreciated.
    Gerry

    Hi Russ,
    Thanks for your response. I am not an experienced user of FC or other video editing software but if its that hit and miss I think I will go to the trouble of finding some better software - I have a busy enough life as is, I don;t want to get into second guessing what a software problem might be!
    I have just successfully exported my video to a master file using one of the Apple codec options so it looks like it could be to do with the H.264 codec.  I am wondering if Apples Compressor software would solve this problem - the only way to try this it to buy it, there is not trial for the compressor app.  Any ideas?
    Thanks
    Gerry

  • How do I transfer my checked songs from one computer to another - tried exporting library playlist etc but no luck! Please help! I have 26,000 songs - 17,000 are selected and I can't run down the list on my new computer and re-check 17,000 songs! Thanks!

    How do I transfer my checked songs from one computer to another - tried exporting library playlist etc but no luck! Please help! I have 26,000 songs - 17,000 are selected and I can't run down the list on my new computer and re-check 17,000 songs! Thanks!

    Make a smart playlist of your whole library but only checked songs - #4 on  http://support.apple.com/kb/ht1801
    Highlight all files in that playlist, then drag to the other drive.  This isn't preserving any playlists or whatever, just copying files from one drive to another.
    You might want to delete the smart playlist this once you are done because it will probably gobble up resources with that many files.

  • Help! Can't save to disc/backup my iTunes! NO OPTION to save OR back up to disc my iTunes Library appears in the toolbar when I select 'File', then 'Library'. Just 'Organize Library...', 'Export Library...', 'Import Playlist...', and 'Export Playlist...'

    Help! I can't save to disc OR backup my iTunes Library! iTunes support instructions are to simply select 'File', then 'Library', then select 'Back Up to Disc', but when I try to the only options that appear are 'Organize Library...', 'Export Library...' then below those are 'Import Playlist...' and 'Export Playlist...' (which appears in the list, but I cannot select). No option to save my library appears at all. Just those four. I've had no problems syncing, playing, adding or purchasing with my account and my iTunes version is up to date. Can anyone tell me what the problem is and what I should do so I can save my library?

    See iTunes for Windows- Moving your iTunes Media folder

  • How can I add a library asset to a specific master spread?

    Hello! I am new to the forums and rather new to javascript as it relates to indesign so I apologize if this is rudimentary.
    I am building a script that automates new document creation for our company and have run into a problem with placing library assets.
    I want to add a library asset to a specific master page by name, but I cannot find a way to do this.
    I can get assets to place into my document with this:
                var t = app.libraries.item(0);
                var libTapeStrip= t.assets.itemByName('Tape Strip');
                var myTapeStrip = libTapeStrip.placeAsset(myDocument);
    However, the asset is being placed on a master spread that I had previously added to the document. It seems to be the active or front most spread because when the script is complete and I create a new window that spread is what is displayed with the asset on it.
    I would like to place the asset on another master spread, but placeAsset() only accepts documents and text boxes. I have also looked on a way to bring the master spread I want to the front, but cannot find this either.
    If anyone can lead me in the right direction I would appreciate it!!
    Thanks,
    Ben

    @Benjamin – You could make the spread (or the page) where you want to place that asset the "activeSpread" or "activePage", place the asset and then go back to the old active one.
    Something like this:
    (Here I assume that you want to place your asset on a master spread named "A-Master" and the asset is the first in the one and only library file that is open.)
    var myDocument = app.documents[0];
    var myMaster = app.documents[0].masterSpreads.itemByName("A-Master");
    var myLibrary = app.libraries[0];
    var myAsset = myLibrary.assets[0];
    var myOLDActiveSpread = myDocument.windows[0].activeSpread;
    myDocument.windows[0].activeSpread = myMaster;
    myAsset.placeAsset(myDocument);
    myDocument.windows[0].activeSpread = myOLDActiveSpread;
    Uwe
    Message was edited by: Laubender
    Message was edited by: Laubender [Nothing edited in the code.]

  • Within itunes, can I use the file/library/export library option to transfer itunes to a new pc

    Within itunes, can I use the file/library/export library option to transfer itunes to a new pc? I have read the other options but they will be difficult for me to action. Can this be used as an easier route?

    No. See this migrate iTunes library post.
    tt2

  • BW output into PDF through ADS or The SAP BI Export Library

    Dear fellow gurus,
    I would like to meet somebody who has any experience with Adobe forms for BI/ BW.
    My colleagues are struggling with some performance problem on their BW project, where they want the ADS (adobe document services for adobe forms output) to print 400 pages for them. I don´t think that is a good idea (bad design, but I cannot do anything about it) but would like to help them.
    They think SAP Note 1112132 (The SAP BI Export Library) could help, I don´t see the point. Looks like this tool is not quite "ready" for the use. And if I would like to use something like that, I would write that myself using iText or something. But I would like to hear some opinions first, before I will tell them anything.
    Maybe there is something special for PDF reporting for BW? Or any BW + Adobe guidelines? Or anything relevant for me to read to get the idea?
    Thank you, Otto

    Didn´t find any solution/ opinion/ experience. Closing. Otto

  • When transferring music library and apps to my new I Pad I think I clicked Export Library instead of synching.  Now my music library is virtually empty - mostly CDs downloaded, a few apps for the I Pad and apps for the I pod too.  Can I move these back?

    When transferring music library and apps to my new I Pad I think I clicked Export Library instead of synching.  Now my music library is virtually empty - mostly CDs downloaded, a few apps for the I Pad and apps for the I pod touch too.  Can I move these back?

    weird very weird. today i did this again today after already being unsuccessful earlier. exactly the same thing as i have done before, exactly. didn't try to import. didn't say damaged library, copied everything in including date. have tried it about 10 times no luck. today it just worked.
    how weird is that?
    oh well JG - maybe you mixed a magic potion for me?
    anyway, thank you for all the help.
    to anyone else reading this all i can say is keep trying, you never know. follow the above advice. you may feel exasperated and think you have done it already, but keep trying.
    cheers
    P

  • Horrible formatting of code when using library assets

    I'm using library assets to manage my navigation. I then
    insert the library asset into a template and use that template for
    creating content. The idea is that I add or remove a navigation
    entry in one place and it updates the entire site. That's working.
    My problem is that the source code looks awful: it insists on
    wrapping the code and removing indentations. Is this normal
    ??

    Good going. After much fiddling and experimentation, that's
    how I do it,
    too.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dennis Kmetz" <[email protected]> wrote in
    message
    news:ef1l4i$kol$[email protected]..
    > Murray... thanks so much. This solves two problems, (1)
    the format issue
    > that
    > ninjayong had, and (2) my issue... I was looking for a
    method to include
    > header
    > content in a library item. The SSI approach works in the
    header section,
    > and
    > the body section... and of course is much much easier to
    read, since DW
    > does
    > not mess up the formating when the SSI statement is
    used.
    >
    > Now I will always use templates with SSI's instead of
    templates with
    > library
    > items.... THANKS SO MUCH!!!
    >

  • BI Export Library vs. ADS (Adobe Document Services)

    Does anybody know why SAP added the Export Library as an alternative to ADS for BI?  I mean, are there pros and cons to using one over the other?  Right now we're using the Export Library and it seems to work fine for broadcasting and Print View in BEx web.  It's tempting to stay with it, but notes mention that ADS is the standard, and Export Library is an alternative option for BI only.
    Am I missing out on some functionality?  Maybe Integrated Planning still requires ADS?  I assume Adobe Interactive Forms also require ADS.  Anything else?

    Anyone have insight into this?

Maybe you are looking for

  • Trying to configure wifi throughout a large home

    I have a large home that has an upstairs, basement, and studio in the backyard. I need to set up wifi throughout the whole house and to the studio. Currently there are Ethernet connections in 7 locations of the house including 1 in the studio. There

  • Can I use a DAQ PCI-1200 with Labview 5.0.1?

    I have a Labview 5.0.1 software, and I want to use PCI-1200 with it. Can I do that? My OS is Windows XP, but I can change it with Windows98/2000.

  • Discoverer 4i report..please help

    Hi, I have to create a crosstab report in discoverer 4i . The output depends on a date range which is a parameter. The output has to show the count of say category of items bought per month within the date range. There is no limit to the number of mo

  • Payment Term - OM Module -- Urgent

    Hi All, I am facing the following problem in OM module. In Sales order screen, If I change Payment term to Credit card for a customer and entered the credit card details when the order is ENTERED / BOOKED. Then I updated the Ship to Location address

  • Safari won't load pages with pictures after installing Maverick

    I have an older iMac (2008), but it runs great and I have no problems with it.  Except now that i installed Maverick, now Safari doesn't work properly.  For most things, it works fine, then It will quit in the middle of a page.  Or, I have uploaded p