To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-17-2006, 12:46 PM   #1
Kehoe
Junior Member
 
Join Date: Oct 2005
Posts: 6
Help with Code

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
Kehoe is offline   Reply With Quote
Old 05-17-2006, 01:06 PM   #2
Computer Dork
Senior Member
 
Computer Dork's Avatar
 
Join Date: Mar 2001
Location: St. Louis
Posts: 1,016
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.
__________________
Gibson Design Studios
Computer Dork is offline   Reply With Quote
Old 05-17-2006, 01:14 PM   #3
Kehoe
Junior Member
 
Join Date: Oct 2005
Posts: 6
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/rk...es/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
Kehoe is offline   Reply With Quote
Old 05-17-2006, 01:33 PM   #4
Computer Dork
Senior Member
 
Computer Dork's Avatar
 
Join Date: Mar 2001
Location: St. Louis
Posts: 1,016
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;
__________________
Gibson Design Studios
Computer Dork is offline   Reply With Quote
Old 05-17-2006, 01:51 PM   #5
Kehoe
Junior Member
 
Join Date: Oct 2005
Posts: 6
okie, this is what i was basing my site over with the moving system

http://www.newmedia.lincoln.ac.uk/rk...es/example.fla
http://www.newmedia.lincoln.ac.uk/rk...es/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
Kehoe is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:00 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.