[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

reloading the movie but variables and carry out new function

Posted on 2006-06-08
3
Medium Priority
?
176 Views
Last Modified: 2010-04-03
I am trying to add a refresh button to my swf file. There is no way around it. The app is handling so much graphic in its slide show that it freezes every now and then. I have added a refresh button that when pressed will reload the movie

_level0.loadMovie("movie1.swf");

What i would like to do is reload the movie but take the end user back to the slide they were viewing b4 the crash. In order to do this i need to pass a variable assigned a value when the button is clicked and a function called. Is this possible to do ?
0
Comment
Question by:headsy
1 Comment
 
LVL 7

Accepted Solution

by:
madgett earned 2000 total points
ID: 16875377
An easy quick fix to this would be to assign a global variable to equal the current slide in movie1.swf that they are on.

Example:

// on the root timeline, initiate the _global variable
_global.slideShowPosition = 1;

// when the user hits the next button on the slide show or goes to a particular frame:
_global.slideShowPosition = this._currentframe;

// put this into the _root timeline of movie1.swf
this.gotoAndPlay(_global.slideShowPosition);
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.
Suggested Courses

830 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