Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-14
3
Medium Priority
?
226 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

722 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