Silly links related question

hi all

ive got a newbie question …

i have a flash movie embed in my website

the problem im having is when i goto http://mysite.com - they work fine but when i goto http://www.mysite.com the links refuse to work

im using
on (press) {
getURL(“http://dive4.com/jobs”);
}

is there a way for the links to work for both - mysite.com and www.mysite.com

thanks