Skip to main content
Participant
October 8, 2009
Question

Re-load a widget?

  • October 8, 2009
  • 1 reply
  • 459 views

Hey everyone!

Got a question that I can't seem to find an answer to anywhere else.

I have two slides and each slide has a widget on it. After the first time through, the user may return to the first slide and from there they can go to the second slide. Here is the problem: I need the widget in the second slide (A custom built widget) to reload and start from the beginning. Anybody know how to make that happen? Right now, when returning to the second slide, the widget is in the same state it was in when the user left the slide. I need it to reload and start over.

Thanks

This topic has been closed for replies.

1 reply

Inspiring
October 21, 2009

I may be wrong since it's a awhile since I last did this, but if they're like Animations what you need to do is add a couple of frames for space before you have your main actionscript code in the file.

This way, when the flash player comes back to the file, it will start at frame(0) (which is codeless) and reload all the code again once it hits the later frame. Depending on your code/whatever you are developing you may also want to set all your variables to null/0 in frame(0) (since they may persist)