A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Hep needed Please!!

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Location
    Tokyo
    Posts
    29

    Hep needed Please!!

    I have a flash movie which features apartment listing for rent.
    I made a lot of dynamic text fields to which I load variables from a text file.
    And my text file looks something like this:

    &name=Sun Hill
    &station=hayward
    &walk=3min
    &price=320,000

    &name2=Hill Crest
    &station2=fremont
    &walk2=10min
    &price2=560,000

    And I want the name of the apartments to have hyperlinks. (in this case, "name" and "name2")
    Is it possible?
    How can I make it happen?

    Help me please
    Thank you in advance

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    This should work, with a font color tag also.

    name="<a href='"+"http://www.sunhill.com"+"'><Font Color=\"#FF0000\">"+"Sun Hill"+"</Font></a>"

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Location
    Tokyo
    Posts
    29
    Thanks for the help, but it's not working...

    Is it because I load variables within a MC?

    And what if the address of the Sun Hill apartment is www.yahoo.com
    or something?

    Is there a way to make it link to it?

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Location
    Tokyo
    Posts
    29
    I forgot to say earlier, but it shows like this in movie:

    ""Sun Hill""

    The "+" disappears and it doesn't have a hyperlink.

  5. #5
    Junior Member
    Join Date
    May 2002
    Posts
    6
    I can't remember where I came across this but the way I remember seeing it done was by setting the dynamic text field to render html text. The button looks like <>, it is inbetween the render background and the selectable buttons.

    Once you have turned that on for the text field, you just need to put the html into it, like:

    textField.text = "put html code for a hyperlink here";

    That should do it.
    Last edited by e-retina; 01-06-2003 at 10:28 PM.

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    It should be possible using an "a href" tag as described in the middle of this page:
    http://www.macromedia.com/support/fl...s/htmltext.htm

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