A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Anyone:BASIC conditionals/variables stuff I reeeeeeely need help. PLEASE!!!

  1. #1
    Member
    Join Date
    Oct 2000
    Posts
    33

    Help! Am I even close here? I am not sure if I even have a clue about conditionals. I thought I did, but does my scripting below make any sense? I am soooooo stuck.

    I want the rollover to do different things, based on the if statement, if the variable is set to Open or Closed or whatever in the movieclip.

    On Rollover
    If (Submenus/:SubmenuStatus eq "Open")
    Begin Tell Target ("Submenus")
    Go to Next Frame
    End Tell Target
    End If (Submenus/:SubmenuStatus eq "Closed")
    Begin Tell Target ("Submenus")
    Go to and Stop (1)
    End Tell Target
    Else If
    End On

    in the movieclip "Submenus", the keyframes have different frame scripts accordingly that say:

    Set Variable: "SubmenuStatus" = "Open"

    or other frames say:

    Set Variable: "SubmenuStatus" = "Closed"

    Will this reset the variable SubmenuStatus to a new value as I intended? Can that happen, or can a Variable only be set once?

    Will Flash read the movieclip path and read the variable okay?

    If I change "eq" to "=", then the tell target runs regardless. (??)
    [Edited by cmoseman on 10-26-2000 at 07:39 PM]

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    263
    cmoseman,

    Close, real close!!!!
    This is what it should look like. And you really
    don't need the /'s but I always use them. Keeps
    me from getting confused about what path an object
    is in!!!

    On (Roll Over)
    If (/Submenus:SubmenuStatus eq "Open")
    Begin Tell Target ("/Submenus")
    Go to Next Frame
    End Tell Target
    Else
    If (/Submenus:SubmenuStatus eq "Closed")
    Begin Tell Target ("/Submenus")
    Go to and Stop (1)
    End Tell Target
    End If
    End If
    End On

    Hope this helps.
    MA
    [Edited by Magister Arenei on 10-26-2000 at 08:01 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