Solved

How do i reload the same movie as if it is starting from scratch?

Posted on 2007-11-28
5
179 Views
Last Modified: 2010-04-03
Hello.  I have a flash movie i'm creating with lots of actionscript that talks to a php/mysql script.
there is only one frame in the movie but different buttons change their text and _x and _y points based on user input.....what i need though is for after a user selects a button to do something, i need the movie to basically "reload" or start out from scratch again, as if it were being reloaded into the browser again.  it seems as if just going and playing the first frame again isn't putting things back in place and changing the text of the buttons as they are originally in the movie...also based on user input, some of the buttons become "enabled" and "disabled", which is normal...but just going back to the first frame and playing again, the buttons don't go back to their original position and enabled status.  anyone have the answer for this?

thank you!
0
Comment
Question by:linuxrox
  • 3
  • 2
5 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 20379930
You could try this and see if that does the job for you...

loadMovieNum("youfFile.swf", 0);

CyanBlue
0
 

Author Comment

by:linuxrox
ID: 20379938
I will try that!
thanks!
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 20382469
Did that work for you???

CyanBlue
0
 

Author Comment

by:linuxrox
ID: 20382492
yep thanks!
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 20382601
Good to hear...  :)

CyanBlue
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now