A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: action for closing the complete movie

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    1

    action for closing the complete movie

    hi,
    What's the action name for closing an movie? I mean the whole movie window. I have a button for it, but don't know the action.

    Thanks!

  2. #2
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    How is your movie being delivered. Is it on a CD or over the web?


    on CD:

    on a button:

    on(release){
    fscommand("quit");
    }


    over the web:

    Under your publish settings, under the html setting, choose with fscommand.

    on a button:

    on(release){
    fscommand("close","");
    }


    in the head area of the html page created by flash, find the code that says "//your commands here" or something like that.

    Put:

    if(command=="close"){
    window.close();
    }


    _t
    I don't feel tardy.

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