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

loadLevelNum(_url,0) in AS3 not possible

New Here ,
Jun 07, 2009 Jun 07, 2009

Hi, a good trick I used to do to reload a flash file in AS2, was just to do:

loadLevelNum(_url,0)

this reloaded the current flash movie into itself, therefore clearing all objects regardless of who has reference to them and creating a brand new flash movie.

this is the main Objection i have with AS3. Is there anyway to smulate that in AS3? thanks.

TOPICS
ActionScript
853
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 ,
Jun 07, 2009 Jun 07, 2009

that was loadMovieNum().

and no, there's nothing comparable in as3.

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 ,
Jun 08, 2009 Jun 08, 2009

yeah, sorry, it's LoadMovieNum

But, I liked it because it gave me a clean break from the current flash content into a new clean flash movie. So, there is no way to reload a swf movie in AS3? That would really suck if it's the case.

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 ,
Jun 08, 2009 Jun 08, 2009

i can't think of anything comparable.

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 ,
Jun 08, 2009 Jun 08, 2009

Ah... I found something, although not as good as UnloadMovie... it's called...

loader.unloadAndStop()

it stops cold the timers, the sounds, etc.. and unloads the movie. Close enough.

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 ,
Jun 08, 2009 Jun 08, 2009
LATEST

that's for unloading a swf that you loaded into a main swf.  it won't unload your main 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