A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: dynamic text with hyperlink

  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    68

    dynamic text with hyperlink

    Hi
    I want to create a dynamic text file (if the text is long it will create the scroll bar) with hyperlinks in it.

    Create a .txt for the external data and put a dynamic text in flash. But I still cant view the text. Any one do me a easy sample very much appriciated. If not an advice about where to look

    Thanks

    Zorra

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    Loading an external file with html links is easy.
    Suppose you have a text file with this:
    Code:
    &myText=you can click <a href="http://www.flashkit.com" target="_blank">here</a>.&
    This code can be loaded and used in flash:
    code:

    var my_lv = new LoadVars();
    my_lv.onLoad = function()
    {
    trace(my_txt);
    my_txt.html = true;
    my_txt.htmlText = this.myText;
    trace(this.myText);
    };
    my_lv.load("external.txt");


    i.e., the link is clickable.
    Attached Files Attached Files

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    68

    thanks

    Hi Nunomira,
    Thanks alot. I am a happy girl now

  4. #4
    Member
    Join Date
    Jul 2004
    Posts
    68

    mail link

    Hi Nunomira,

    By any chance is it possible to attach a mail link in the dynamic text field?
    Thanks

  5. #5
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    exactly the same:
    Code:
    &myText=you can <a href="mailto:someone@domain.com">email me</a>.&

  6. #6
    Member
    Join Date
    Jul 2004
    Posts
    68
    thanks alot.

  7. #7
    registered misuser
    Join Date
    Feb 2004
    Location
    Io, Vicinity of Jupiter
    Posts
    157
    Hi,
    Hey Nunomira, great post. I've been working my way with that

    However, where I come from we have accents (é, Ã*, ù and so on). Using this technique, flash player will output a little square instead of the right caracter.

    Usually this means that the caracter isn't available in the font, but I'm using Arial and I know for sure that arial has all the french (err, I mean the jupitorian) caracters.

    I tried using the html code for "Ã*"
    Code:
    &Agrave;
    But it got into a conflict with the "&"...

    Any idea on how I can do that? I hope it is possible because this is a serious drawback!

    Help please!!!

    Tks
    Last edited by zap danger; 11-17-2005 at 04:04 AM.

  8. #8
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi zap danger,

    That's very easy.
    Read the last line of The data in the text file.

  9. #9
    registered misuser
    Join Date
    Feb 2004
    Location
    Io, Vicinity of Jupiter
    Posts
    157
    Thanks, this is the kind of thing one cannot find by himself!!!

    Thanks for all the people sharing

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