A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Variable Question

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    30

    Variable Question

    Hey, I'll apologise in advance - this is probably going to be a noob question. What would the code be to make a movie clip change frames depending on what a variable is? For example, the code I have at the moment that isn't working is;

    onClipEvent(enterFrame){
    if(V = 1);{
    _root.MC.gotoAndStop(2);
    }
    }

    Thanks in advance.

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    PHP Code:
    onClipEvent (enterFrame) {
        if (
    _root.== 1)
        {
            
    _root.MC.gotoAndStop(2);
        }


Tags for this Thread

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