Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    Charleston, SC
    Posts
    1

    Default if statements help

    Working on an exhibit for Sideshow art exhibit and have created a a curtain effect. I am having a problem getting content to load when the curtains are closed. I thought that I could call for the replacement mc using an if statement when the curtain mc hit a specific label. I can get content in and our fine until I try and make it contigent upon the other mc.
    Here is a link to the file (note only "The Show" button working.
    http://www.cofc.edu/halseygallery/test.htm
    Here is the script I have been trying for the button:

    on (press) {
    curtain_left_mc.gotoAndPlay("close");
    curtain_right_mc.gotoAndPlay("close");
    if (_root.curtain_left_mc ("opened")){
    main_stage_mc.attachMovie ("logo_w_spin", "newname1",1);
    }
    }
    any suggestions about how to do this would be desperately appreciated
    thanks

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    I am not exactly clear on what the problem is from your description, but I notice a problem in your if statement format. Your missing the equality operator. I'm not sure if "opened" is a variable or a frame label so I will assume it is a frame label and you would want to test the current frame property...

    Code:
    on (press) {
    	curtain_left_mc.gotoAndPlay("close");
    	curtain_right_mc.gotoAndPlay("close");
    	if (_root.curtain_left_mc._currentframe == "opened") {
    		main_stage_mc.attachMovie("logo_w_spin", "newname1", 1);
    	}
    }
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. 2 IF/ELSE statements on 1 action - possible?
    By nwaTOT in forum Flash Scripting
    Replies: 7
    Last Post: 03-30-2005, 09:04 PM
  2. If else statements that don't work
    By KingKong in forum Flash Scripting
    Replies: 1
    Last Post: 12-26-2004, 10:12 PM
  3. IF, THEN, =, statements
    By KingKong in forum Flash Scripting
    Replies: 3
    Last Post: 12-26-2004, 09:51 PM
  4. conditional statements help?
    By krylon in forum Flash Scripting
    Replies: 1
    Last Post: 09-07-2004, 06:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial