A Flash Developer Resource Site

Page 4 of 4 FirstFirst 1234
Results 61 to 65 of 65

Thread: Preloader hell

  1. #61
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Also is it really hard to have one of the project links load a prev/next instead of one image.

    Many Thanks

  2. #62
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Sorry im gonna leave it how it is now!

    Just still wondering about this bit:

    Code:
    function setBackground() {
    	var startX = 0;
    	var startY = 0;
    	picHolder._x = startX;
    	picHolder._y = startY;
    	picHolder._width = Stage.width;
    	picHolder._height = Stage.height;
    	picHolder._xscale >  picHolder._yscale ? picHolder._yscale = picHolder._xscale : picHolder._xscale = picHolder._yscale; 
    }
    Before i had this and the whole movie was scaling it was set to 'TL'
    and i found that if i set it to 'L' it scaled my images more centrally.

    Is there a way to make the picHolders position 'L' ?

    Many Thanks

  3. #63
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    If you set it to "L" it will completely readjust the entirety of contents on the stage, namely the navigation... keep it at "TL" and then resplace the function code with this.
    PHP Code:
    function setBackground() {
        var 
    startX picHolder._width/2//0;
        
    var startY picHolder._height/2//0;
        
    picHolder._x startX - (picHolder._width/2);
        
    picHolder._y startY - (picHolder._height/2);
        
    picHolder._width Stage.width;
        
    picHolder._height Stage.height;
        
    picHolder._xscale >  picHolder._yscale picHolder._yscale picHolder._xscale picHolder._xscale picHolder._yscale

    See if that helps.
    Wile E. Coyote - "Clear as mud?"

  4. #64
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    That doesn't seem to make much difference apart from some images have a gutter along the bottom.

    I'm trying to load the images middle on the vertical scale.
    and left on he horizontal.

    Thanks

  5. #65
    Junior Member
    Join Date
    Sep 2008
    Posts
    3

    Download preloader from here

    Why don't you just get a drag and drop preloader from here:

    http://www.flashden.net/searches?ter...es?ref=Yombull

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