mark_anderson_u
10-16-2002, 06:44 PM
Hi All
I'm building a web site for a client and wanted to try and compare the building it in Flash vs. HTML.
Take a look at
http://www.michaela-yakov.com/english/home.html
I have made a menu with a button from the library. I created the bullet, as a lib item, made the color transition as a lib item, and used static text for the labels. This means I have to duplicate the button for every menu item and change the "up" and "over" text manually.
The problem I have with this approach is that if I want to change the button or the text style, I have to make the same changes to all 5 items.
I figure there has to be way to use the same SINGLE library item and somehow set the text with ActionScript in the first frame, but I can't figure out how.
The only way I can assign text to the label is to use '_root.txtMenu = "varText" '
Where var text is the variable used in the library item.
What I don't understand is why I can't assign text using the instance name as part of a path e.g. '_root.btnHome.txtMenu = "Home" ', '_root.btnContact.txtMenu = "Contact" ', etc.
Can someone give me some pointers (if it's possible)
I attached 2 fla files showing the static version that I've done and the dynamic version that I want to do.
Also, can anyone recommend a good book for Flash MX. I've done all the lessons and tutorials, but still feel a bit "lost".
Thanks
Mark
I'm building a web site for a client and wanted to try and compare the building it in Flash vs. HTML.
Take a look at
http://www.michaela-yakov.com/english/home.html
I have made a menu with a button from the library. I created the bullet, as a lib item, made the color transition as a lib item, and used static text for the labels. This means I have to duplicate the button for every menu item and change the "up" and "over" text manually.
The problem I have with this approach is that if I want to change the button or the text style, I have to make the same changes to all 5 items.
I figure there has to be way to use the same SINGLE library item and somehow set the text with ActionScript in the first frame, but I can't figure out how.
The only way I can assign text to the label is to use '_root.txtMenu = "varText" '
Where var text is the variable used in the library item.
What I don't understand is why I can't assign text using the instance name as part of a path e.g. '_root.btnHome.txtMenu = "Home" ', '_root.btnContact.txtMenu = "Contact" ', etc.
Can someone give me some pointers (if it's possible)
I attached 2 fla files showing the static version that I've done and the dynamic version that I want to do.
Also, can anyone recommend a good book for Flash MX. I've done all the lessons and tutorials, but still feel a bit "lost".
Thanks
Mark