You must be logged in to post Login Register
Search 

Very sleek menu built in flash

User Post

4:21 pm
May 12, 2009


samioz

New Member

posts 2

1

I don’t know if it right to write directly here but I am trying to
create the menu (similar menu) I found on this website
http://www.jouch.com/. Menu on the left. I created the simple
movieclips and put them on the stage, giving them the instance names
(for example design_mc, …) in action script I attached the
EventLIsteners to the movieClips and created one function “over ” and
second “out”. Using tweens transitions I am changing scaleX and scaleY
and x properties on particular movieClips(put on the stage) but I
don’t know how to dynamicaly change the properties on other movieClips
(like it is on that webside I wrote about). What should I do? use
arrays (but I was trying and in the code (upTween = new
Tween(event.currentTarget, “scaleX”,
Strong.easeOut,_scaleX,1.3,0.2,true); everything is all right but in
this upTween = new Tween(menu.event.target.name, “scaleX”,
Strong.easeOut,_scaleX,1.3,0.2,true); flash can’t use it) . menu is a
name of array: var menu:Array = new Array(“design_mc”, “work_mc”,
“links_mc”, “about_mc”, “contact_mc”);

What could be the best solution to create this menu?
If anyone have any advices, I’m waiting for it! Thank You!

10:27 pm
May 12, 2009


smonte

Admin

posts 27

2

Hey,

I have actually never implemented a menu as seen in the site. It looks great!

I don’t think that tweens are going to save you here. I’m not sure what is the best way to do that kind of menu, but I think you should use an ENTER_FRAME listener and then calculate the distances between the menu items. Then you animate / move the buttons according to the distances.

So for example if the two buttons are overlapping you need to move the other down or the other up. Does this make any sense?

Regards, smonte

4:14 am
May 13, 2009


samioz

New Member

posts 2

3

Thank You reply!

I will try some experiments with the ENTER_FRAME listener of course. But having looked some solutions for that menu one of the flash developer told to treat all this menu as an OSX menu… here is a link http://www.reflektions.com/min…..asp?id=356. I must admit that this is a little bit confusing.

Look at it maybe for you it will be more clear than for me.

I found that in the TweenMax you can change the values of arrays dynamically so here might be my direction but I am not sure!

Here is the code:
import gs.*;
import gs.easing.*;

TweenLite.to(myArray, 2, {endArray:[10, 20, 30, 40, 50, 60, 70]});

Regards and if you get something let me know about it.

Topic RSS 
Search