Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default URL text linking

    Hi

    On my site there is one area with about 60 names on it, and each has a website that I want to link to. I had already entered all the names and positioned them where I wanted them to go, and got the rest of the scene ready. And it was easy to go back and add the URL to the name by going thru the "Character" panel and entering the address in the URL spot. However, I'd like for the links to be opened in a new window and not taking the current window "forward" to their site (which when it happens and they use the back button, the complete site loads again from the beginning). Is this possible? I know in the AScript coding it can be added as a peramiter, so I'm hoping yes.

    If not, besides doing a html page (which would throw the site completely off) what are my options?

    Flash 5 please, slightly above beginner with AS, and thanks for any advise.

    Alexis

    PS: I did post this in general forumn, and please forgive my crosspost, but I really need an answer to this, and I didn't get anything over there. I'm hoping this is an AS problem.


    [url]www.alexisneel.com[/url]
    AlexisNeel webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Linking object to text?
      I have an odd little problem and can't seem to find an answer anywhere. In some of the texts I set in InDesign (I have 2.0 and no, my boss won't pay...
    2. Linking Text Field
      Have you found any success in linking text fields? I have received some information in regards to using javascript but I am hung up due to my...
    3. Linking Text Boxes
      I am trying to make a flyer in freehand and I need to link 3 text boxes together for use in an article on the frontpage of the flyer. Is it...
    4. linking text from spreads
      I've made a document with several master documents. One for the title pages and one for the text pages for a report. When I load a .doc into the text...
    5. linking scenes with text?
      is it possible to link scenes just using text? I was going to use << and >> in the place of an actual button. Anyone know how to do it easily? I...
  3. #2

    Default Re: URL text linking

    you can ask everything if there is someone who can answer you !

    create text field
    set it dynamic and HTML formated
    than use html syntax

    <a href="URL.of.Bill" target="_blank">Bill</a>
    <a href="URL.of.Smith" target="_blank">Smith</a>

    .....

    hope that helps



    elemental .std webforumsuser@macromedia.com Guest

  4. #3

    Default Re: URL text linking

    elemental.std,

    yes thats true, and yes I am a little hurried with this, but it seems its something thats been done before, and easy for a more experienced Flash user.

    Your reply helped, given my limited experience with any code what so ever. One thing, where exactly am I supposed to put the html syntax you gave? If I need to edit the resulting HTML file that Flash produces with all the code for 60 people, I guess I'll have to do that. However, with the trials I did, I couldn't get the code to work right, or at least position itself in the dynamic text boxes I made. Maybe my whole process was wrong, I'm not sure.

    Thanks for your help.

    Alexis

    [url]www.alexisneel.com[/url]
    AlexisNeel webforumsuser@macromedia.com Guest

  5. #4

    Default Re: URL text linking

    So when you create text field and spesified it to HTML Dynamic text field
    that means that the text which is put into this field is in state of HTML syntax.

    The HTML syntax that Flash understand and translate depends on the version
    in Flash 5 (that is you version i think ?) you can use these tags:
    <b>,<i>,<u>,<br>,<a> ...
    in Flash MX there is no great addon of tags but in Flash MX 2004 you can use Stylesheets and <IMG> and others tags.

    When you create your text field which will contain the list of LINKs name it FIELD (for ex.).

    Now you can change the type of this field and the contain.

    //this line will set the field DYNAMIC
    FIELD.type = "dynamic";
    //this line will set it to use HTML syntax
    FIELD.html = true;
    //this will put contain into the field
    FIELD.htmlText="BLA BLA";
    //this line will add the link you want
    FIELD.htmlText="<a href="URL1" target="_blank">LINK</a>";

    You can miss the first two lines if you set up the text field manualy using property bar.

    There is another way to put content into the field.
    You have not to named the text field but you have to set variable which is related to this field.

    //html_text is that variable
    //this line will put content into the field
    html_text="<a href="URL1" target="_blank">LINK</a>;

    Hope this helps.


    elemental .std webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139