Solved

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

Posted on 2008-06-14
3
220 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

864 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now