|
-
Any ASFUNCTION gurus out there? I posted a form of this question already but got no response. I'm trying to make the asfunction work for me much like the gotoAndStop actionscript. I have an external text box that I want to add a hyperlink that takes me to and stops to a label on the main timeline.
////
the link in the macromedia site which gave me the example:
Note: This is equivalent to assigning "<A HREF="asfunction:myFunction,argument_1">Click here</A>" to an HTML-enabled text field variable.
////
Can't get this to work though.
So, I need some guidance for: hyperlink, gotoAndStop, label on main timeline.
This seems simple enough for someone that knows how to work with the ASFUNCTION. But that's not my bag baby. Any help would be appreciated. Thanks.
-
look here for info & examples of asfunction:
http://chattyfig.figleaf.com/flashco...php?asfunction
note particularly "Using built-in actionscript function, such as gotoAndStop can cause crashes"
--------------------------------------------------
simple working example: if you have a html-formatted dynamic textfield called myText
Code:
myFunction = function(output){
trace(output);
}
myText = "<a href='asfunction:myFunction,hello'>click here</a>";
Click the link and get output: "hello"
--------------------------------------------------
-
asfunction for me.
Thanks for the replies, but let me try and be more specific. The ASFUNCTION links from macromedia and assorted others aren't really giving me clear answers to what I'm looking to do.
Here is a little more detail: [if anybody has a the voodoo to make this happen, let me know]
Here is my external text file that has been loaded:
text=<FONT FACE="verdana"><FONT SIZE="9"><FONT COLOR="#000000">PROFESSIONAL EXPERIENCE
<FONT COLOR="#666666">[select underlined clients for details]
<FONT COLOR="#0000FF">ADNOW Advertising, Los Angeles
<FONT COLOR="#666666">Senior Account Executive
(December 2000 - Present)
<A HREF="what goes here to take me to a label on the maintimeline?"><u>Sample Client</U></A>
////
If this is indeed an ASFUNCTION, what is the proper syntax for taking me back to the main time line to "Label 1"
So in simple terms: what is the proper format (syntax, string???) to take me from a hyperlink in an external text file back to a labeled frame on the main timeline.
Thanks in advance gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|