-
html + dynamic text + swf
I have a problem and this is it:
1. I have a flash web page with different categories, Home, Gallery, Profile & Contact form.
2. In the Home category I have a dynamic textbox which has HTML text loaded from outside the swf file.
3. Inside that text are news about all sorts of things including references to some of the content in the Gallery category.
4. and now to the problem... How can I make a link within the HTML text in the dynamic text box that redirects the user directly in to the Gallery category to the specific content mentioned in the HTML text ?
-
Look up "asfunction" in the dictionary. You place asfunction in the href of your links to fire a function directly in flash. You can even pass it a variable:
Code:
var myroot:MovieClip = this;
var goNavigate:Function = function(section:String) {
myroot.gotoAndPlay(section);
}
myTextField.htmlText = "<a href='asfunction:goNavigate,gallery'>Click to go to the gallery</a>.";
-
html and actionscript continues :)
Last edited by camoflash; 10-08-2006 at 08:05 AM.
-
Problem solved
finally got this.
Did it in a similiar way as you have described with fiew changes.
Last edited by camoflash; 10-08-2006 at 08:04 AM.
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
|