Preloaders

Hello,
I am currrently having problems with a preloader, the
preloader is named preloader_mc and it is an animation, and the swf
being loaded is called mainScreen. Below is the code that i have
used, i dont know if i have done it correctly or if there are any
glaring mistakes, but i get an error appear when i run the code the
error states:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at panFlash2_fla::MainTimeline/panFlash2_fla::frame1()
Many thanks for any help on this matter
Jude :D
My code is:

Hello,
Thank you for getting back to me :D
This code that i have posted is in the preloader.fla file on
the timeline, is this a correct place to put it or should i have it
elsewhere. Also the only other explanation that i would give is
that the file that is loading, is also loading images too, would
this perhaps cause the problem??
Thanks in advance
Jude :D

Similar Messages

  • Preloaders not displaying in IE 6

    Hmmm, I'm having some browser-related issues with preloaders.
    I'm using Captivate 2.
    I've published with both a default preloader .SWF file and a
    default preloader .GIF file (both default files in the Captivate
    preloader gallery folder).
    They both work fine when I download and view the files in
    Firefox, but they don't load at all when I download and view the
    file in IE 6.
    Let me qualify that... they don't load in IE 6 if I link
    directly to the .SWF files, but they do work when I link to the
    published htm file (which we prefer not to do - we're really
    wanting our output to scale to the user's browser window size... I
    know, I know, I'll get grief for this, but it's what the client
    wants).
    Anyone know of a way to get these to display in IE 6 without
    the htm file, or a reason why they don't load? If only everyone
    used Firefox, which displays the preloader directly from the .SWF
    or the .htm files... :)
    Thanks,
    David

    Hi again David
    Looks like you may have misunderstood me. When I said "a
    _skin.swf", I simply meant a .SWF that has the same name as your
    project, but containing _skin.swf. Basically, the playback control
    swf.
    Sounds like you are using that file and still seeing the same
    result. Oh well... I figured it was a long shot but was indeed
    hopeful!
    Yeah, it's always been a puzzler to me as to why it works
    okay in FireFox but not IE. Go figure. Maybe it's just the way that
    browsers work. I always thought it was because when you linked to
    the raw .SWF, it all had to load up anyway before playback
    commenced.
    Hope you find something that works for you! Rick

  • Getting ActionScript Error while trying to use Preloaders

    Hi,
    I am new to the Flex.Now we are using Flex 3 in our project.I
    need to create custom Progress Bar, for this i got some reference
    examples using preloader, by googling.But i am getting the error
    while trying this.
    The stack trace of the error is as follows:
    Error: No class registered for interface
    'mx.managers::ILayoutManager'.
    at
    mx.core::Singleton$/getInstance()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\ Singleton.as:111]
    at
    mx.core::Application()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Application .as:273]
    at
    preloader::CustomPreloader()[D:\meena\flexworkspace\src\preloader\CustomPreloader.mxml:0]
    at
    mx.preloaders::Preloader/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:210]
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\3.0.x\frameworks\projects\ framework\src\mx\managers\SystemManager.as:1508
    at
    mx.managers::SystemManager/initHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\m x\managers\SystemManager.as:2196]
    Please can anyone help.............

    Hi,
    I am new to the Flex.Now we are using Flex 3 in our project.I
    need to create custom Progress Bar, for this i got some reference
    examples using preloader, by googling.But i am getting the error
    while trying this.
    The stack trace of the error is as follows:
    Error: No class registered for interface
    'mx.managers::ILayoutManager'.
    at
    mx.core::Singleton$/getInstance()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\ Singleton.as:111]
    at
    mx.core::Application()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Application .as:273]
    at
    preloader::CustomPreloader()[D:\meena\flexworkspace\src\preloader\CustomPreloader.mxml:0]
    at
    mx.preloaders::Preloader/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\p reloaders\Preloader.as:210]
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\3.0.x\frameworks\projects\ framework\src\mx\managers\SystemManager.as:1508
    at
    mx.managers::SystemManager/initHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\m x\managers\SystemManager.as:2196]
    Please can anyone help.............

  • Preloaders, loading order and -levels

    Hi, everyone
    I am using Flash 8 and AS2 for my project.
    My website is now working just about as I like, as long as
    the whole movie has loaded. I have a main time line and several
    movie clips on the time line.
    Only problem is, that the movie seems to load from beginning
    to end, regardless which button you choose in the menu.
    If you choose a button that takes you to a frame or a movie
    clip that has not yet loaded, it will act confused and show you
    something other than what you want.
    I am new to _levels in Flash 8.
    Does the level number decide in which order things load? My
    feeling is that the hightest
    level number loads first, and the main movie time line is
    always _level0. Is that correct?
    I am thinking, if I put a preloader in each frame that the
    menu points to, in f.x. _level50, then the load order would go
    straight to that particular chosen frame on the time line, run the
    preloader and then the movie clip (or frames following it) ,
    without loading anything undesireable in the meantime. And
    eliminating delay.
    Is that correct?
    You see many good flash sites that run preloaders at the
    beginning of each new menu point. They seem to very responsive.
    Is that why?
    Can anyone suggest a very simple preloader script, say for
    just a progression bar, (I dont care about numbers running)
    that would take me to the exact frame that I want to load,
    run the preloader and then the next frame?
    Should the preloader be located in the frame preceding the
    frame you want people to see? Or should it be imbedded in the
    movieclip (if I am using a movie clip)
    I want to be able to re-use the preloader easily.
    Also the latest preloader scripts I have seen do not seem to
    allow you to select how many frames you want loaded of the
    _parent time time line before going to it. It seems you used
    to be able to decide how many frames it should load.
    You can download my .fla file here and see what I am talking
    about:
    http://www.gggraphic.com/downloads
    viewed at:
    http://www.grandtdesign.com
    Thank you again on beforehand for all your help
    ggaarde

    Related to this, is there any default behaviour on the order between WEB-INF/classes and WEB-INF/lib? I guess WEB-INF/classes are found first but not sure if this is official and guaranteed behaviour.The Servlet specification (Section 10.5, page 78) defines the order of loading for WEB-INF/classes and WEB-INF/lib as follows:
    >
    The contents of the WEB-INF directory are:
    The /WEB-INF/web.xml deployment descriptor.
    The /WEB-INF/classes/ directory for servlet and utility classes. The classes in this directory must be available to the application class loader.
    The /WEB-INF/lib/*.jar area for Java ARchive files. These files contain servlets, beans, static resources and JSPs packaged in a JAR file and other utility classes useful to the Web application. The Web application class loader must be able to load classes from any of these archive files.
    The Web application class loader must load classes from the WEB-INF/classes directory first, and then from library JARs in the WEB-INF/lib directory.
    >
    -steve-

  • Where should I place my preloaders?

    Hi all,
    Would like to seek advice on where should I place the
    preloaders.
    I have a banner swf, menu swf, main content swf, and intro
    swf. where should i load the preloader? on the main MC that will be
    calling these swf? or each swf have their own preloader? that would
    look rather weird.
    Of should I just merged banner, menu, main content and intro
    altogether? How do i do that? I am lost as to should I separate
    them out or put all eggs in 1 nest. My main content will have
    transitions between each sections.
    since my menu is separate from the main content, how do I
    point them to get the main content to change section whenever user
    click on 1 sections?
    I am so lost. Please advise. Thanks

    Hey X, sorry I haven't responded of late, working elsewhere.
    Let me address some of the questions you've had above.
    1) I'm very sorry, I see that I missed that assignment when I
    typed this out, within the loadFile function the correct call
    should be: mcl.loadClip(src, clip);
    2)the code is AS2, and yes it is legal coding. first, we're
    setting up parameters for our function here, and then we pass them
    this information when we call the method that we've set up, so that
    we can 'feed' information to the function that then uses it to
    perform it's job. the variable declarations in this case here are
    called 'strict typing' (ie. src:String, file:String, ...) and it's
    just a way to define variables of a particular 'type', it isn't
    necessary to follow the variable names with the type declaration,
    but I thought that I would include it here so that it made sense to
    you and so that you could see what type of variables need to be
    passed to the function. the varaibles MUST be passed to the
    function in the order that they are listed.
    3) yes you've got this all right :) The onLoadInit handler
    fires when the loaded clip becomes instantiated on the timeline
    (eg. available), previous to this point you could NOT say something
    like 'clip.gotoAndPlay(10);' because the loading clip was not yet
    available for the call, and it would fail. So you can use this
    handler to tell the loaded clip to 'do something' if you need this
    type of functionality, like say for instance that you need the
    loaded swf to go to a certain 'page' depending on what button the
    user pressed, this handler would be a way for you to pass that
    informtion along, and tell the loaded clip to goto the correct
    position, handy ;)
    As to the last question in 3, I touched on that above, my bad
    4) I was just talking about the name of the swf file being
    called 'dummy'.
    5) No, put everything in frame one, but on a different
    layers. Place your preloader on the top layer, and the 'blank' MCs
    (to load into) on layers below.
    OK, on to your last post.
    Yes, the way it's set up here the preload bar would run to
    100% for each load and then start again for the next one, it also
    has a text instance that tells the use what is being loaded each
    time. This could all be changed, and you can certainly use you own
    preloader instance, however you will need to reconstruct the method
    that is handling the progress. See if you wanted ALL of the
    instance your loading to equal 100% of your loader bars progress
    (for the first load anyway) you can't calculate the total bytes of
    all files previous to initiating the load, so you have a problem
    here. One method might be to 'break up' the load and apportion the
    progress indicator evenly for each item needed in the intital site
    loading. what I mean by that is, if you have 4 items that are
    needed to load, then each item would 'move' the progress bar by
    25%, so that when 100% of the first item is loaded, the progress
    bar is revealed by 25%, then the second load reveals 50%, and so
    on. It will just take a little math to change the code to handle
    the progressions. Now I would suggest that you NOT animate the
    masking rectangle by frames, I would do this with code adjusting
    the _x position of the mask by an amount that has been calculated
    with the loading code. also this method will have to accomidate,
    both multi-loads and singlular loads so you'll need to use another
    parameter to define how the preload indicator progress is 'broken'
    and into how many parts. This would end up in the math that defines
    the system that controls the indicator.
    OK this should be enough for you to think about for now
    :)

  • Preloaders in external .swf not working

    Hi people.
    I have built this website to showcase our work
    http://www.perfectmarketing.co.uk
    All the movie clips shown in the centre of the screen are
    external .swfs with their own preloader.
    But when the site is live, the preloaders don't seem to be
    working, it takes a while for the movie clip to load and the
    preloader doesn't show. I want it to show so people know something
    is loading.
    anyone have any ideas.
    Thanks,
    Paul

    I am experiencing the exact same problem on my site -
    www.expansiondesign.com
    It works in flash player but not when live (tested safari and
    firefox)
    I don't know if you are using the same script as I am paul.
    I execute the following when each image button is pressed:
    button1.onRelease = function () {
    startLoading("image1.jpg");
    which runs this:
    function startLoading(whichImage) {
    loadMovie(whichImage, "_root.image_holder");
    _root.onEnterFrame = function() {
    infoLoaded = _root.image_holder.getBytesLoaded();
    infoTotal = _root.image_holder.getBytesTotal();
    percentage = (infoLoaded/infoTotal*100);
    _root.loader._yscale = percentage;
    _root.loader._visible = true;
    if (percentage>=100) {
    delete this.onEnterFrame;
    _root.loader._visible = false;
    Thanks,
    Barton

  • Preloaders or Splash Screen

    I realize how stupid this question is but here it is. Converting a flash game to AIR for Android apk. Preloader does not work and therefore cannot play the game on my Android device. Should I just convert the preloader to a splash screen which I assume will work or is there need for preloaders when using AIR for Android? Thanks in advanced for any answers.

    Hi 420visions
    In the games I build i normally have a splash screen this allows me to do any kind of initalization in background. Once complete I jump i tot the game because the game is ready to play. I have noticed on some air for android games people have an initializing preloader then jump in the game. So you just need some sort of logic for your preloader to know when to stop playing as all assets and data are loaded and the game is ready to play.
    regards Mike

  • Cant get my head around preloaders in Flash CS4

    Hi Folks,
    Can anyone help me with preloaders please?
    On my site I have a simple slideshow of 3 images that I have made in Flash. They are layered and the first images starts on frame2, when the final image has finished it loops back to the start to replay, no problems with that.
    However I have the fact that until the swf loads there is an empty box with a white boarder, this only lasts maybe a second or so but I wanted to apply a preloader but cant for the life of me get this to work.
    The instructions with the loader say;
    There is no need to edit your Flash project to implement this loader. This loader (swf) will show your project (swf) once loaded.
    No I have no idea what that means and what I do. I have played around with this for an hour or so and now want to throw my pc out of the window. Very frustrating that I can make a slideshow but cannot for the life of me work this out.
    Attached the preloader file for you to have a look at.
    If anyone has any better preloader ideas that are simple to use I would be SO grateful.
    Thanks, P.

    Hi,
    This still isn't working right. Blimey I didn't think a preloader would be such a task. Well it is to me!
    When I get the earlier suggested numeric preloader to work it seems to mess with the display of my slideshow the first time round. For example it displays the first two images both at once, then the third and once it has done that only then does it display all three images separately.
    Also I was really hoping to use either a pre bought preloader, or at least something a little more creative than numbers from 1 to 100%.
    Any thoughts on doing something a little nicer?
    I have Fireworks and they have some nice preloaders. Seen a tutorial on how to import into Flash but no idea how to make them work and can't find a full tutorial on how to use and make work a Fireworks preloader in Flash.
    Any thoughts would be sooooooooooooooo welcome ;-)

  • Preloaders at Royaly-Free Purchasing Sites

    I have created a website using Flash CS4 and Actionscript 3.0.  I recently realized that I will need to have a preloader included.  I searched the internet and found a variety of Flash components sites that will sell you very nice preloaders.  There is something that I do not understand however.  There was one very nice preloader that used triangles spinning in a circle.  It fits my website theme perfectly.  However the documentation states that the preloader opens with Flash CS3 and I have used CS4 in mine.  It also says that it uses Actionscript version 2.0 whereas I have created my site using 3.0.  Does this mean that I'm stuck in the water?  Can I make this work?  Thanks!

    One thing you should note when programming in AS3 is that you can't mix AS2 and AS3 in the same code.
    Therfore im pretty sure that the code is not going to work. But, converting an AS2 code to AS3 shouldnt be a problem.
    Im positive that you will be able to convert it. Maybe you should have a look at a tutorial on how to make a simple preloader
    and look at the code, after you understand how cosume preloaders work in flash you will have the tools you need to convert it.
    http://www.republicofcode.com/tutorials/flash/as3preloader/
    Thanks

  • Module Preloaders

    I know it's relatively simple to apply custom Preloaders to flex application via the preloader property in the main application tag but I'm wondering is there a way to apply the same effect to modules as they are loaded into a module loader or to perhaps have a preloader applied to the module loader itself which would be ideal. It seems neither modules nor module loaders include the preloader property though so I'm wondering if anyone is aware of any examples of achieving this effect or has any tips on how it could be done for someone like myself that has only just recently srated employing modules/module loaders in my apps.

    Browse your 'Help' files on 'SystemManager' which works perfectly with preloading modules!
    regards aktell

  • Trouble loading external .SWF into my main page with preloaders

    Dear All,
    I am working on my first Flash project with AS3.
    The structure of the flash site is pretty simple. I have a
    stage 1165px wide x 710px height
    Inside my Stage I have an horizontal bar with a menu followed
    by a container right under.
    **** My goal
    is that whenever I click on one of the button on the menu, that the
    related external .SWF loads into
    the container with a preloading bar and %. *****
    I already did all my .SWF files and it is pretty frustrating
    at this point to be stuck at this point of development.
    Please help.
    -Alex

    Visit gotoandlearn.com. There is a video tutorial there
    regarding preloading that should answer most, if not all, of your
    wonderings.

  • Preloaders for my video clips in Dreamweaver

    I’ve been trying to get a Preloader to work with my
    video clips playing in Dreamweaver. I have many short video clips
    on my site, from 1 to 3 Megs starting up as their download is
    completed. I’d like to have a pre-loader give my viewers a
    heads-up that video is coming, but I haven’t been able to
    make it happen yet. I've been through the tutorials and getting
    closer.
    In Scene 1 (titled: loader) I’m using a simple
    "LOADING..." animation I made.
    In Scene 2 (titled: main) I have the video clip, sized to fit
    the table in Dreamweaver with a URL linking to the full video on
    the web.
    Here’s the code that I’m using and the error
    message:
    Whatever assistance you can offer will be greatly
    appreciated, thank you for looking it over.
    LB

    The problem seems to be solved and the scene method is
    working well! I put about 14 clips with pre-loaders attached up on
    my site within Dreamweaver. Sometimes the clips are loading fast
    and I don’t need to have each clip display a pre-loader.
    I’m still working out the details on another preloading
    file that has a row of pictures attached which is requiring more
    coding - I’m trying to figure this out now.
    I want to thank two mentors who have helped me reach this
    level so far: Craig at LearnFlash.com & Dzedward, Senior Member
    at Adobes forums.
    Thank you again very much!!
    Here’s the coding I was instructed to use:
    stop();
    myInterval = setInterval(preload,100);
    function preload() {
    if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
    gotoAndStop("main", 1);
    clearInterval(myInterval);
    Sincerely,
    LB47
    ChabadVideos.com

  • Flash Preloaders

    (Using Flash 8 Professional) Hi, I have a Flash movie
    comprised of two scenes. The first scene is fairly complex, with
    over 20 layers. I want to add a preloader to the front of this
    movie. In searching on the web, I found one forum where the
    solution was to add a new scene containing the preloader onto the
    front. Is that the best way to go?
    If not, what do you recommend? I tried inserting frames on
    the layers at the beginning of the first now-existing scene of the
    movie, but I didn't have any success. When I tried inserting frames
    or keyframes, they just added to the already existing layers
    instead of opening up empty space so that the already existing
    layers will start after the preloader.
    If a new scene is the best idea, are there any issues
    concerning the interaction between scenes that might trip me up?
    Thanks!
    Bill

    quote:
    (Using Flash 8 Professional) Hi, I have a Flash movie
    comprised of two scenes. The first scene is fairly complex, with
    over 20 layers. I want to add a preloader to the front of this
    movie. In searching on the web, I found one forum where the
    solution was to add a new scene containing the preloader onto the
    front. Is that the best way to go?
    If not, what do you recommend? I tried inserting frames on
    the layers at the beginning of the first now-existing scene of the
    movie, but I didn't have any success. When I tried inserting frames
    or keyframes, they just added to the already existing layers
    instead of opening up empty space so that the already existing
    layers will start after the preloader.
    If a new scene is the best idea, are there any issues
    concerning the interaction between scenes that might trip me up?
    The choice is entirely up to you, and what you are
    comfortable with. If you put it at the beginning of your timeline,
    you'll need to know gotoAndPlay(); function. If you create a new
    scene, you'll still need to know gotoAndPlay(); function, however,
    you'll need to know how to call a new scene. You can also create
    your preloader in its own .fla, and call upon the .swf file,
    however, you'll need to know the loadMovie function. So the choice
    is yours... Good Luck
    D

  • General problem with preloaders

    Hallo there, i am using a preloader from an external file, that when the main animation loads, it displays it, clasicaly. the problem i encounter is this. when the animation loads, it doesn't start from frame 1, but instead from frame 50, for example, if the animation takes 35 seconds to load, the animation then starts from the 35th second of its timeline.
    Can anyone tell me how to solve this problem?
    Thanks people for your time
    Fanourios Sikakis

    as you know flash is STREAMED to the client, as soon as enough content has been loaded (normally the content on frame 1) it will start to play.
    The only thing you can do is:
    1) use the external preloader that tells the loaded swf to play when everything has been loaded, don't forget to add a stop action to the first frame of the loading swf.
    or
    2) use a preloader on the same swf and jump to frame 2 when everything has been loaded ( frame 2 would be your start frame.

  • Multiple Preloaders for Multiple Movie Clips

    Designed in Flash 8, the site's timeline is all in Scene 1
    and is comprised of an introduction, which contains a short video,
    and 6 movie clip categories that the user selects to view. Since I
    want the intro to play as soon as possible, I'd like to limit the
    first preloader to just the video in the intro and not
    _root.getBytesTotal. Then, as the viewer watches this short video,
    the rest of Scene 1 movie clips will keep on loading. After the
    intro, the viewer will choose which of the 6 categories to view.
    These categories are identified with buttons which play the
    particular movie clip. Since I don't know the order of the
    categories they will select, I thought there should be a separate
    preloader for each category. Hopefully, after they view a category,
    the rest of the categories will have loaded and the loading time
    will be nil. The design for the preloader is comprised of a status
    bar and a percent loaded. Is there a way to limit the
    _root.GetBytesTotal to specific frames? I know I could break these
    categories up into separate SWF files but then I loose the
    advantage of one loading while another is being viewed.

    MovieClipLoader is a built in class of functions that will
    allows you to easily load Media (swfs/jpgs) from external sources.
    This will create a MCL object
    var mcl:MovieClipLoader = new MovieClipLoader
    We want the MCL object to receive events for any movie that
    is loaded into the main timeline
    mcl.addListener(this);
    Ok. now we have a movie clip loader that is able to recieve
    events. Since we want to show the progressive download and want to
    do something with that content after it loads, we need to declare
    two event handlers onLoadProgress and onLoadInit. onLoadProgress is
    pretty straight forward. onLoadInit executes it's action as soon
    all of the AS on frame 1 of its time has finished loading. In this
    case, we want two different things to happen. 1st, load the first
    clip and show it.... 2nd, load all remaining clips into the buffer.
    But first, lets declare those next...
    function onLoadProgress( target:MovieClip,
    bytesLoaded:Number, bytesTotal:Number):Void {
    // standard preloader code goes here
    function onLoadInit( target:MovieClip ):Void {
    // display the clip - this will be as easy as just calling
    our loadClip function for the mcl...more on that in a minute
    // If you want something special to happen, i.e. movie fades
    in or a mask is applied to it, you'd do that here.
    Now all we need to do is call the loadClip member function
    for the MovieClipLoader. Just replace the two parameters with the
    location of the swf and then the name of the instance you want it
    to load into
    mcl.loadClip( "myswf.swf", targetMovieClip );
    The other movie clips are now a breeze as well. For each
    button, just add an on(release) or onRelease = function (depending
    on your situation) to just call that mcl.loadClip() line from up
    above. Just change the movie you want loaded.
    Let me know if you need more help...

Maybe you are looking for

  • I have a 24" imac model 9,1 running OS 10.6.8 and I am experiencing frequent freezes and crashes.   How can I solve this problem?

    I have a 24" imac model 9,1 running OS 10.6.8 and I am experiencing frequent freezes and crashes.   How can I solve this problem? Hal

  • Update of the System 10.6.8

    From mysterious reason no longer works update in my system (10.6.8). Periodically it says that  update can not be done, and I have made a diagnosis. This of course turns out well, but update is not possible. Otherwise, the Internet works as it should

  • Itunes Store won't load.......!!!! PLEASE HELP!!!

    Itunes Store won't load!!! I've been trying to access Itunes for like the past, I don't know, two weeks maybe, and every time I go to it, it doesn't cooperate. It usually won't load at all, but in the off chance it does, this really weird basic scree

  • Adding custom fields to table view assignment block

    Hi All,   I want to add two news fields to 'Service Contract Item Level' in 'Object List' assignment block. How can i add these two custom fields to table view assignment block using AET. I have tried to add new fields using AET but there is no busin

  • HUGE Customer Service Problem

    Yesterday I had two new Verizon landlines added at my home. One works fine. The other turned out to actually be someone else's telephone #. After hours on the phone with the mostunresponsive uncaring CSRs I have ever encountered, I was finally assign