Solved

Flash - How to make a sub-menu elements be same width as main menu elements?

Posted on 2008-06-14
3
223 Views
Last Modified: 2010-04-21
I have an XML Menu ( http://www.geekster.us.com/test1.swf ) and source ( http://www.geekster.us.com/test1.fla ).  The XML Menu main items are in orange, and will show a down triangle if a sub-menu is present, for example "The Company".  The problem is the *width* of the sub-menu, it should be as wide as the main menu, but is shorter.  

The question is: What needs to be done to make the sub-menu match the main menu?  I don't want a "see, it's fixed" answer.  I'd like a pointer on what setting I'm missing that is causing the width mismatch because I'm going to need to do ongoing maintenance of this menu.

I *suspect* that it's element "main-clip", and the sub-element "Sub".  Clicking on its highlight in the timeline window at the top (yellow square) shows the shorter width (yellow outline square) in the editor below.  Click unlock. However I cannot make stretch the "Sub" item here. So I select the element "Sub", and everything in it is 143px wide, an offset from 150px to give room on the left for the selector icon to appear.

Hopefully this explains the problem.  If not please contact me for further clarification.
0
Comment
Question by:tolvor
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
grafinery earned 250 total points
ID: 21785888
width of "sub",  "main", "sub0"  is same, if you look theme from library

but if you enter into "main-clip"->"sub" then sub0 was reduced to 75% width.
Select this sub0 on the scene and look at the Transform window(Ctrl+T). change the horizontal to 100% and move it to x=0.

there is textField in the sub0, it will be wider than sub0. reduce it's width by Text tool.

0
 

Author Comment

by:tolvor
ID: 21786039
Perfect answer.  Many thanks
0
 

Author Closing Comment

by:tolvor
ID: 31467166
Perfect answer.  Many thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to put actionscript code for a button? 6 146
FLV versus SWF 11 286
Embedded Webpage Videos don't auto play on Windows 7 1 123
Actionscript in Flash 3 80
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question