A Flash Developer Resource Site

Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 65

Thread: Preloader hell

  1. #21
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    hmmm that is odd. Not too sure what could be causing that. I try seeing if I have an MX version of Flash and see if that happens at my end.
    Wile E. Coyote - "Clear as mud?"

  2. #22
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    OK, was able to install mx 2004 and had a look at your file and for the life of me couldn't figure it out. I even tried doing a bare bones loadMovie(); with your images folder and nothing seemed to work. Then I tried substituting your images for mine and it worked. So for some reason the error actually resides in your jpg's. You may want to try resaving them. Once I did, they actually began to load. That at least solves one of your issues.
    Wile E. Coyote - "Clear as mud?"

  3. #23
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Hi thanks.
    Got it working...sort of.
    The images appear now.
    But i want to add the code to help it scale fullscreen.
    Not sure where to insert it.

    Code:
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    MyImagesHolderHeight = new Object ();
    MyImagesHolderHeight = MyImagesHolder._height / MyImagesHolder._width;
    MyImagesHolderWidth = new Object ();
    MyImagesHolderWidth = MyImagesHolder._width / MyImagesHolder._height;
    if ((Stage.height / Stage.width) < MyImagesHolderHeight) {
    MyImagesHolder._width = Stage.width;
    MyImagesHolder._height = MyImagesHolderHeight * MyImagesHolder._width;
    } else {
    MyImagesHolder._height = Stage.height;
    MyImagesHolder._width = MyImagesHolderWidth * MyImagesHolder._height;
    };
    MyImagesHolder._x = Stage.width / 2;
    MyImagesHolder._y = Stage.height / 2;
    sizeListener = new Object();
    sizeListener.onResize = function() {
    if ((Stage.height / Stage.width) < MyImagesHolderHeight) {
    MyImagesHolder._width = Stage.width;
    MyImagesHolder._height = MyImagesHolderHeight * MyImagesHolder._width;
    } else {
    MyImagesHolder._height = Stage.height;
    MyImagesHolder._width = MyImagesHolderWidth * MyImagesHolder._height;
    };
    MyImagesHolder._x = Stage.width / 2;
    MyImagesHolder._y = Stage.height / 2;
    }
    Stage.addListener(sizeListener);
    I tried it in the MyImagesHolder mc
    Last edited by brisa_main; 09-08-2008 at 01:09 PM.

  4. #24
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Try on the main timeline see what kind of results that gives you.
    Wile E. Coyote - "Clear as mud?"

  5. #25
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    tried that, doesnt work quite right. i tried it in the first frame of actionscript layer and it scales but not within the window or in the right position

  6. #26
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    this is proving difficult.
    can you point me towards any more tutorials.
    all i want is:
    *full screen scaling image (code works)
    * just simple next prev buttons
    * preloader in between images
    *ideally a fade between images

    proving impossible

  7. #27
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    It's not impossible, I'm thinking part of the problem is trying to piece together different parts of code from different sources that do specific tasks, just may not happen to work well together. If I have time I'll try looking at it again to see what I can come up with.

    Here are some links for full screen.
    Here's a good one, http://julian.empiregn.com/2007/2/22...ies-with-Flash and another http://www.tutorio.com/tutorial/liquid-flash-layout and http://www.retrothinking.com/archive...ge=guides&n=41

    Mind you I haven't read either one, just briefly looked them over. HTH.
    Last edited by Robb@exo; 09-08-2008 at 05:25 PM.
    Wile E. Coyote - "Clear as mud?"

  8. #28
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    yeh all the elements by themselves are so simple.
    Im just struggling to get them all working
    Reckon you could knock something up?

  9. #29
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Still working on a suitable fade out but the rest is working. Have a look.
    http://www.mediafire.com/?sharekey=d...07dab5d09a5f8f
    Wile E. Coyote - "Clear as mud?"

  10. #30
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Hi Robb
    Thanks.
    Although i can't open it in mx again..

    I have been looking at this:

    http://www.tutorio.com/tutorial/liquid-flash-layout

    Reckon that would help the scaling part?

  11. #31
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    OK, try this...
    Last edited by Robb@exo; 07-31-2009 at 08:15 AM.
    Wile E. Coyote - "Clear as mud?"

  12. #32
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Thanks Robb.
    Love the fade on those!
    Would i be able to make so the prev/next is layed over the image?
    Also the full screen scaling?

    Thanks

  13. #33
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Did you preview the html file? Try doing that and use the full screen button and let me know if that's what you were after. And yes the buttons can be displayed overlaying the image.
    Wile E. Coyote - "Clear as mud?"

  14. #34
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Ideally I'd want it without the full screen button. So its full screen all the time.

    Im having problems getting it working aswell.

    Getting and Ac run activecontent error

  15. #35
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    OK, then try this.
    Last edited by Robb@exo; 07-31-2009 at 08:15 AM.
    Wile E. Coyote - "Clear as mud?"

  16. #36
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Wow that looks ace in flash.
    However when I preview it in dreamweaver from the html file it doesn't go full screen. Just appears about the size of a default stage.
    Ive tried 100% width and height with no joy.
    Hmmm
    Thanks!

  17. #37
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    If you want your html page to automatically configure to full screen dependent upon on the users screen requirements then you can achieve that via javascript.
    Wile E. Coyote - "Clear as mud?"

  18. #38
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Yeh I've looked into that briefly with no joy.
    Without javascript the one i tried looks like this:

    http://i27.photobucket.com/albums/c197/rab_1972/web.jpg

    And your one like this:

    http://i27.photobucket.com/albums/c1..._1972/web2.jpg

  19. #39
    Senior Member
    Join Date
    Jun 2005
    Posts
    143
    Hi
    Got it scaling to fullscreen now!
    So thats all fine.

    Just finding it difficult to get the prev/next to stay fixed....
    Also how do i change them so i can have a plus and minus symbols instead.
    Or maybe use two small arrow jpegs?

    Many Thanks

  20. #40
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Just replace the dynamic text field in the mc with your graphic.
    Wile E. Coyote - "Clear as mud?"

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