Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Newbie Flash Question

I've been working with Flash MX for about four days now after reading a book, and downloaded a menu system.  This menu system can be found at:

http://virtual-fx.net/vfx/tutorial/tutorial7_51_20020101.php

I used Ctrl-L to open up the Library to edit a Movie Clip (Menu1).  In the Title Button Layer, I right-clicked on the title button so I could see the actions for this button.  The actions were as follow:

on (release) {
    ../:menu_num = "1";
    call("../:down");
    gotoAndStop("down");
}

I understand what Call (now deprecated) and gotoAndStop mean.  But I don't understand the reference "../:menu_num" or "../:down".  I have an old Flash 4 book laying around that's not really giving me the answer I need.

I'm aware that menu_num is a variable (as defined in Scene 1 - Actions Layer) and that Up/Down are frame labels that can be used as arguments to gotoAndStop/gotoAndPlay functions.

If any of you can help me out and tell me what the "../:var_name" means, it'd be greatly appreciated.

I'm guessing that it's like a relative reference.  Kind of like how you would refer to a file in a parent directory.
0
coson
Asked:
coson
  • 2
1 Solution
 
negatyveCommented:
../:var_name

it the flash4 version of the flash 5 (dot sintax):

_parent.var_name
0
 
cosonAuthor Commented:
negatyve,

Makes sense, but why the colon before the var_name?

Is it similar to the . (period) prefacing a file which would mean a file in the current directory?
0
 
cosonAuthor Commented:
Nevermind, negatyve

I figured it out by reading another book that explains it in more detail.  However, I'll give you half the points for your answer.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now