Solved

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

Posted on 2008-06-14
3
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

617 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