Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asfunction issues 1

Status
Not open for further replies.

gormster

Technical User
Mar 1, 2005
27
AU
Hi all

I've got a flash site that utilizes dynamic HTML text, and I use the asfucntion protocol to call internal flash functions from the links in that text. Up until fairly recently it worked perfectly - however, now, whilst it still works when I run it in flash (as in, Control>Test Movie), the asfunction links do nothing when I run it in a browser (even if I'm running it from my hard drive).

I'm not sure, but I think this might have something to do with the version nine upgrade for browsers. Has anyone else had a similar problem, or (more importantly) found a workaround? Any help would be greatly appreciated.

Thanks in advance,
-gorman
 
Did you ever solve the asfunction problem? I have the exact same trouble. Thanks in advance.
 
Here's the quick test I just did. This works fine for me. Does this work for you?
Code:
var tf1:TextField = this.createTextField("tf1", 1, 10, 10, 300, 1);
with (tf1) {
	autoSize = true;
	html = true;
	htmlText = "Some text with <a href='asfunction:helloWorld'><u>asfunction link</u></a>";
}
var tf2:TextField = this.createTextField("tf2", 2, 10, 40, 300, 1);
tf2.autoSize = true;
function helloWorld():Void {
	tf2.text = "Hello World!";
}

Kenneth Kawamoto
 
Hi everyone!

Oh my god, I completely forgot I even posted this. I actually gave up at the time.

I think it actually did have something to do with the version nine upgrade, since I recently upgraded to Flash CS3 it works fine, despite the fact that I'm still using ActionScript 2.0.

So thanks, everyone
-gorman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top