reloading the movie but variables and carry out new function

Posted on 2006-06-08
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


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 ?
Question by:headsy
    1 Comment
    LVL 7

    Accepted Solution

    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.


    // 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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    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…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    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 how to how to load their YouTube profile onto Flash Media Live Encoder.

    731 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

    18 Experts available now in Live!

    Get 1:1 Help Now