virtualadz Posted June 4, 2006 Share Posted June 4, 2006 i have a flash menu and want to make it an anchor link to a text, how can i do thatjust like what we use in html<a href="#top">a</a> (this should be in flash)<a name="top">a</a>is it possible? Link to comment Share on other sites More sharing options...
notclive Posted June 4, 2006 Share Posted June 4, 2006 can you use focus in flash? Link to comment Share on other sites More sharing options...
virtualadz Posted June 4, 2006 Author Share Posted June 4, 2006 you are asking a question or suggesting something Link to comment Share on other sites More sharing options...
notclive Posted June 4, 2006 Share Posted June 4, 2006 suggesting by asking a question Link to comment Share on other sites More sharing options...
virtualadz Posted June 5, 2006 Author Share Posted June 5, 2006 no i dont have any knowledge of that Link to comment Share on other sites More sharing options...
notclive Posted June 5, 2006 Share Posted June 5, 2006 try searching macromedia's actionscript dictionary for focus, you might be lucky Link to comment Share on other sites More sharing options...
ashwani_nair Posted June 15, 2006 Share Posted June 15, 2006 Hi,If u use dreamweaver then u can directly give a URL to the flash object, but I am not sure about it.And the other way of doing it is say if your swf has a link text or a button in it, u can associate the flowing script to it. myMC_mc.onPress = function(){ getURL("www.mylink.htm","_blank");}[\CODE]Hope I was of some help. Link to comment Share on other sites More sharing options...
virtualadz Posted June 16, 2006 Author Share Posted June 16, 2006 no, i didn't want to open a new page instead a menu is onthe rleft and the cotents a bit to scroll down, so whenever clicked on the menu, it willact like a anchor to a text. anyway thanks Link to comment Share on other sites More sharing options...
ashwani_nair Posted June 19, 2006 Share Posted June 19, 2006 Hi There,If you dont want the content to open in the new window, you can leave the second argument blank, that will open the document in the same window.You can also write Java Script in flash.instead of "_blank" you can also use "_top"just have a look at help for getURL, if this is not helping you, i may help you if you could tell me the exact situation.CheersAshwani Link to comment Share on other sites More sharing options...
virtualadz Posted June 19, 2006 Author Share Posted June 19, 2006 let me try what you said i may help you if you could tell me the exact situationjust a second making a sample site. Link to comment Share on other sites More sharing options...
virtualadz Posted June 19, 2006 Author Share Posted June 19, 2006 ok so now i have made a sample site: virtualadz.comthe situation: 4 flash buttons (combined into 1 .swf file), anchor link to 4 text headings. this is what i want, anchor linking: flash to text. thanks Link to comment Share on other sites More sharing options...
ashwani_nair Posted June 22, 2006 Share Posted June 22, 2006 Hi,Tanks for explaining the problem.I can think of a workaround, and I am not sure that this is the only or the easiest way to acheive this.I have written codes in flash to call a javaScript function in HTML page and which will navigate to the section of the page.In flash file my1_mc.onPress = function(){ getURL("javascript:openNewWindow('" + "#go1" + "');");}my2_mc.onPress = function(){ getURL("javascript:openNewWindow('" + "#go2" + "');");}my3_mc.onPress = function(){ getURL("javascript:openNewWindow('" + "#go3" + "');");} and in the <head> tag of the html page <script language="JavaScript"><-- function openNewWindow(myURL) { window.open(myURL); } --> Anyway, this wont work in local machine as the flash player will block the java script in local machine, but it will work through a server. ( I have tried it )Just try it and R&D with it.Hope I was of some help to you..CheersAshwani Link to comment Share on other sites More sharing options...
virtualadz Posted June 22, 2006 Author Share Posted June 22, 2006 thanks very much, i will have a look at it.Gourav Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now