Positioning Menu on Stage, Publishing Problem

Hi,

I'm having a problem positioning a menu on the stage. It doesn't appear where I put it when published and opened it in the player. Could someone please tell me what's going on here?

Here is a reference to the problem:
http://experts-exchange.com/Web/WebDevSoftware/Flash/Q_21216672.html
(the last few posts, including the corrected menu)

The menu should appear where the xml scroller is once the products button is selected.

Instead, it appears in the top left hand corner when viewed with the player.

Why doesn't it stay where I put it?

Thanks very much for any help.
imawakeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sokhodomCommented:
HI imawake,
I've downloaded your code there but there's error inside your menu.swf so please refer to Negatyve solution for disyplaying the correct menu. OKay, i assume you have correct menu. So you want your menu to display where the xml link news is. To do that you need to use setProperty(target,property,value).
Inside your product button put this:

on (release) {
      _root.contents.loadMovie("products.swf");
      _root.prodmenu.loadMovie("menu.swf");
      setProperty("_root.prodmenu",_y,200);    <== this will move your prodmenu clip to position y=200
      setProperty("_root.scroller",_visible,0);    <== this will make the scoller news go away
}

Also like Negatyve mentioned, Please take away the actionscript inside your prodmenu empty movie clip i.e.
select "prodmenu" movieclip in your index movie, open Action panel, and delete the code:

on (release) {
     _root.contents.loadMovie("products.swf");
     _root.prodmenu.loadMovie("menu.swf");
}
Attached is the final corrected version : http://www.ntu.edu.sg/home2001/n0069866/ee-temp.zip
Cheers :)
SokhodoM
0
sokhodomCommented:
Hi imawake,
The simple answer is:
1- Attached this into your product button:
on (release) {
     _root.contents.loadMovie("products.swf");
     _root.prodmenu.loadMovie("menu.swf");
     setProperty("_root.prodmenu",_y,200);    <== this will move your prodmenu clip to position y=200
     setProperty("_root.scroller",_visible,0);    <== this will make the scoller news go away
}
2- select "prodmenu" movieclip in your index movie, open Action panel, and delete the code:

on (release) {
     _root.contents.loadMovie("products.swf");
     _root.prodmenu.loadMovie("menu.swf");
}
0
imawakeAuthor Commented:
Hi sokhodom,

I noticed that after the changes, the menu doesn't display/run as smoothly as it once did. Is there a particular reason for this?

Also, when I click on products, the scroller disappears, but when I click on another button, the menu and scroller display together, overlapped. How can I resolve this? I just want the menu for products.

I need the links in the menu to go to swf's that will appear in the contents mc.

Is this the correct syntax for that?

links[0]="TARGET="contents.movieClip";

or is it this:

links[0]="contents.movieClip";

Thanks very much thus far... almost got it and learning steadily.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sokhodomCommented:
Hi,
I don't seem to see any change with my pc here.
Yes u are right that when u click other button both the menu and scroller display together. To solve the problem,
1- inside the other button include
  setProperty("_root.scroller",_visible,1);    <===when you set _visible to 1 mean make it show up
or   setProperty("_root.scroller",_visible,0);    <== when you set _visible to 0 mean make it disapear
2- So for example if you wan the menu to show up when you press HOME button you should do this:

  on(release) {
                do something here;
                  setProperty("_root.scroller",_visible,1);
  }    
Cheers :)
SokhodoM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
imawakeAuthor Commented:
Thanks for the help.

Turns out I was wrong about the code for the links to change the contents mc... (see above).

How is that done? I can't figure the darn thing out. I thought iy was:
links[0]="contents.movieClip"; but that didn't work...

I'm confused.

I apologize for being so hopeless. Your help, and everyone else at EE has helped me learn so much.

Thanks again.
0
sokhodomCommented:
Hi imawake,
I've look at the .fla again and realized that the way links[0], links[2] blah blah work is it will open up with new browsers and not open up new .swf.
Please open another questions regarding this.
Thank you,
SokhodoM
0
imawakeAuthor Commented:
OK, I will. I look forward to your suggestion.

Thanks
0
imawakeAuthor Commented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.