Serendipitous 0 Report post Posted November 30, 2004 Hello, I am looking for some help with some flash buttons I made in flash mx 2004. I had made these link buttons for a livegate.net site I had going, until they shut down, and now I can not get the buttons to open in the desired main frame. I reopened the flash file and redirected the urls to an angeltowns.com and a freewebs.com site, and neither of them would open up in the main frame, they popped up in new windows. Is it possible that these sites won't allow it open, or is it something I am doing wrong? I am allowed to open it _self, _parent, _blank and _top, but I have it set on _blank. I believe that is what I had it set for in my previous livegate site. I hope I have given enough of a description for you guys.. if not let me know.. here is a link so you can check it out and let me know if you see anything that may help.. My WebpageThanks Share this post Link to post Share on other sites
kokushta 0 Report post Posted December 15, 2004 I think you need to change the target from _blank (which opens the linked page in a new window) with _self.Is there any possibility to leave the target value empty? If so, do so!I believe that problem wont happen again. Share this post Link to post Share on other sites
pbolduc 0 Report post Posted December 15, 2004 The problem isn't a flash problem, I believe it is a frame direct issue. This can be easily solve with a simple javascript. Place this code in the head tag of your documet, or just above the link itself: <script><!-- function linkName(){ parent.target frame here.location.href='Desired URL Here' } //--> </script> The anchor tag in the calling link would be: <a href="java script: linkName()" onclick="window.focus()">Whatever</a> Do this for each link changing the link name and desired URL accordingly. Below is an example of a roll over image script calling the above java script from the head tag: <script language="JavaScript">SecondImage00='image1.gif0';</script> <a href="java script: linkName()" on click="window.focus" onMouseOver="{OrigImage00=img00.src; img00.src=SecondImage00} " onMouseOut="img00.src=OrigImage00"> <img alt="" name="img00" border="0" src="image2.gif0" onLoad="TempImage00=new Image(0,0); TempImage00.src=SecondImage00"></a> Hope this helps. Share this post Link to post Share on other sites
Serendipitous 0 Report post Posted January 5, 2005 Thank you both for your time and input on this subject, however I have decided to give up on the whole frame crap. I have saved the information you have shared and perhaps I will try again someday. It was just soooo frustrating because I had it working on a previous website and now with my new one I can not get it to work. Oh well, not everyone likes frames anyway. Again thanks for your time.. Share this post Link to post Share on other sites