PDA

View Full Version : loader's bug


newfeng
05-04-2004, 09:43 AM
hi, all. I designed a website with 2004. and I used the loader com. I want the loader dynamic loading pictures . and the pictures are not in same size. the loader can automatically scale the picture to fit the loader's size when test on loacal host. it worked well. but when I upload the site. the picture not scale.
I used the loader's complete event function. but it's seem flash can't detect the pictures bytesTotal property correctly.
the site is :
http://www.freewebs.com/newfeng/purplecow
loader in the architecture page.
please help me.

FormerSwinger
07-18-2005, 02:35 PM
I have the same problem. Has enyone figured out a solution?

nibs
02-15-2006, 05:52 AM
Hi, i am having this problem also. I have developed an application in flash 8 pro where the user selects an option from a combobox component which then loads an external swf into the loader component. I have the following actionscript on the loader:

onClipEvent (load) {
this.setSize(788,428);
}

When i test the app, the first time i make a selection from the combobox the swf loads into the loader component but is only about 5oo pixels wide, however when i hit refresh and make the same selection from the combo the swf loads and fills the loader component correctly. Does anyone have a solution to this problem? Is this a bug or am i doing something incorrectly?

nibs
02-15-2006, 07:04 AM
Got this from the Flash Help file.

"The Loader component is a container that can display a SWF or JPEG file (but not progressive JPEG files). You can scale the contents of the loader or resize the loader itself to accommodate the size of the contents. By default, the contents are scaled to fit the loader. You can also load content at runtime and monitor loading progress (although after content has been loaded once it is cached, so the progress jumps to 100% quickly)."

I have removed the setSize() from the loader but it is still not sizing the imported swf to fit the loaders dimensions, can anyone confirm if this is a bug in flash?

SuperApe
04-07-2006, 06:51 PM
Got this from the Flash Help file. ... can display a SWF or JPEG file (but not progressive JPEG files).Ah, ha.
I had that same problem and couldn't figure out why some JPGs worked with my Loader, other didn't, why some people could see them them all, I couldn't.

It's nice to know this resource is here when we need it. :D