dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: True/false check

  1. #1
    Member
    Join Date
    Feb 2002
    Posts
    45
    I have small problem here. I have a button in a movie(_root.butmov.button) and another movie(#3(_root.mov1.mov2.mov3) inside of 2 other movies. What I need to do is when I press the button(on mouse press), it will somehow check on what frame my #3 movie is. If it's on frame 30, keep playing and if it's on frame50 goto and play 2. I tried it the true/false way but it doesn't work(I guess because they are not in the same movie). What I did is on frame30:
    mid=true;
    and on frame 50:
    mid=flase;

    and script on the button is:
    on (press) {
    if (mid=true) {
    tellTarget ("_root.field") {
    gotoAndPlay (31);
    }
    } else {
    tellTarget ("_root.field") {
    gotoAndPlay (2);
    }
    }
    }
    Any ideas how to do that so it'll work? I know I'm doing something wrong with "if" here.

  2. #2
    Member
    Join Date
    Feb 2002
    Posts
    45
    field is supposed to be 3d movie

  3. #3

    Will This Work for you ?

    This will work if you want your movie#3 to always play if it's play head is between 30 and 50

    Code:
    on (press) { 
       If (_root.mov1.mov2.mov3._currentFrame > 30) {
          if (_root.mov1.mov2.mov3._currentFrame = 50){
             _root.field.gotoAndPlay (2)
          }
          _root.field.play()
       }
    I don't think you need special variables to acomplish what I think you want.

    If this doesn't help we can talk some more.

    Ta
    [Edited by mani_sf on 02-26-2002 at 07:57 PM]

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