Wow, this is a very good idea, I will try and implement it. Thanks for your help Asim
-----Original Message----- From: DarĂo Vasconcelos [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 8:46 PM To: Tapestry users Subject: Re: Flash Links If you don't want to hardcode your links, you can create a @Script component that would look like this: <script> <input-symbol key="linkOne"/> <input-symbol key="linkTwo"/> <body> function callActionLink (link) { url = ''; if (link == 'commandOne') url = '${linkOne}'; else if (link == 'commandTwo') url = '${linkTwo}'; location.href = url; } </body> </script> your .html would look something like <span [EMAIL PROTECTED] script="myScript.script" linkOne="ognl:getActionLink('yourFirstLink')" linkTwo="ognl:getActionLink('yourSecondLink')" /> then in your .java: public String getActionLink(String item) { IRequestCycle cycle = this.getPage().getRequestCycle(); Object[] parameters = new Object[] { item }; String url = cycle.getEngine().getService(Tapestry.DIRECT_SERVICE). getLink(cycle, this, parameters).getURL(); return url; and, finally, your .fla would call javascript:callActionLink('commandOne'); on some button's onRelease() code. Regards, Dario On 10/17/05, Muralidhar Y. <[EMAIL PROTECTED]> wrote: > I think it is not good to hard code the links because the frame work may > change anytime the way they construct links. They want that to be abstract. > So use one of the engine service to construct the links. Its very easy job > if you follow this approach. > > > > > Muralidhar Y > Software Engineer, > Adastrum technologies-Nikai groups, > EmiratesGroup-I.T Division, > Dubai, UAE. > Mobile : 00971-50-2256149. > http://www.adastrumtech.com > http://www.mercator.aero > (Keep Smiling. Be happy All The Time.) > > -----Original Message----- > From: Asim Khaja [mailto:[EMAIL PROTECTED] > Sent: 18 October 2005 06:02 > To: tapestry-user@jakarta.apache.org > Subject: Flash Links > > I am using a border component, and want to have most of that border > component to be in flash. The flash part of the border component will also > have a navigation header (Menu, contact, etc.). What would be the best way > of going about creating the links? Should I just hardcode the > \service=DirectLink.. Or is there another way? > > > > Thanks, > > > -- An expert is a person who has made all the mistakes that can be made in a very narrow field. Niels Bohr --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]