Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

clearing the cache?

New Here ,
Apr 23, 2008 Apr 23, 2008
Hey,

I'm trying to load a slideshow that's as2 based and it loads up great when I first load it. The problem is that when I try to navigate back to the page with the slideshow, it doesn't load up. I have been told that it is because as3 holds an internal cache and that is where the issue lies. Is there any way to clear that cache so that the slideshow can load up when I navigate back to its page? Thanks!

Dave
TOPICS
ActionScript
693
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2008 Apr 23, 2008
you're using a loader instance to load your as2 file the first time?

if so, you do what to "unload" it and you do what to "reload" it?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2008 Apr 23, 2008
Yes, I am using a loader instance to load in the external slideshow, and unloading it and reloading it is the only way to get it to work, then I am all for it! The slideshow is inside of a movieclip embedded within the main timeline and my navigation buttons are on the maintimeline...I tried using this code to get it to work, but it didn't..the error was:

1120: Access of undefined property myLoader.

the movie the slideshow is embedded in is entitled "mainMovie" thanks for the help!

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2008 Apr 23, 2008
if you answered my questions, i didn't understand your answers.

and i don't understand what the info and issue in your 2nd post has to do with the issue in your first post.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 23, 2008 Apr 23, 2008
Sorry for the confusion.

Let me start over with your questions.

I am using a loader instance to load my as2 file the first time.

Right now when I simply navigate back to it, it doesn't work so it seems like I may have to unload it and then reload it. How do I do that?

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2008 Apr 23, 2008
it should reload as long as the target movieclip into which it loads still exists.

show your code that''s attached to the frame that loads your swf.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 24, 2008 Apr 24, 2008
the instance of the slideshow reloads onto the stage, but it doesn't work the second time. The images in it don't load up and the .swf kind of freezes. The problem is that it is an as2 slideshow, but I'm using as3. The company said it has to do with the fact that as3 keeps an internal cache that needs to be cleared (if possible) so that it can reload properly.

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 24, 2008 Apr 24, 2008
LATEST
what removes your slideshow from the display list? if you're not using removeChild,unload() etc , your slideshow is still on-stage.

in addition, that code will reload your slideshow so you will have two instances of it in your application. and it's those multiple instances that are probably causing the problem.

use a boolean to ensure that code only executes once and on repeated executions, remove myLoader and add it again so it's at the top depth of your display list so you can see it.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines