|
-
asfunction syntax in MC
I'm having a syntax problem with my asfunction. I practiced the asfunction on a test file with one main timeline. I figured out how to make that work. The problem is trying to run the asfunction from inside a MC calling up an external HTML file to go to a frame in the MC. With me so far?
Here's what I'm trying to do:
I have a MC (movie clip = faqmc) off the main timeline. Inside the MC I have an external HTML file loaded. In that text file I have a HREF that is trying to jump to a labeled frame (faq1) in the MC. Doesn't work because I think I'm having a syntax problem.
Here is the function I have in the first frame of the MC:
function gotoFrame(num) {
gotoAndStop(num);
}
Here is my HREF in my text file:
<A HREF="asfunction:_root.gotoFrame,faq1">click this</A>
Since this worked with one timeline, I figure I'm missing something since I'm trying to do this inside a MC? What am I doing wrong gurus? Do I have to add a MC reference in my HREF? Do I have to put my function in the main time line of the file?
Please lend me your big brains. thank you.
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
|