|
-
I am attempting to use variables to control my goto commands.
I have my root. In a frame in the root, there is a movie clip called buttons (the menu). There is also a movie clip called content (obvious enough).
Inside content, there are 14 layers (1 frame). In each layer, there is a movie clip that is labelled CLIC1 through CLIC14.
The clips control all of the content associated with that menu item (multiple pages, otherwise they wouldn't be necessary).
So, essentially ... I need the buttons located in _root.Buttons to control the movie clips in _root.Content
Now, instead of having to make 14 different menus, I was hoping to do things a little more efficiently. I would need something along the lines of this:
(Located in _root.Buttons)
on (release) {
_root.Content.(VariableName)
GotoandStop("Share")
}
The VariableName will control which of the 14 movies (in the 14 different layers, but all in the same "frame") will become "activated". So, if someone clicks on the button CLIC4, _root.Buttons will then be passed this information (variable). At that point, the buttons in _root.Buttons will control the clip _root.Content.CLIC4
Now, the code I wrote above DOES NOT work. I am looking for something that does. I simply put it in to illustrate what I am trying to accomplish.
Hope I explained myself, and any help would be appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|