Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-11-28
5
Medium Priority
?
197 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

783 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