View Full Version : how i can open a popup win from a .txt in flash
ASfan
11-24-2003, 09:31 AM
hi all!!
Anyone can explain me how i open a popup window from a .txt file?
The external txt its render as html in flash, and i want to open a window whith a fixed size, width="500" height="400". I know to open from a button whith javascript but with .txt seems dont work. Some help will be sincerely apreciate. Thanks.
ASfan.
DEROY
12-15-2003, 07:50 PM
i have the same problem you are having. can anyone help? -d-
CyanBlue
12-15-2003, 09:28 PM
Two people were asking the same question, but I do not understand the question at all...
How do you open a popup window from the external text file??? What do you mean by that??? :confused:
the_unknown_one
12-17-2003, 08:11 PM
this i probably wrong, but do you mean without using JS but using HTML on its own to open a link in a new window?
then you just have
"<A href="theweburl" target=_blank>blahblah</a>"
fusionx3
08-31-2005, 06:19 AM
actually i do understand the problem~ cos i also facing the sam eproblem too~
flash can read txt file and render as HTML on the text box. It can also read html tags like <B> and <A>.
But I wan more than just link. I wanted to open the <A HREF> link, but not onto a normal IE browser but open as a pop up window.
Anyone has any idea of how to execute such logic???
oldnewbie
08-31-2005, 06:27 AM
You can use an "a href" tag, itself calling an asfunction within the Flash movie, which would in turn then open a popup, based on this popup code generator...
http://www.flash-db.com/PopUp/
ASFUNCTION...
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_15639
fusionx3
09-01-2005, 02:25 AM
hi, i am back~
I managed to figure out how the flash read txt popup works.
But what i used was flash with php.
1) Insert the javascript onto the html <head> where the flash will be loaded
<script>
//Modeless window script- By DynamicDrive.com
//for full source code and terms of use
//visit http://www.dynamicdrive.com
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialog Height:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable= 1,scrollbars=1")')
}
//configure URL and window dimensions (width/height)
//modelesswin("http://yahoo.com",600,600)
//To load via link, use something like below:
//<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>
</script>
2) Then at the link part, type :
<a href ="javascript:modelesswin('http://yahoo.com',600,400)">Yahoo</a>
I used Flash with PHP interact with MySQL Databse to do it~
I am not sure whether it works for txt file, but the logic is almost the same~
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.