Groups | Blog | Home
all groups > flash actionscript > january 2005 >

flash actionscript : asfunction


msngLinkCO
1/3/2005 11:50:17 PM
Hello,

I've posted this topic before and have yet to resolve this. I'm hoping my
question is still valid.

I'm trying to use the asfunction via and externally loaded HTML file to load a
separate HTML file into a separate dynamic text field.

My HTML code:

<a href="asfunction:answer,text/faqAnswer01.html">Why is this the first
question?</a>

My Flash code:

content_txt.autosize = true;

var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("html_styles.css");
content_txt.styleSheet = ss;

content_txt.multiline= true;
content_txt.wordWrap = true;
content_txt.html = true;

story = new XML();
story.ignoreWhite = true;
story.load("text/faqQuestions.html");
story.onLoad = function () {
content_txt.htmlText = story;
}

function answer(href: String) {
this._parent.gotoAndPlay("c02");
this._parent.answer_txt.load(href, true);
}

This effectively moves the playhead to frame "c02" but doesn't load
"faqAnswer01.html" into the dynamic text field "answer_txt" at that frame. My
guess is it might have something to do with my parameters?
kglad
1/4/2005 2:58:42 AM
msngLinkCO
1/4/2005 5:36:32 PM
AddThis Social Bookmark Button