A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: HOW TO??: make a hyperlink in a dynamic text field

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Location
    Newport Be-ach, CALI
    Posts
    25

    HOW TO??: make a hyperlink in a dynamic text field

    I'm trying to have a hyperlink in a dynamic text field.

    I want the field to be updated from an outside file (txt? or html?)

    All it need to be is a line of text to click on that will take the user to whatever URL happens to be assigned to that txt or html file at that given moment.

    I've tried loadvariables, and it doesn't semm to be the right way to go about it

    Can anyone help me?

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Posts
    20
    Could you just put the dynamic field inside a button and then give to button a getURL action?
    Arch

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Location
    Newport Be-ach, CALI
    Posts
    25
    but then the flash file would have to be altered to update the changing url links.

    I need non-flash users to update the hyperlink through the use of a linked text file or html file

  4. #4
    Senior Member
    Join Date
    Sep 2002
    Posts
    109
    You can do this a couple of ways-
    easiest is to have a text file with the vars-
    LoadVars ( or loadVariables )
    then make a button - with a dynamic text field - make sure html is selected.
    Set the text to the var in your text file - load it as html text and have it enclosed in <a> tags.

    There ya go.
    you could also do a getURL
    or save the vars outside as an XML file.

  5. #5
    Junior Member
    Join Date
    Aug 2002
    Location
    Newport Be-ach, CALI
    Posts
    25
    but how would the text be imported as a hyperlink?
    wouldn't it have to come in html form?
    And how would i have to format the text?

  6. #6
    FK's Official War Driver wiReZ's Avatar
    Join Date
    Jun 2002
    Location
    wireless
    Posts
    615
    It's basically HTML formatting inside, pretty simple.

    Follow the instructions of loading text with loadVars()
    http://www.macromedia.com/support/fl...t_scrollmx.htm

    Here are valid HTML formatting snippets for dynamic text.

    http://www.macromedia.com/support/fl...s/htmltext.htm

    Hope this of some help to you.
    My current rig: AMD Athlon64 3500+(Winchester Core) MSI K8N Neo2 Platinum - 1GB
    (2x512MB) Kingston HyperX DDR333 BH5 - ATI All-In-Wonder 9800 Pro 128mb - SB Audigy 2
    WD 80GB 7200RPM 8MB - WD 250GB 7200RPM 8MB - MAX 120GB 7200RPM 8MB - Dell 2001FP 20.1 LCD

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