Preloader to also preload external f4v files in main movie?

n00b alert... I did search the forum (and several others
online), but either the code got too complicated for me to even
attempt to adjust it, or I didn't find a relevant answer.
So I really hope someone here can help me out.
I've found a preloader code online that works like a charm. I
don't really know what half of it actually means/does, but it
preloads and then plays the mainfile.swf . Me happy.
But the "mainfile.swf" calls external f4v files, and the
problem is that they do not get preloaded. (And that kinda was why
I needed a preloader in the first place...)
I gave all the f4v files instance names within the mainfile
(assume: video01.f4v, video02.f4v etc), and the f4v files
themselves are in the same folder as the mainfile.swf.
What do I need to add to the code to get it to preload
everything?
Thanks in advance!!
ActionScript Code of my preloader is attached.

You could load each movie using movieClip.loadClip(); and
check it has been loaded by using a listener and the
"myListener.onLoadInit" script to write your own function to begin
the playhead for that movie.

Similar Messages

  • Dling external .swf files while main movie is playing

    Does anybody know a command to have your flash movie download
    external .swf movies within the "main" movie while playing. I have
    about 8 .swf's that are all linked together but the problem is the
    loading of each one seperatly (kinda lags a bit b4 each movie is
    loaded, because you have to download each and everyone) PLEASE help
    me out I'm working on a big project here at work :yikes: Thank
    you!!

    jsns wrote:
    > Does anybody know a command to have your flash movie
    download external .swf
    > movies within the "main" movie while playing. I have
    about 8 .swf's that are
    > all linked together but the problem is the loading of
    each one seperatly (kinda
    > lags a bit b4 each movie is loaded, because you have to
    download each and
    > everyone) PLEASE help me out I'm working on a big
    project here at work
    > :yikes: Thank you!!
    >
    check help files for details and usage of "loadmovie" and
    "loadmovienum" actions.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Preloader - Character Encoding on external script files

    Hi,
    I have found a slight bug in the generated preloader file _edgePreload.js.
    Basically when the preloader creates the script elements, it doesnt set the charset attribute which causes issues with foriegn characters in certain browsers including FireFox.
    This can be found on line 11 & line 2 of the minifed published version of the  _edgePreload.js file.
    var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;
    The following should also be included after the code above to fix the problem.
    k.type="text/javascript";k.charset="utf-8"
    Is this something that can be include in the next update? or is there any other alternate suggests insted of manually having to add this to the _edgePreload.js each time its published.
    Thanks,
    Nik

    Hi Rhemanth.
    Thanks for your quick respons. Correct me if im wrong - yes yepnope is used to load the scripts however _edgePreload.js file defines what is loaded and what attributes are being set.
    For example - to create a stylesheet element the 'rel' & 'type' attribute are being defined correctly.
    var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";
    However for script elements the nessecary attributes have not been defined in _edgePreload.js and has been left out of the function.
    Thanks,
    Nik

  • External .f4v assets will not play (online only)

    I have 5 external .f4v files – 1 is audio only that plays upon launch and loops in the background.
    The other 4 are short trailers that are set property sources.
    All 5 .f4v files execute perfectly in run preview and as well as with an AIR app. but they don't work within the online deployment.
    Online, the player shrinks in size (up & left) and contains no content.
    The "work-in-progress" is posted here:
    http://www.bloodydvds.com
    Thank you in advance for any light anyone can shed on this issue.

    Hi again,
    Can you check to see if you can load the files in a web browser with a standard http request?
    When I checked:
    http://www.bloodydvds.com/assets/media/BloodyDVDs_Ambience.f4v    and
    http://www.bloodydvds.com/assets/media/Bloosuckers.f4v, the files could not be found.
    This is as opposed to:
    http://www.bloodydvds.com/assets/media/Drag_01.mp3 and the rest of your mp3 files.
    If this is the case, then you may need to talk to your hosting service about why the f4v files are not being properly served.
    -Bear

  • Problems with streaming f4v files longer than approximate 1 hour

    Hey Everybody!
    I have a problem streaming on-demand f4v-files longer than 1 hour! The video starts normaly playing the stream and the player shows the correct overall duration. But if you start skipping/seeking the overall duration change to 13 h 20m and 28s (instead of 1 hour) and the stream breaks down. All f4v files with less than one hour duration works fine with playing and skipping!
    I encode the f4v files with Adobe Media Encoder. I have also checked the f4v file with FLVcheck (passed). So, does anybody have an idea in fixing this problem and which format is the best for FMS streaming (MP4, FLV, F4V?)?
    Thanks
    Hinricht
    SAMPLE: Try to skip/seek and check the duratoin!
    http://webcast.hfmt-hamburg.de/archiv/2011_06_05_Master_Basica.html
    SOURCE:
    <object width="1024" height="576">
    <!-- FÜR MICROSOFT INTERNETEXPLORER -->
    <param
    name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf">
    </param>
    <param
    name="flashvars" value="src=rtmp://flash.hfmt-hamburg.de/vod/mp4:2011_06_05_Master_Basica.f4v&controlBarMo de=docked&streamType=recorded &backgroundColor=000000&volume=1&scaleMode=letterbox&verbose=false&highQualityThreshold=1 025&urlIncludesFMSApplicationInstance=false&autoPlay=true">
    </param>
    <param
    name="allowFullScreen" value="true">
    </param>
    <param
    name="allowscriptaccess" value="always">
    </param>
    <!-- ALTERNATIV EINBINDUNG //FIREFOX;CHROME;SAFARI -->
    <embed
    src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="1024" height="576" flashvars="src=rtmp://flash.hfmt-hamburg.de/vod/mp4:2011_06_05_Master_Basica.f4v&controlB arMode=docked &streamType=recorded&backgroundColor=000000&volume=1&scaleMode=letterbox&verbose=false&hi ghQualityThreshold=1025&urlIncludesFMSApplicationInstance=false&autoPlay=true">
    </embed>
    </object>

    To  complicate this further, I found I wasn't able to output F4v files from Adobe Media Encoder (Premiere Pro CS4), without the file freezing at 1 hour 11 minutes and 34 seconds. I output 5 different 2-hour clips, played them back in Adobe Media Player and all froze exactly (to the second!) at 1 hour 11 minutes and 34 seconds. Found it interesting and inexplicable that this poster had exactly the same issue, but involving software that is completely different - http://forum.videohelp.com/threads/53987-Virtual-Dub-Strange-error-help-needed-ASAP     Can anyone make sense of this?

  • Loading external swf files in a swf - Error#1009

    I have been having trouble using a swf file within a swf file.   The external swf files all work as expected.  However when used within another swf file I get the standard TypeError #1009 for some of my swfs.   The external swf files are mainly actionscript 3 files.  A typical swf file will have an object (or objects) in the library which has an export for ActionScipt property enabled and an addEventListener(Event.ENTERFRAME, somefunction).   About four years ago when I had to do some work with AS2 I seemed to get around a similar issue with the _lockroot method but this is no longer part of AS3. I have searched various forums and note that I am not the only one with this issue but did not find any relevant solutions.   If anyone could give me any ideas on how to get around this it would be appreciated.
    Regards
    Norman

    Hi,
    I have added a download to rapidshare and its link is:
    Download link: http://rapidshare.com/files/380202712/ExtSwfs.zip
    The main file Training01.fla has been set up with links to download several swf's.   The links that do not work properly are those labelled :  Module6 and Module 8.   The first Module 6 connects to a function that is a variation of how I was trying to load external swfs using Application Domain, while Module 8 is a link to a swf that uses and external class.  Module 8 is supposed to load with rotating stars, while Module 6 loads the same file as the link called Module 1.   As soon as I use the two links Module 6 or Module 8 the whole lot ceases to work properly.  I did also follow through the examples on the Adobe site.  The examples for Module 6 and Module 8 are tutorials I have used from the Internet as part of my training from the site FlashMyMind.com but they replicate the type of work we have been doing with respect to using ActionScript3.
    Re my background, at this stage I am self-taught using tutorials on the web and whatever books I can lay my hands on here.  There is no structured training available where I live as there is insufficient demand and no books available on Flash or ActionScript at the local book stores or libraries so the books are ones I have ordered via the Internet.  The one I am currently using apart from Adobe Classroom in a Book Flash CS4 is O'Reilly's Learning ActionScript 3.0 a Beginners Guide.
    The other problem I have been trying to solve and still researching is why one loses sound in the flash player when playing flv files, if the user has selected or restarted a video (or videos) many times eg 25 to 30 times as we create video training files and serve them to the user within the flash environment using Flash Player 9 and IE6.
    Regards
    Norman

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    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.

  • Preload External swf files

    I am trying to create a website that has a main swf file that
    loads several external swf files into itself.
    I would like the preloader not only to preload all of the
    "main" content, but also the content that exists inside the
    external swf files before proceeding to the main user interface.
    Any help that you could give, addresses to a tutorial would
    be much appreciated.
    Thanks in advance.

    You could load each movie using movieClip.loadClip(); and
    check it has been loaded by using a listener and the
    "myListener.onLoadInit" script to write your own function to begin
    the playhead for that movie.

  • Both main movie and external swf preloader - confusion!

    Hi there!
    I have a webite with my main movie (88kb) and an external swf
    soundloop (1mb). I made a preloader, but it only loaded the main
    movie, meaning that after the intro, the soundloop would not start.
    I loaded the soundloop onto level 1, and then tried to make a
    preloader with this code (I thoguht it worked but it really was a
    total guess).
    stop();
    this.onEnterFrame = function() {
    bl = _level1.getBytesLoaded()+this.getBytesLoaded();
    bt = _level1.getBytesTotal()+this.getBytesTotal();
    if (bt<=0) {
    bt = 99;
    bar.gotoAndStop(Math.floor((bl/bt)*100));
    if ((bl == bt) && (bt>0)) {
    delete this.onEnterFrame;
    gotoAndPlay("Intro", 1);
    Now when I test the movie, everything loads, but when the
    soundloop is loaded after the intro, the preloader movie clip
    appears and starts playing and repeating itself!
    How on earth do I get rid of this?! You can see the problem
    here:-
    http://www.vanitee.co.uk/princess.swf
    Thanks in advance

    Please! Still in great need of help. Have tried all sorts
    =(

  • Do externally linked F4V files load slower than FLVs?

    Hey there,
    I have used the FLVPlaybackComponent in my project to load an external F4V (about 2.5 minutes long) which is on the same server, in the same directory as my .swf. Firefox seems to take forever (about 15-20 seconds cable or T1) to load the file, while Safari and Internet Explorer seem to be very zippy (1-3 seconds cable or T1). Is there something that I can do to make Firefox load the .f4v as quickly as the other browsers? Of course, I've tried this on multiple computers, multiple OS's, and cleared caches until kingdom come. Troublesome version of Firefox is 3.6.
    Thanks,
    -Steve

    If anyone is interested...the answer to this is yes.
    At least, with Firefox...
    I encoded the same source file to flv instead of f4v, and lo and behold, it snaps to attention when loaded in Firefox. I was even able to encode the data rate of the flv to one twice the amount of the f4v and it still loaded immediately.
    While I know this may not be as much of an f4v issue as it is a Mozilla handling issue, I hope others will benefit from this information. Actually, Chrome had the same problem as Firefox, so, whatever Google and Mozilla are doing to handle f4v content is kinda' screwy at the moment.
    Viva flv!

  • HT201250 i would like to use time machine but also back up other file to my external drive?

    I just got a WD T3 external hard drive and I would like to use time machine but also back up other files that to the drive.  Can anyone help me out.
    Thanks Mark

    You would need to go to your Applications folder>Utilities>Disk Utility> and there create Two Partitions on your external hard drive, naming them differently.  Then you could go back to your desktop, open the dock, right click on the Time Machine icon and select "Open Time Machine Preferences". In there select the external hard drive Partition that you want to use for TM.  The other external drive partition will be available for other uses.
    Hope this helps

  • External .swf files not playing, or showing up

    Hello All,
    I'm a bit confused. I have created a video interface (vidPlayer.swf) file, and am calling on external .swf's (movieName.swf), which contain paths to the original .flv files (movieName.flv) that are to play. The navigation lives on the the main interface file (vidPlayer.swf). This works fine when I'm publishing locally from my system, or if I upload it to a remote server, and play it on my computer. When another individual attempts to either (a.) play it from the server on their system, or (b.) publish it to the web for it's intended use, the interface appears and the loader performs when video track is selected, but the video never plays. Only on my system does it work. Even from a remote server, it plays on my system.
    I have not wrapped my head completely around AS3 yet, so I'm using deprecated script. On the main interface swf (vidPlayer.swf) I have the following script controlling the loader ( I also use this same loading script for the external video swf's):
    stop();
    myInterval = setInterval(preloader, 10);
    function preloader(){
    if (getBytesLoaded()>=getBytesTotal()){
    play();
    clearInterval(myInterval);}
    loadBar_mc._xscale = (getBytesLoaded()/getBytesTotal())*100;
    loader_txt.text=Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
    On the navigation buttons (tracks), I have the following script (there are 14 tracks total, so the content varies between load and unload content):
    on (release){
    mc_videoPlayer.unloadMovie("02-systemAdministration.swf");
    mc_videoPlayer.unloadMovie("03-gatewaySetUp.swf");
    mc_videoPlayer.unloadMovie("04-homePage.swf");
    mc_videoPlayer.unloadMovie("05-addUser.swf");
    mc_videoPlayer.unloadMovie("06-changePasswordOrPermission.swf");
    mc_videoPlayer.unloadMovie("07-inventorySetUp.swf");
    mc_videoPlayer.unloadMovie("08-storageContainer.swf");
    mc_videoPlayer.unloadMovie("09-addDeicingOperator.swf");
    mc_videoPlayer.unloadMovie("10-orderCryotechProducts.swf");
    mc_videoPlayer.unloadMovie("11-recordDelivery.swf");
    mc_videoPlayer.unloadMovie("12-adjustInventory.swf");
    mc_videoPlayer.unloadMovie("13-deicingLog.swf");
    mc_videoPlayer.unloadMovie("14-PTOCClog.swf");
    _root.gotoAndStop(11);
    mc_videoPlayer.loadMovie("01-firstLogin.swf");
    I have all the .swf's (movieName.swf), .flv's (movieName.flv) and main interface .swf (vidPlayer.swf) in the same folder, so there shouldn't be any missing directory paths.
    I don't know what's going on! I have this set up exactly as a previouse project, using the same interface, scripting and file directory, and it words perfectly from any system, being hosted from anywhere.
    Can anyone help????
    [ I'm working with Flash, CS3 - actions script 2 ]
    Thanks in advance,
    James

    problem solved. Solution? Redo the entire f&%#ing thing. For what ever reason, it now works.
    Thanks anyways.
    James

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • How can I find Bitlocker External Key File location?

    My Windows 8.1 PC includes a system drive and data drives. All the drivers were encrypted using Bitlocker with the data drives set for autounlock. 
    I recently decrypted the system drive (without decrypting the data drives) and reinstalled the OS, after which my data drives required the Bitlocker recovery key to unlock. 
    However, I had "backed up" the recovery keys to my Microsoft account but now I can find only the recovery keys for the system drive. The recovery keys for the data drives cannot be found on my Microsoft account. 
    I have tried to use the "manage-bde" command at the console to obtain the recovery password but I am only getting the Numerical Password ID and the External Key File Name. Can anyone provide advice on how I can retrieve the passwords or the
    External Key File location?
    Thanks.

    Hi Ridgewood,
    As my point of viewer, the BitLocker Automatic unlock volume is also protected by BitLocker Disk Encryption. The user encrypted information is stored in the registry and volume metadata. After a user unlocks the operating system volume, BitLocker uses the
    encrypted information to unlock the data volume automatically.
    After the reinstallation of the system, the encrypted information is lost and BitLocker can’t unlock the data volume automatically.
    Every volume has own recovery key.
    As mentioned in your post, the data drive require the recovery key to unlock.
    I suggest you to double-check the OneDrive and try to find out where did you store the recovery key.
    If you can’t find the recovery key, we can’t help you to decrypt the data volume.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Unable to embed External CSS file, dropdown list,filter panel and dimension filter are not working in SAP Design Studio Tool

    Hello Everyone,
    I am new to SAP Design Studio. I am working on creating dashboards and I am using Design Studio 1.2 version. Please suggest some solutions for the following issues. Thanks in Advance.
    1. External CSS file which is embeded using custom CSS option under "application component properties" is not working.
        * I kept the external CSS file inside repository-> my application folder.
    2. During runtime, getting javascript error while selecting '-' option from filter panel.
    3. Unable to select or type dimension name under "dimension filer component" properties.
    4. Getting runtime error for dropdown list, and I have inserted the following code under "onStartup" option of Application component properties.
    "DROPDOWN_1.setItems(DS_1.getMemberList("PRODUCTREF", MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 20));
    and dimension values are not populated in auto suggest."

    There should be an Error Log under View > Error Log that gives you more details of these errors.  Could you add that?  There is also a View > Script Problems log that provides more details as well.

Maybe you are looking for