A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: load bar for preloader

  1. #1
    i just used this tutorial to make my preloader. however the loading bar doesn't fill from left to right (how i would like it) but from the middle to the sides can anyone help me in identifying what i need to change to make this so otherwise i guess i'll have to mask half and have it load from middle to one side only thnx in advance - barry

    http://www.flashkit.com/tutorials/Ac...89/more2.shtml

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Posts
    159
    I'm guessing you've got the registration point for one of your symbols in the wrong place. It's probably centred instead of being on the left-hand edge of the symbol?

    I downloaded the tutorial files from the hyperlink you posted and the demo posted worked fine. Check the symbol registration points ( the cross on the symbol ) . . .

  3. #3
    ok thats is the problem the "cross" "registration point" is in the middle of the object how to i move this to the left side?

  4. #4
    Sporadic Member therhomworkshop's Avatar
    Join Date
    Oct 2001
    Location
    floating
    Posts
    276
    you need to go into the symbol and pysically move it so that the registration point is to the left or wherever you want it to start from.. you can alos use the align tools to get it excatly right...

    hope this help ya..

  5. #5
    i knwo i must seem pretty stupid but how move it step by step plz... lol what a noob

    i tried going to right+click edit and i couldn't move it just the whole symbol

  6. #6
    Sporadic Member therhomworkshop's Avatar
    Join Date
    Oct 2001
    Location
    floating
    Posts
    276
    okay im asuming you have your load bar as a movie clip with a graphic/shape instance inside it yeah?

    if so just right click it, goto edit in place, then all you need to do is move it so that the reg point is to the left, or where ever you want it...

    or if your having problems use this..

    draw a bar, make it into a MC, edit it and move it like i descibe above, come out of editing it and place this code on the MC,

    onClipEvent (load) {
    tkb = _root.getBytesTotal();
    }

    onClipEvent (enterFrame) {
    p = Math.round((_root.getBytesLoaded()/tkb)*100);
    _root.percent = p;
    _root.bar._xscale = p / 1;
    if (p == 100) {
    _root.nextFrame();
    }
    }

    give your MC an instance name of "bar" then create a dynamic text box on stage with the variable name "percent".

    this should then show you how much has loaded both visually and as numbers...

    let me know how you get on...

  7. #7
    "You should also move the rectangle of the fill so that the centerpoint lies on the far left edge of the symbol. This will enable us to stretch the bar we will be making next horizontally to the right"

    this is the bit i didn't do basically how do i move the "registration point" i goto edit in place and i can only move the whole object how can move just the "registration point without moving the whole bar... or have i got this all completely wrong lol

  8. #8
    Sporadic Member therhomworkshop's Avatar
    Join Date
    Oct 2001
    Location
    floating
    Posts
    276
    right, move the object so that its lined up with registration point... dont worry that its not where you want it on stage...

    now come out of editing it, and move the edited MC to where you want it...

    that should do it !!

    hope this helps ya..

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