dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: preloading issues2!!!!

  1. #1

    preloading issues2!!!!

    ok I think I know what the problem is with this site i migt have to load each image shifting window externally if that is the case how can I load an swf file within an swf file? if anyone knows the answer please help me if u want to see what im talking about look here this is concerning why
    there is no preloader at the beginning of my movie and it is still loading. I need help on how to solve this issue

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Now that was a confusing way to write a question =)

    You want to load a external swf into your main swf?

    If this is what you want....

    There are two ways of loading external files into Flash. Either you can load swf files into _levels or into movieclip targets.

    _levels only exist in the Flash player. They are like layers but for swf files The Flash player is like a overhead projector where the plastic films you put on top of each other are like the swf files in the player. There are 16000 available levels

    //To load a external swf into a _level from a button. The number 1 being the level to load into.

    on(release){
    loadMovieNum("myExternalFile.swf",1);
    }

    Movieclip targets are what it sounds like. A empty movieclip placed on the stage just for the purpose of loading a swf file into it. The advantage is that you can place it anywhere, manually ( as opposed to swf's in _levels) and also can control what of the objects should be on top or beneath.

    Usually you give the movieclip an instance name of container.

    //To load a external swf into a target movieclip from a button ( both being on the main timeline ).

    on(release){
    container.loadMovie("myExternalFile.swf");
    }

    Note that the external files top left corner will load at the center of the empty movieclip.


    Concerning your preloader I hace no clue. Try to be more clear in your question and post the code.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    thanks for the help on the button but i need to know how to load an external swf file automatically from the timeline.

    also my preloader issues is as follows:

    this is for loading the movie,

    if (_root.getBytesLoaded() != _root.getBytesTotal()) {
    gotoAndPlay (2);
    }
    else {
    gotoAndPlay ("icaf", 1);
    }


    this is for the loading bar,

    setProperty (this, _xscale, (_root.getBytesLoaded() /
    _root.getBytesTotal()*100));

    your help on this issue would be greatly appreciated

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Just skip the on release thing to use it on a frame......

    //example
    container.loadMovie("myExternalFile.swf");

    If you mean to say the code you posted is in the EXTERNAL swf and you load it into a movieclip it wont work...

    Replace all _root in the code with this

    ...like...

    if (this.getBytesLoaded() !=this.getBytesTotal()) {

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Just skip the on release thing to use it on a frame......

    //example
    container.loadMovie("myExternalFile.swf");

    If you mean to say the code you posted is in the EXTERNAL swf and you load it into a movieclip it wont work...

    Replace all _root in the code with this

    ...like...

    if (this.getBytesLoaded() !=this.getBytesTotal()) {

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  6. #6
    Member
    Join Date
    May 2002
    Location
    USA.me._x = 18; _y = 36;
    Posts
    79
    thanks for all of the help you provide to us lesser preloader folk, Pellepiano. I went and checked out your site. Nice interface design!
    catch ya around after I digest more of this preloader stuff.
    FP
    <fp>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center