A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How can I make it so that a simple word can connect to tons of other actions??

  1. #1
    Member
    Join Date
    Jun 2001
    Posts
    95
    Hey, I'm trying to make it so that the word 'info' is equal to a bunch of commands that will take place so that I don't have to rewrite all these commands in each frame to save space. This is what i have.

    info = ((_root.stream.streaming.gotoAndPlay(2)), (songplaying="true"), (_root.clock.active = 1));

    But it isn't doing anything? You can see what i'm trying to make it do, Each part in Parenthesee's is a command I want it to do instead of writing all of this in hundreds of frames.

    _root.stream.streaming.gotoAndPlay(2);
    songplaying="true";
    _root.clock.active = 1;

    Thanx in advance

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Posts
    168
    You need to use a function. There are plenty of tutorials around on functions and they're all pretty good.

    -dan

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Posts
    168
    like this:

    function info () {
    _root.stream.streaming.gotoAndPlay(2);
    songplaying="true";
    _root.clock.active = 1;
    }

    -dan

  4. #4
    Member
    Join Date
    Jun 2001
    Posts
    95

    thanx

    hey thanx i'll try that out

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