-
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.
-
are you using MovieClipLoader? then use the onLoadInit event instead of onLoadComplete...
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|