# More Dynamically Loaded text prblem

**URL:** <https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952>\
**Category:** Uncategorized\
**Created:** [July 7, 2003, 4:07pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952 "2003-07-07T16:07:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![worm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/worm/32/235_2.png) [@worm](https://forum.kirupa.com/u/worm)\
**Post date:** [July 7, 2003, 4:07pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/1 "2003-07-07T16:07:35Z")

</div>

I have some website links in a dynamically loaded text file. MY problem is i dont know how to have the links open in a new window. ne suggestions?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:15pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/2 "2003-07-07T16:15:55Z")

</div>

the getURL() format is as follows:

getURL(url, target, method);

now, target is the method that is probably what you’re having trouble with. there are 4 options you can use, that I am aware of.

“\_self”  
“\_blank”  
“\_top”  
“\_parent”

If you want a new window to be opened, I believe you’ll want to use “\_blank”.

So for you it could be (or possibly a different method):

getURL(“[http://thepageIwant.com](http://thepageIwant.com)”, “\_blank”, “POST”);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:24pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/3 "2003-07-07T16:24:37Z")

</div>

thanx.  
One ques. should i post the above code in the flash page that contains the dynamically loaded text or in the text file itself.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:31pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/4 "2003-07-07T16:31:58Z")

</div>

```php

<b><a href="http://www.usapa.army.mil/pdffiles/r25_50.pdf" target="_blank">AR 25-50, Preparing and Managing Correspondence, 03 June 2002<b></a><br> 

```

it goes in the textfile

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:33pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/5 "2003-07-07T16:33:54Z")

</div>

the getURL() function should go in your actionscript in the flash object.

Just one more thing to note, you do not have to you an absolute URL (for example “[http://www.here.com](http://www.here.com)”) you can instead use a variable which contains the link you want to go to, since you mention you are doing dynamic stuff.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 4:33pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/6 "2003-07-07T16:33:59Z")

</div>

thanx.  
I had it in mind 2 do what digitalphilosophy posted but just wasnt sure.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 8:47pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/7 "2003-07-07T20:47:31Z")

</div>

one more ques. I dont know if im pushing the boundaries of flash here but wold it be possible to put this or any actionscript command inside the dynamic text file

```auto
on (release) {
	// customize the window that gets opened
	// 0 equals NO.
	// 1 equals YES.
	address = "slbdeadbeat.html";
	target_winName = "slb";
	width = 544;
	height = 394;
	toolbar = 0;
	location = 0;
	directories = 0;
	status = 0;
	menubar = 0;
	scrollbars = 0;
	resizable = 0;
	// sends data back to the function
	openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

```

I’ll elaborate more on what im getting at, once this question is answered.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:01pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/8 "2003-07-07T21:01:38Z")

</div>

I asked the above because i want the text to open a centered pop up window (which is what the above code is about) so if yall know an easier way tell me plz.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:08pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/9 "2003-07-07T21:08:56Z")

</div>

read about

```auto
#include

```

in Flashs’ reference

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:11pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/10 "2003-07-07T21:11:46Z")

</div>

If you want to customize the popup window on dnamic loaded txt, do this:

1. On your html page of your flash movie place this code between the \<head\>\</head\> tags:

```php

<script language="javascript">
function popup()
{
window.open("yourfile.html","","height=550,resizable=yes,scrollbars=yes,status=yes,width=600,left=0,top=0");
}
</script>

```

Note that there are other properties u can customize, just need to know javascript.

2)On your txt file place this tag:

```auto
<A HREF='Java-script:popup()'>here is your link</A>

```

Remove the “-” in Java-script

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:12pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/11 "2003-07-07T21:12:35Z")

</div>

> \*Originally posted by worm \*  
> \*\*I asked the above because i want the text to open a centered pop up window (which is what the above code is about) so if yall know an easier way tell me plz. \*\*

yes, you can  
just make a function in JS and call it from flash with

```auto
getURL("javascript : /function goes here/");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:12pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/12 "2003-07-07T21:12:54Z")

</div>

nice claudio, i was just about to break out the ol’ AS book

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:18pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/13 "2003-07-07T21:18:42Z")

</div>

edit:

```auto
<A HREF='about :popup()'>here is your link</A>

```

could u xpln this some more in terms of where the website address would go.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:28pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/14 "2003-07-07T21:28:18Z")

</div>

You’re welcome 🙂  
In case you dont know, here are some properties of the window.open method:  
[list]  
[_]directories  
[_]height  
[_]hotkeys  
[_]location  
[_]menubar  
[_]personalbar  
[_]resizable  
[_]screenX  
[_]screenY  
[_]scrollbars  
[_]status  
[_]toolbar  
[\*]width  
[/list]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 9:47pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/15 "2003-07-07T21:47:51Z")

</div>

i know the properties aready. thanx neway.  
what i was asking above is, where exactly in the code provided do you place the actual address of the site ur linking to.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2003, 10:29pm UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/16 "2003-07-07T22:29:34Z")

</div>

Sorry, i cant type the word javascript in the code… just read my other post where i explain the code. I edited it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2003, 6:57am UTC](https://forum.kirupa.com/t/more-dynamically-loaded-text-prblem/24952/17 "2003-07-08T06:57:52Z")

</div>

claudio - you can just write

```auto
javascript :

```

//include a spacespace
