dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] load & unload button

  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    72

    [F8] load & unload button

    Is it possible to load and unload a movie from a container with the same button?

    Thanks
    Kumba

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    should be able to. Try something like this

    PHP Code:
    var loaded:Boolean true;  // set your default value here

    myButton.onRelease = function(){
        if(
    loaded == true){
            
    //code to unload mc
            
    loaded false;
        }else{
            
    // code to load mc
        
    }    loaded true;


  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    72

    Thanks!

    Worked perfectly, thanks...I appreciate your time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center