Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-06-2003, 08:15 AM   #1
Registered User
Join Date: Aug 2003
Posts: 3
Question Load popup window from external text file

Using Flash 5.

I want to spawn a customised popup window from a external text file but can't get the damn thing to work. Here is the part of my external text file that want to open the popup:

<FONT FACE="Verdana" SIZE="10" COLOR="#FF0000"><B><U><a href="contactform.html" target="sdpop" onClick="javascript:window.open('contactform.html' ,'conpop','width=300,height=300,scrollbars=yes');" >contact form</a></U></B></FONT>

Does Flash 5 support this?
Am I typing it wrong?
Would I be better off using variable?
Why am I such an embicile.

Any help here would be greatly appreciated. I've checked the usual sites for tutes, and scan the search engines in the hope that there was something on this but could not find anything.

One last thing though this is not important. Can I get my external text file to tell Flash to do tellTarget actions?
busty is offline   Reply With Quote
Old 08-07-2003, 05:29 AM   #2
Registered User
Join Date: Aug 2003
Posts: 3
Talking Finally worked it out. Here is how.

I believe the origonal code didn't work because the swf file that was reading from the external .txt document was nested in level 2 of the base clip in the html page that had the javascript in the head content. It had no problem opening the window, but it wasn't parsing the javascript.

The way around this was to create an asfunction in the flash file, and then have the link in the external text file as follows:
<A HREF="asfunction:MyFunc">Contact Form</A>

This tell flash to carry out the function, which in this case was telling a movie clip in the base movie to goto and play a certain frame. This frame has the getURL action which containts the Javascript and has no problems parsing the Javascript in the HTML page it all sits in.

busty is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:39 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.