A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 32 of 32

Thread: how to get this set up? (including external jpeg preloader...)

  1. #21
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    so i just want to know for future, what code should i put in this button so the grey box appears and loads the picture,
    That would be the last part of my last post.


    You can make a preloader in the external swf.....that would be easiest.

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

  2. #22
    flash addict
    Join Date
    Jun 2003
    Posts
    136
    ohhh okay i see...but what if i am loading in external jpegs, not swf? all my artwork is on my ftp server as jpg files.

    thanks!
    ~"Flash is soooooooooooo flashy!"

  3. #23
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Its the same code for loading jpg's or swf.

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

  4. #24
    flash addict
    Join Date
    Jun 2003
    Posts
    136
    oh i mean, how do i make a preloader on a jpg file? this is unclear to me. thanks!
    ~"Flash is soooooooooooo flashy!"

  5. #25
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    All preloaders has the same basic functions. It just the target that changes. I this case it is the container clip's byte status that should be evaluated. The code could be put in a frame loop or in a function or on the container clip itself. In the last case it can look something like this...

    //ON the container clip
    onClipEvent(load){
    bytes_loaded = Math.round(this.getBytesLoaded());
    bytes_total = Math.round(this.getBytesTotal());
    getPercent = bytes_loaded/bytes_total;
    _parent.loadBar._visible=0;
    }
    onClipEvent(enterFrame){
    // LoadBar and Text things
    if(_parent.status=="load"){
    _parent.loadBar._visible=1;
    _parent.loadBar._width = getPercent*100;
    _parent.loadText = Math.round(getPercent*100)+"% Loaded";
    // When the movie is loaded ( also check that something is IN the movieclip before continuing )
    if (bytes_loaded >= bytes_total && bytes_total>500) {
    _parent.loadBar._visible=0;
    _parent.status="noload";
    }
    }
    }

    Then you would place the load bar ( named loadBar ) clip on the main timeline with a textfield and a textfield ( named loadText ) also on the main timeline

    And the button that loads the movie you add this line...

    status="load";

    This is just from the top of my head but should work.

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

  6. #26
    flash addict
    Join Date
    Jun 2003
    Posts
    136

    thanks, but at this point...

    *sigh* i really appreciate all the help i've received on this topic so far, but still, no matter what i do, it's not working. i follow the instructions best i can and check everything, and i dunno whre i am going wrong. is anyone willing to take a lookat my flash file and help me out on this? seems to be the best solution at this point.

    thanks!!! and sorry i am so confused at all this.
    someone please help...
    ~"Flash is soooooooooooo flashy!"

  7. #27
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Post the fla here in MX format.

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

  8. #28
    flash addict
    Join Date
    Jun 2003
    Posts
    136

    file size too big =(

    alright, thanks!

    however, is it alright if i email it to you ina private message or something, or anyone else let me know because i just tried to attach the file and it turns out, it's too big for flash-kit. the file size is 638 KB. thanks!
    ~"Flash is soooooooooooo flashy!"

  9. #29
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    flashfiles
    @
    pellepiano.com

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

  10. #30
    flash addict
    Join Date
    Jun 2003
    Posts
    136
    ok thank you!
    ~"Flash is soooooooooooo flashy!"

  11. #31
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    I got a little confused over wher you load the jpg files, so I did a separate .fla with the things we talked about.

    A button that loads a jpg image into a container clip. A grey movieclip that appears behind the image that you can click away anywhere. And a preloadder for the jpg images with a bar and percentage counter z ( these are in the grey mc ).

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

  12. #32
    flash addict
    Join Date
    Jun 2003
    Posts
    136
    again, a big thank you for all your help! i'm still working everything out~if i get it to work, then great! however, if not, i will simply use a "get url" command for the buttons. (i load the jpegs from the buttons in each movie clip. for example, in the movie clip, colors_mc-you see all those black buttons there? i load the jpegs from there. i think that is why it is not working for me. my buttons are in a movie clip, not just on the stage as soon as the movie starts like it was in your polaroid flash file you just sent me.)

    nice site you have by the way!

    ~peace
    ~"Flash is soooooooooooo flashy!"

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