FORUMS: list search recent posts

Wrong website

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kyandra Letts
Wrong website
on Sep 23, 2011 at 7:10:27 am

I have buttons in my Flash website that I'm making that link to other sites. One to Subiaco Library
moreinfo1_btn.addEventListener(MouseEvent.CLICK, goWhere)
function goWhere (evt) {
var url = "http://www.subiaco.wa.gov.au/template.asp?navSelect=15&mainNavID=15&pageRecID=139"
navigateToURL(new URLRequest(url))
}

And another to a career website
moreinfo2_btn.addEventListener(MouseEvent.CLICK, goWhere)
function goHere (evt) {
var url = "http://www.myfuture.edu.au/Events/News/myfuture%20Video%20Competition.aspx"
navigateToURL(new URLRequest(url))
}

But the second button is linking to the library site.
There are no compiler errors and I tried calling it url1 instead of just url but it still doesn't work.
Thanks for any ideas


Return to posts index

Adam Ashby
Re: Wrong website
on Sep 23, 2011 at 1:57:16 pm

You have:

moreinfo2_btn.addEventListener(MouseEvent.CLICK, goWhere)

When I think meant:

moreinfo2_btn.addEventListener(MouseEvent.CLICK, goHere)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]