Skip to main content
Participant
January 26, 2007
Question

Weird behavior when resizing movie clips

  • January 26, 2007
  • 4 replies
  • 266 views
Hello everybody,

Been trying for some days now to create a menu system in flash for a project of mine and I came across some issues that shouldn't be there...The goal is to have a menu where menu items resize when rolledover to reveal the actual choices of each menu item. So after a couple of days of thinking and trying, something really unexpected happened. I've created a component to act as the menuitem holder, which is composed of two dynamic text areas. The first is the title of the menuitem,which remains unchanged, and the second is the area where I want some html links to appear. The second is the area where I want it to be visible only when rolledover. So I thought that if by actionscript I set the height of the area to 0 when loaded, when rolled over I will set it to a higher value and it would seem that it rolls down from the menu title. Here's the funny part...it won't do it!! If I set the initial height to,let's say, 50px, then it will resize only up to that value nomatter what the set _height is. Can someone explain why this is happening? It's seems like a bug to me. Any help would be appreciated...Thanks!!
This topic has been closed for replies.

4 replies

Inspiring
January 26, 2007
can you post a fla file please?
Inspiring
January 26, 2007
Well, I would never just use the dynamic text field but I would wrap it in a movieclip so I quickly tested what you described and basically that works. So, post the fla somewhere or post the code so we can see what is going on.
noble20mAuthor
Participant
January 26, 2007
Hi Luigil,
Exactly what you said. I have two dynamic text fields and I want to have the main text field sized down to 0, so when I rollOver I can resize it to it's real height and make it look like a drop down menu.Eventually I want to make this component so by placing 3 or 4 of them on the stage, by making some minor actionscript additions to the mainline to make all of them be aware of each other and "move" when a menu is rolledOver/active. But it doesn't work...and it just doesn't make sense
Inspiring
January 26, 2007
>>I've created a component to act as the menuitem holder, which is composed of two dynamic text areas.
So, are you saying you have a movieclip that contains two dynamic text fields and you are trying to resize one of the dynamic text fields? Or are these dynamic text fields in fact movieclips?
Inspiring
January 26, 2007
This coding business must be doing something to my brain. I'm talking to myself here...
Inspiring
January 26, 2007
Where can I see that in action?