Solved

Open Link in NEW window???

Posted on 2002-06-13
3
165 Views
Last Modified: 2012-05-04
Hello experts,

I have created this scrolling text box with links, wich i import
from a .txt file.
When i test it, it works ok but when i click on the links
the new link opens up in the same window... and i dont want that@# i want them to open in a new window.

In txt file i use html to set up the font colour and whether it is a link or not.
Ex.
<FONT FACE="Arial" SIZE="20" COLOR="#0033FF"><B><u><a href="http://www.eurotribe.fgov.be">http://www.eurotribe.fgov.be</a></u></font>
--------------
Now i should need some code to put in front or after it
to let it know to open in a new window. Those anybody knows wich code this is and where i can place this inside. You're help is very appreciated.

Kind regards
Steven

0
Comment
Question by:stevenvervliet
3 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 7076510
put.....target="_blank"....in like this..and a close </a> tag

<a href="http://www.eurotribe.fgov.be" target="_blank></a>


Z
0
 
LVL 6

Accepted Solution

by:
rootdir earned 100 total points
ID: 7078338
there are three methods to open window from flash

1. use geturl function and call javascript from flash which will open new window. Like as:

geturl("javascript:openNewWindow('http://www.macromedia.com','thewin',
       'height=400,width=400,toolbar=no,scrollbars=yes')")

and copy this code in 'head' of main html page

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

this is best option. because you can control no of parameter related to new window sunch as menu bar, scroll bar, status bar, size etc.

2. use fscommand and call javascript function which will popup new window. or any external function from other scripting tech. like as asp or php

e.g

{if(command=="openWindow"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('http://www.macromedia.com','newwindow',
'height=200,width=300,toolbar=no')),0}

3. simple method as Zeffer stated above is the third way.

check this example for your ref.

http://www.macromedia.com/support/flash/ts/documents/popup_windows.htm

you can download sample also. I think this will help you lot

cheers,
RootDir
0
 

Author Comment

by:stevenvervliet
ID: 7080195
Thank you Rootdir, keep up the good work.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now