A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: html + dynamic text + swf

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    5

    Question 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 ?

  2. #2
    Beyond the Sea
    Join Date
    Mar 2000
    Posts
    997
    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>.";
    The Coolest Website EVER!
    Do you live in Kansas City? Come join us at KCWebCore

  3. #3
    Junior Member
    Join Date
    Aug 2006
    Posts
    5

    html and actionscript continues :)

    see below
    Last edited by camoflash; 10-08-2006 at 08:05 AM.

  4. #4
    Junior Member
    Join Date
    Aug 2006
    Posts
    5

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center