A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: button action ?

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    6

    button action ?

    is it possable to have a set of buttons tied into different layers so that button 1 will cuase layer one to play and so on?

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    134
    No... but you can achieve the same effect:

    Make different movie clips in place of your 'layers'.

    Put them on your main timeline, and make sure you fill in the 'name' field on the 'instance' palette. (make sure you have a 'stop' actionscript in the first frame of each of your movie clips, or they'll all play, all the time)

    Set up you buttons on the main stage so that the commands are something like:

    on (release) {
    tellTarget ("movieclip01") {
    play ();
    }
    }
    (where 'movieclip01' is the name of your clip)

    Hope this helps, if you need more help, just ask.


  3. #3
    Junior Member
    Join Date
    Aug 2001
    Posts
    6
    thankx Ill give it a try, Ive only got about 3 hrs experience using flash. So for things are going smoothly. heres the flash movie im wroking on, its a map overhead view for a game showing possable routes for either team and as u can see the more routes I add the more confusing it gets to follow thus time for some interactive buttons

    http://www.gamelunatic.com/~lsd/intell1.htm

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