all groups > flash (macromedia) > november 2003 >
You're in the

flash (macromedia)

group:

onLoad problem when Movie has Shared Library Object


onLoad problem when Movie has Shared Library Object homerlex
11/11/2003 9:07:05 PM
flash (macromedia):
Flash 6.

I have a movie (test_1.swf) that contains a clip from a shared library (lib_1.swf).

The ActionScript in test_1 has a _root.onLoad() function. This works fine when I run the SWF from the IDE or in the Flash Projector. It even works OK in a browser if I run it off the local file system.

I found that the onLoad() function is not called when I run test_1.swf from a web server and there is a shared library object in test_1.

The shared Object is loaded fine because I put a button on test_1 to manually call _root.onLoad() and it works OK.

If I remove the shared lib object the onLoad() function is called properly without pressing the manual button.

Is this a bug in Flash?

Re: onLoad problem when Movie has Shared Library Object daphne r
4/6/2004 8:14:10 PM
I have a similar problem although I am not using the onLoad command. My main
file calls on a shared library. It works locally but not when I upload it to
the server. I have both the main file and the shared library file in the same
folder.
Daphne

Re: onLoad problem when Movie has Shared Library Object daphne r
4/15/2004 3:04:26 AM
Finally solved this problem. It proved to be the cache. Although I had uploaded
a revised shared library, my browser was still getting the old file from the
cache. Tools-Internet options-Settings to make the browser update each time it
visited a page. I also deleted all temporary internet files.

Thanks to the Quasimondo site for alerting me to the cache problem.
http://www.quasimondo.com/archives/000227.php

Daphne
AddThis Social Bookmark Button