Skip to main content
April 16, 2008
Question

Script Not Updating??

  • April 16, 2008
  • 1 reply
  • 235 views
Not sure how best to describe this problem...

The site I'm creating uses a "shell.swf" to load in all the content. I'm using "home.swf" as the template for all the other pages.
The content on every page is also loaded dynamically through .txt and .xml files.

I opened up "home.fla" and saved it as "links.fla" and then made the necessary changes so it would display the content of the links page.

Now, when I veiw "home.swf" it looks fine.
When veiw "links.swf" it looks fine.

BUT, when I load "links.swf" into my "shell.swf" it displays the content of "home.swf"!!!
When i trace out the url of the file loaded, it gives me "links.swf"!

What's happening?? How come the file displays correct content standalone, but the EXACT same file displays wrong content when loaded into my shell???
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 17, 2008
if you're viewing this using a browser, you may need to clear your browser's cache. otherwise, your swfs may be in different directories.
April 17, 2008
Nope...this is all locally on my hard drive. Believe me, I've double checked the code and file references dozens of times. I guarantee that everything is as it should be...but for some reason, "links.swf" displays correct content when opened independently, but it displays the content of "home.swf" when loaded into "shell.swf"....

EDIT:
Further investigation....I found the if I change my "home.swf" file to display the content of my "links.swf" file, it will do so when opened independently, but when I load it with "shell.swf" it too displays the old content!
I've also found that ANY new code I write will not work when I load that swf into "shell.swf" BUT, if I draw a random shape on the stage, it will show up....

good lord this is weird!!
April 17, 2008

FIGURED IT OUT!!!! Ha!

The library in "home.swf" has a MovieClip called contentMC, which I exported for ActionScript...even though I never actually used it with ActionScript! I did the same thing in "shell.swf" too, so when "shell.swf" initialized, it loaded my home content, which was okay, because it was the same stuff as on the home page....BUT, since I already exported for AS my contentMC, I could not load a new one of the same name when I loaded "links.swf" because it already existed!!

I just went through and un-linked all the contentMC's in my movies. Such a simple over sight that was driving me crazy!!! ;-)