Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

Positioning Two Menus On Stage in MX... Problem with X, Y Coordinates? ZIP File

Hi,

I have a menu in place in MX. However, I'd like to duplicate the same menu and have it load in a different spot. New mc, different x, y coordinates etc. So, the original menu will stay where it is, and the new one will load simultaneously into another mc.

At the risk of making this sound really awkward and difficult, I'll stop now.

If anyone can help me. I would greatly appreciate it. I've included a link to an old post of mine so you can better understand what I'm talking about:

http://experts-exchange.com/Web/WebDevSoftware/Flash/Q_21226997.html

Here's the zip file from my post:

http://flashmx7.tripod.com/test-1-1.zip 

(Says flashmx7, I'm still using an older version, though)

Negatyve resolved my question back then. I'd just like to know how to have two menus load in different places now.

Thank you for any help.
0
imawake
Asked:
imawake
1 Solution
 
negatyveCommented:
Use this script:

_root.contents.loadMovie("products.swf");
_root.scroller.loadMovie("links.swf");
_root.scroller.duplicateMovieClip("another", 1);
_root.another._x = 200;
_root.another._y = 10;
_root.another.loadMovie("links.swf");
stop();
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
      getURL("javascript:window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
};
0
 
imawakeAuthor Commented:
Thank you very much. I was on the right track but have never used duplicateMovieClip before.

It works great.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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