A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Need help with changing scenes with buttons

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    3

    Need help with changing scenes with buttons

    Hi I'm having some trouble changing scenes with Flash CS3 I can make buttons that go to a fame in the timeline but I can't change scenes. Can someone please post some example action script of how to change scenes with a button? It would be very much appreciated.

    Thank you

  2. #2
    lemon juice hurts your eyes florianvanthuyn's Avatar
    Join Date
    Jul 2005
    Location
    Merelbeke, Belgium
    Posts
    546
    You should not use scenes, they're a mess ..

    Divide you main timeline into frames and label each one of them. On each frame, make a container movieclip wich contains the content. That way, you sort of have scenes, but then in a good way

    And use gotoAndPlay("framename"); to switch of course.
    Florian Vanthuyne

    WAR AGAINST SOLVED THREADS
    mark yours as Resolved under Thread Tools!

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    3
    Thank you for your reply this method seems to be much better than using multiple scenes.

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    68
    florianvanthuyn is correct in his/her advice,

    but just for prosperity:

    gotoAndPlay(framenumber, "scene_name");

  5. #5
    Junior Member
    Join Date
    Oct 2008
    Posts
    3
    Thank you

  6. #6
    lemon juice hurts your eyes florianvanthuyn's Avatar
    Join Date
    Jul 2005
    Location
    Merelbeke, Belgium
    Posts
    546
    I'm a "he"
    Florian Vanthuyne

    WAR AGAINST SOLVED THREADS
    mark yours as Resolved under Thread Tools!

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