;

PDA

Click to See Complete Forum and Search --> : Help with Code


Kehoe
05-17-2006, 12:46 PM
I am currently redesigning my portfolio site, and I have created a section of code that will alter a window size depending on which section of the site you are on, now the code works fine as long as the buttons are all on the same section, I have added a movie clip that’s a popup menu, but as soon as I add that I can no longer call upon the buttons I have tried setting instance names as well as linking the buttons with no luck,

The code to call the buttons looks like

home.onRelease = function() {
bx1.moveXYR(181.3, 168, 254, 493);
bx2.moveXYR(148.8, 144.3, 300, 559);
mymenu.moveXYR(565.8, 393.6,17.9, 103);
home.moveXYR(628.3, 51.9, 16.1,46);
};

The home one is the only one that works, I need a way to link this code to buttons that appear on different movie clips

Thanks in advance for any help people can give.


Kehoe

Computer Dork
05-17-2006, 01:06 PM
Sounds like a targeting problem - I don't think buttons will respond, you need to make them 3-frame MC's. I don't know what's up with your menu.

Kehoe
05-17-2006, 01:14 PM
Okie i have uploaded the .fla as a flash 8 and flash MX 2004, i am kinda new to flash so still learning alot of the code, if any one would mind taking a look, if it can not be done will have to rethink the design. The urls to the fla are

http://www.newmedia.lincoln.ac.uk/rkehoe/files/site.fla
http://www.newmedia.lincoln.ac.uk/rkehoe/files/site_mx.fla

no dout i have gone wrong some where hopefully some one can help if not will just have to redesign

thanks again,

kehoe

Computer Dork
05-17-2006, 01:33 PM
Well, I see one problem - you need a break in your enterframe code, or it will run on forever. You need an }else{ in there, with a delete this.onEnterFrame;

Kehoe
05-17-2006, 01:51 PM
okie, this is what i was basing my site over with the moving system

http://www.newmedia.lincoln.ac.uk/rkehoe/files/example.fla
http://www.newmedia.lincoln.ac.uk/rkehoe/files/example.swf

that seams to work fine, its only once i try to make the buttons within movies that i get problems, no dout its how im trying to call on the button or something, if this is something thats going to cause problems to fix, i wont bother all ready started to look at ideas towards a new site design but i liked the idea of the site changing its shape from location to location.

thanks for your time!

kehoe