Hi, i'm using Flash CS3 and ActionScript 3.0 I am linking from a button (instance name "RMDSite") in my flash movie to a separate html site. Here is my simple code var link:URLRequest = new URLRequest ("blahSite.html"); RMDSite.addEventListener(MouseEvent.CLICK, gooo); function gooo(event:MouseEvent):void { navigateToURL(link); } It is on my actionscript layer above the button layer. AND IT WORKS. Problem is, when i use the same code on a different part of my flash movie and make a minor change var link:URLRequest = new URLRequest ("blahSite.html"); RMDSite.addEventListener(MouseEvent.CLICK, gooo2); function gooo2(event:MouseEvent):void { navigateToURL(link); } I GET THIS ERROR: 1151: A conflict exists with definition link in namespace internal.
try this it should work: this.stop(); var linkBLAH:URLRequest = new URLRequest("blahSite.html"); RMDSite.addEventListener(MouseEvent.CLICK, onClick); function onClick(event:MouseEvent):void { navigateToURL(linkBLAH); } RMDSite.buttonMode = true;
sorry i'm ignorant when It comes to true programing languages, where whould i put the instance name in this code?
alright i get this error: 1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:SimpleButton. and it highlights the last line of the code????
alright, i got the answer on another forum, thought i would share here is what i did: 1. I changed "gooo" to "gooo2" 2 I changed "link" to "link 2" var link2:URLRequest = new URLRequest ("Ross-Morph-Designs.html"); RMDSite.addEventListener(MouseEvent.CLICK, gooo2); function gooo2(event:MouseEvent):void { navigateToURL(link2); } BEFORE I WAS JUST CHANGING "GOOO" TO GOOO2"