Hello, I am trying to use get url function in my flash fla file and that seems to be not working. when i click on any tab in the home page i am getting a error message as "The website cannot display the page", this is how the code is written in fla file.Please some one suggest me how to write a code for get url function (ex: if you want to open products tab etc) codeing is done in asp. { b u t n 1 . g o t o A n d P l a y ( " s 1 " ) ; } ; b u t n 1 . o n R o l l O u t = f u n c t i o n ( ) { b u t n 1 . g o t o A n d P l a y ( " s 2 " ) ; } ; b u t n 1 . o n R e l e a s e = f u n c t i o n ( ) { g e t U R L ( " p r o d u c t s " ) ; } ;
Is it a full flash site or a flash menu in a HTML page? Anyhow, the getURL function in AS targets a browser URL whether it is an absolute or relative URL, not an instance name or frame label. If this is a flash menu on a HTML page, your code should look like this: getURL("/products.html", "_self"); or: getURL("http://yourwebsite.com/products.html", "_self"); If this is a menu in a flash site, you cannot use the getURL function, it is a bit more complex than that and depends entirely on the way you built your site. If you built your pages on the timeline, with each page/frame having a label, your code should look like this: butn1.onRelease = function(){ _root.gotoAndStop("products"); }