A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Loader/JPGs/complete event

  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    78

    Loader/JPGs/complete event

    I'm running into a problem with the Loader component. I'm loading JPG's. I have code that is supposed to adjust the _x value of the loader so that the image is centered in the frame. It works fine sometimes, but most of the time it seems to be picking up the _width value before the image is loaded. I have the detection happening on the "complete" event of the loader, so I would assume the jpg is loaded. Do I need to add a delay or something?

    Here is the link to the problem:

    http://www.axis3architecture.net/fla...crollpane.html

    Click "Projects", then "Photos". Some of the photos are thinner than the frame, so it should center them in the frame. However, it seems if they don't load instantly, it causes the problem.

  2. #2
    Member Pepember
    Join Date
    Jul 2001
    Location
    Berlin
    Posts
    886
    are you using MovieClipLoader? then use the onLoadInit event instead of onLoadComplete...
    Please sign here

  3. #3
    Member
    Join Date
    Mar 2001
    Posts
    78
    I'm using the "Loader" component from Flash 8. I've never seen MovieClipLoader as an option. Is it available in Flash 8? Which one is better to use?

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