|
From: newtonsgroove on 14 Feb 2006 14:11 :clock; Is there a way to send a lingo command for a simple HTML link like this: <a href=" >link name</a> Keith
From: NeoPulse on 14 Feb 2006 15:07 There is a simple way to do that, but not so easy as you want. Make the hiperlink you want and identify by a string, i means: create a text control, write a couple of lines, then select one of then and in the TEXT INSPECTOR WINDOW write a word in the HIPERLINK DATA FIELD (at the bottom of the TEXT INSPECTOR WINDOW). Then you can catch the link click action by this code on hyperlinkClicked (dummy, data) case data of "go": go to frame 20 -- word in one of the hypelinks "back": go to frame 1 -- word write in other hyperlink "show": alert("showing") -- another id word otherwise alert data -- just for remerber the word if you forget it. end case end I hope this help you Excuse my english please
From: JB on 15 Feb 2006 04:43 Here's an example from Director's help file for EvalScript on EvalScript aParam case aParam of "dog", "cat", "tree": go frame aParam end case end Here's a technote link: http://www.macromedia.com/go/tn_12645
From: paresh_dalsania on 15 Feb 2006 06:07 here is ur solution, user .html property of member. ie. member("link").html = "<a href='http://www.codinghelper.com'> coding helper </a> " Thanks & warm Regars pmpatel
From: Lukewig on 15 Feb 2006 06:04 Assuming you are talking about sending lingo commands from a webpage to a shockwave movie, then you can add some javascript functions to your webpage like this // JAVACRIPT IN YOUR HTML function SendMessage () { setTimeout('doSendMessage()', 100); } function doSendMessage () { var data = document.form1.textfield2.value; document.form1.textfield2.value = ""; var sw = document.getElementById('shockwaveMovieName'); sw.EvalScript(data); } Then your html link would look like this <a href="#" onClick="return SendMessage();"> to receive the incoming message from javascript, you need to write a moviescript function like this: -- LINGO on EvalScript (astring) put "RECEIVED FROM JAVASCRIPT: " & aString do aString -- or similar end Note -- last time I looked, sending messages to shockwave with EvalScript seems to fail with Firefox and Safari! There was a demo at http://www.lingoworkshop.com/Testzone/javascriptcommtest.php -- I'll put it back up in the morning -- Luke PS - if you are referring to hyperlinks in text cast membes with a shockwave movie, then check out NeoPulse's reply.
|
Pages: 1 Prev: Creating a Glossary Next: How to change Hyperlink color without click |