Greetings All,
I have posted this on other Flash forums and have had no luck. Hopefully
someone here will have some good news for me. This is for an AS3 project.
Thanks!.......
I have a challenge that I need some help on. I have a site that is using
Flash as a front-end reader of an XML file that is providing all content as
html formatted text nodes. The information is being read into Flash and
displaying exactly as I want it to. The problem is the anchor tags that are
using "event:" to pass parameters to a function that includes an
ExternalInterface call are not passing their info on to the javascript that
is on the html wrapper file. I've included all the code below. Any help or
suggestions would be greatly appreciated.
The html info from the XML text node:
<a href="event:page.htm">Click here for more information</a>
The javascript on the html wrapper:
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
The snippet of AS that makes the relevant calls (content_txt is the
TextField that holds the text node html text:
function openWindow(fileName:TextEvent):void {
var fileNameToGo:String = fileName.text;
ExternalInterface.call("MM_openBrWindow",fileNameToGo,'popupwindow','scrollb
ars=yes,width=760,height=400');
}
content_txt.addEventListener(TextEvent.LINK, openWindow);
The test site is at http://www.ddanewilliams.com/campelectric/ The file is
rather large - I apologize. I haven't started tweaking and preloading
anything yet. The link is on the last line of the "about" section.
D. Dane Williams
The Learning Center
Buckman Laboratories, Inc.
901-272-6774
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com