• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

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.
0
imawake
Asked:
imawake
  • 4
  • 4
1 Solution
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now