A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [CS3] making a simple pause button?

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

    [CS3] making a simple pause button?

    Alright, i have been trying to create simple pause and play buttons for my flash scene. But it just won't work

    I know action script is the way to do it, but i have tried several tutorials and none work. Maybe this picture will help you out.


  2. #2
    Intermediate Game Dev pseudobot's Avatar
    Join Date
    May 2008
    Location
    New Zealand
    Posts
    561
    PHP Code:
    stopBtn.onRelease = function() {
    _root.stop();
    }

    playBtn.onRelease = function() {
    _root.play();

    Add this code to the stage, and replace "playBtn" and "stopBtn" with the instance names of the buttons.
    Needs an update...

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