Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2000
    Location
    vic oz
    Posts
    2

    Default

    hi,

    Your help will be much appreciated.

    I'm doing a site at the moment with a few popup menu's that have a open and close transition.

    i am trying to work it so if you hit a different button it closes ne exisiting popup menu movie clips, clearing the screen for the menu movie clip that has just been clicked.

    to do this i've added variable within the movie clips's ie;

    Set Variable: "menuload" = "2"

    then on the button i've added.

    If (menuload=2)
    Begin Tell Target ("/item2")
    Go to and Play ("item2end")
    End Tell Target
    End If
    item2end being a frame label which is the closing transition.

    my prob is that i can't get flash 4 to goto and play the frame label in item2 (item2end), instead it doesn't do ne thing. what am i doing wrong, and
    are there ne other suggestions for how i can get a similar effect?

    many thanks
    acemeister
    IP

  2. #2
    Join Date
    Aug 2000
    Location
    Dallas, Tx
    Posts
    277

    Default

    Instead of using actionscript, I use invisible buttons to do this. I create an invisible button to surround the menu that I want to go away so as soon as the mouse leaves the menu, it does go away. If it is a "drop-down" menu, I will code it to tell the movie clip to "Go to and play" the frame that begins the exit portion of the menu. You can also code the buttons on other MC's to do the same thing using Tell Target.

    I hope I am understanding you correctly. If not, I'm sure one of the moderators will. They always pull through for me.
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default

    You've set the variable in a movieclip as a local variable, then tried to use it as if it were a global variable. You have to target it.

    In your case, this is how you'd do it:

    Set Variable: "/:menuload" = 2

    This will set the variable in the root of the movie to "2". Then you can check it by using:

    If (/:menuload=2)
    ...

    Get the picture? Alternately, you could target the movieclip that contains menuload like so:

    Set Variable: "/myClip:menulaod" = 2

    etc.


    hth,
    Deep (just a guy)

    <pre><font face="courier" size="2">,-----------------------------.

    | Pradeep Kumar Nair, B.Math |

    | Graphic/Multimedia Designer |

    | ICQ#: 39102360 |

    | Medius Communications, Inc. |

    | http://www.medius.com |

    `-----------------------------'</font></pre>
    Moderator - i/us Flash Forum
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

  4. #4
    Join Date
    Nov 2000
    Location
    vic oz
    Posts
    2

    Default

    thank you so much for your help Deep. i was ripping my hair out, and then you came along bringing order to my chaos. I fear deep that you are more than just a guy, but a Demi God.

    thanks again

    acemeister
    IP

  5. #5
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default

    [img]/infopop/emoticons/icon_smile.gif[/img]
    Rumours of my deification have been greatly exaggerated. Seriously, I'm just a guy. But I'm glad I could be of help.


    hth,
    Deep (just a guy)

    <pre><font face="courier" size="2">,-----------------------------.

    | Pradeep Kumar Nair, B.Math |

    | Graphic/Multimedia Designer |

    | ICQ#: 39102360 |

    | Medius Communications, Inc. |

    | http://www.medius.com |

    `-----------------------------'</font></pre>
    Moderator - i/us Flash Forum
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

 

 

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
  •