Flash dynamic text links

I've created a dynamic (scrolling) text field in Flash MX
2004 Pro. The text contains links to webpages. The links work in
the published Flash SWF but not when I place the SWF in Director.
Please help?
Lars

You need to catch the getURL() message in Director and have
it open your
browser to the link. Try attaching the following as a
behavior to the
Flash sprite:
on getURL me, aLink
gotoNetPage(aLink)
-- better to use Buddy API:
-- OK = baOpenURL(aLink)
end

Similar Messages

  • Flash dynamic text in captivate errors

    Hello all,
    Has anyone experienced any issues when using a dynamic text
    field in flash, then importing the swf file into captivate? I am
    using actionscript to populate a few dynamic text fields in flash.
    I am then publishing the swf and importing the swf into captivate.
    Once I do this, none of my text appears! When I launch the swf in
    explorer and the flash authoring environment, it works fine. I have
    tried turning off the 508 compliance, eliminated all captivate
    animations/transitions, made sure that the frame rates are matched
    between flash / captivate (although not likely the prob), using a
    basic arial font Nothing works!!! anyone have any possible
    solutions? Here is a link to the swf that I am working with (tried
    other flash files with 'dynamic' text, none of them work).
    http://kplearning.com/project_testing/flashTesting/table1_wCanvas.swf
    (swf file)
    http://kplearning.com/project_testing/flashTesting/table1_wCanvas.zip
    (working file)
    Thanks in advance for any help!
    Mike

    Hi Deb
    This falls into that "odd" or "grey area" category and is
    likely the reason you haven't seen anyone reply. I say "odd" or
    "grey area", because you are now beyond the realm of pure Captivate
    behavior and have entered the realm of where you are now blending
    Captivate with other Flash output in an effort to try and achieve
    something unique. And there is absolutely nothing wrong with this.
    Personally, I would encourage it, as you never know what you will
    discover to create a neat effect.
    However, having said that, you are now dabbling in something
    that perhaps nobody else has yet tried. I'm no Flash expert just
    yet, but I'm beginning to work on those skills. From what I DO
    understand about blending Captivate with Flash, I believe Captivate
    only likes and easily works with
    Flash 6 output and
    Actionscript 1. Anything newer and it likely won't work. I'm
    unsure if Flash 6 output is even possible to create, where you can
    call an external text file. For all I know at this stage, it could
    be a Flash 7 or Flash 8 only feature.
    Assuming this was something that was part of the feature set
    for Flash 6, if you are using Flash 7 or 8 to create the Flash
    file, perhaps try publishing in the earlier format?
    Hopefully this helps... Rick

  • Dynamic text link hover color change.

    I have some dynamic text in Flash and I have a link with the text. Is there a way I can change the hover color without CSS? Here is my code.
    thanks.
    data=EASTERN CANADIAN DISTRICT<br><a href='mailto:[email protected]'><font color="#51884B">Mike Linnen</font></a><br>905-430-0955<br>Cell: 905-409-7159

    Disable the "Show border around text" option of your dynamic
    text field.
    Draw a rectangle with the color you want, & locate it
    behind your dynamic text field.

  • All dynamic text links going to same link even though URLs differ

    Hi,
    I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only. Am I supposed to set something here to stop it from doing so?
    Any help appreciated.

    Ok, I figured out why all the links are going to the same page. Well all the other links are under the first headline, which I am making transparent for the others to appear, but not removing from the stage. Hence even though the first headline is not visible, it is still the top link on the screen, causing everything to go there.
    Any suggestions on how I can make it appear below the newly visible headline?? They are all arranged one below the other.

  • Can dynamic text links (XML) pass arguements to movie clips?

    I have a dynamic text field that i'm pulling a XML file into,
    but I need the URL links within the XML to control a movie clip.
    I've read that you can pass an arguement inside flash from within
    the XML doc but i'm not positive how it would be done.
    Any love on this one?

    Hmm, this leaves a couple questions... Where would I put the
    script/function, inside the <a href> tag? That could get out
    of hand... like in-line CSS styles. And I have a URL node within
    XML set-up so I don't know if this solution would work.

  • Dynamic text links

    Can anyone help with this? I'm trying to get text on a screen
    to link to documents (that will be on a CD, currently on my hard
    drive) such as pdf, txt etc. Using Flash 9.
    Thanks.

    Thanks again for your reply. Since my last posting, I have
    gotten mostly everything figured out except the main issue, which
    is creating a link to documents from text. In the following code I
    was able to load dynamic text from an external txt file and I
    inserted an html link in the txt file but I don't want to open a
    browser link, but rather a file on CD or hard drive:
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest("test.txt");
    function textLoaded(event:Event):void
    getStart_txt.htmlText = textLoader.data;
    textLoader.load(textReq);
    textLoader.addEventListener(Event.COMPLETE, textLoaded);
    So everything looks good, except how do I get the html link
    in the text file to open a doc instead of a url? Or maybe something
    in your post will work.
    Regarding buttons and code, this is from a Flash website:
    "So you just started AS3.0 full of excitement and ready for
    some coding challenges, you start coding your first button and
    suddenly, horror, you end up with "WARNING: Actions on button or
    MovieClip instances are not supported in ActionScript 3.0. All
    scripts on object instances will be ignored." or "1119: Access of
    possibly undefined property onPress through a reference with static
    type flash.display:SimpleButton.", indeed the good old AS2.0 event
    system is not working anymore in AS3.0: onClipEvent, onPress,
    onRelease, onLoad, onMouseDown ..etc, have become things of the
    past!!!
    What happened? well basically the whole event handling system
    has been revamped in Actionscript 3.0 and we are going to have a
    quick look at it."
    When I select a button in Flash 9, the error message I get is
    "Current selection cannot have actions applied to it."
    Thanks.

  • How to embed the Greek language Characters in flash dynamic text field

    Hi,
    I have a problem with dynamic text field in flash. I want ot embed Greek Language characters like ≤, ≥, ± etc through actionscript (embedFonts).
    Plz help.
    Rakesh Kumar

    Hi,
    First u must create the new font in right click on library then choose the font.
    Right click on the font add linkage name that name here is my font
    import flash.text.TextFormat;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.font =  "my font";
    my_txt.embedFonts = true;
    my_txt.text = "Hello world";
    my_txt.setTextFormat(my_fmt);
    Try this. i think it will help u.
    Saransoft

  • Download BLOB - dynamic text link

    Hi apex users,
    I have a report with a standard blob download columns, using the following SQL:
    select  a, b, filename, minetype, dbms_lob.getlength(blob_column) report_length
    from table
    *where [...]*
    and the following format is applied to the "report_length" column:
    DOWNLOAD:BLOB_TABLE:BLOB_COLUMNS:BLOB_ID::MIMETYPE:FILENAME:::inline:Download
    It's work fine, but i'd like te personalized the "Download" link, and make it change dynamically:
    I've read in the documentation that the link text supports substitutions strings, and try to test with:
    DOWNLOAD:BLOB_TABLE:BLOB_COLUMN:BLOB_ID::MIMETYPE:FILENAME:::inline:#OWNER#
    and it's work fine.
    But what I want is to diplay the a column of my sql query:
    DOWNLOAD:BLOB_TABLE:BLOB_COLUMN:BLOB_ID::MIMETYPE:FILENAME:::inline:#A#
    DOWNLOAD:BLOB_TABLE:BLOB_COLUMN:BLOB_ID::MIMETYPE:FILENAME:::inline:#COL01#
    But doesn't work. Am i missing something?
    AkA

    Hi,
    Thanks KGLAD, I will give it a try. Much appreciated. This
    XML stuff via Flash is a difficult learning curve for me. ;)
    Kind Regards,
    Boxing Boom

  • Dynamic Text Links - XML

    Ok, I'm a real novice when it comes to code so I'm hoping
    someone out there can help me.
    I have a band site that I has tour dates loading via xml into
    the flash site. The tour dates can be clicked on to take you to the
    Venue's website. The problem, and I'm sure it's insanely simple is,
    I would like the link to open a new browser window (target =
    "blank"), Where in my code can I put this? I've gotten it this far
    and I'm going nuts now...
    Thanks in advance,
    Mike.
    See attached code:

    //line 25 in your script:
    window += "<a href=\"" + myarray
    .link + "\">" + myarray.header + "</a><br>";
    //change to
    window += "<a href=\"" + myarray
    .link + "\" target=\"_blank\">" + myarray.header +
    "</a><br>";

  • Embed Fonts in Dynamic Text Fields

    Hey, I am relatively new around here although I've been a
    member for years. I am just now starting to utilize my account. I
    do have a question in regards to embedding fonts in Flash 8. I have
    read up on this numerous places and haven't been able to find a
    solution that works for me, whether this my user error or not is
    still TBD.
    I am loading text from a XML document into Flash dynamic text
    fields. I need to be using a handwritting font for these text
    fields. After embedding the handwritten font they are not
    displaying in my dynamic fields but are displaying in my static
    text fields that am I also using on the site. I am controlling my
    dynamic text fields w/ an external stylesheet. I believe I must do
    something "additional" for these dynamic text fields but haven't
    figured out what that is, any help anyone can offer is much
    appreciated! Thanks.

    floateronline wrote:
    > Hey, I am relatively new around here although I've been
    a member for years. I
    > am just now starting to utilize my account. I do have a
    question in regards to
    > embedding fonts in Flash 8. I have read up on this
    numerous places and haven't
    > been able to find a solution that works for me, whether
    this my user error or
    > not is still TBD.
    >
    > I am loading text from a XML document into Flash dynamic
    text fields. I need
    > to be using a handwritting font for these text fields.
    After embedding the
    > handwritten font they are not displaying in my dynamic
    fields but are
    > displaying in my static text fields that am I also using
    on the site. I am
    > controlling my dynamic text fields w/ an external
    stylesheet. I believe I must
    > do something "additional" for these dynamic text fields
    but haven't figured out
    > what that is, any help anyone can offer is much
    appreciated! Thanks.
    the question is a bit too general. There are many ways to
    approach it, from copies
    of text fields with that font off stage, to embedded outlines
    and linkage in the library.
    My guess is that somewhere on the way you did not fully
    complete the outline embed options.
    Either done incorrectly or you miss some action.
    Mind to post detail explanation how you embed the outlines?
    Best if you post an example
    file for us to check.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Tables in dynamic text field???

    Hi,
    I am trying to organize an html text in flash dynamic text
    field into tables, I tried using
    testText=<textformat
    tabstops='[50,100]'><b>Name\tAge\tDepartment</b>\nTim\t32\tFinance\n<u>Edwin</u>\t46\tMar keting</textformat>
    but this works only when text variable testText is set inside
    flash script. When loaded dynamicly using LoadVars all
    <textformat tabstops... tabs are just not seen and are omitted.
    I tried to google some answers and I found that textformat tabs
    work only for embedded text. Ok, so I used actionscript command
    myText.embedFonts = true;
    but then I lost all visible text. How come that Flash doesn't
    have some easy way to create so basic thing as tables? Thanks for
    any answer,
    Zbynek
    here is my fla script:

    nobody any ideas?!

  • Dynamic text in Flash: a href="mailto:... tag?

    I am using an Access DB to feed text dynamically to Flash.
    Although some simple html tags work in the text, I tried putting in
    <a href="mailto:[email protected]"> link tag in and it
    didn't work. Does flash not support mailto links in dynamic text?
    Is there a workaround to get a link into the dynamic text that will
    open an email?

    Nevermind! It works - the link didn't change color so I
    hadn't realized the link actually worked... I'm a dummy. Flash is
    smart.

  • Can I embed fonts of all Dynamic Text objects in a Flash file?

    Hi there!
    I'm fairly new to Flash, so please bear with me.
    I have created a Flash file which will act as our company's standard presentation / portfolio of all previous projects.  I've pretty much got it running the way I want, but I've just tried it on a few different computers and realised that the fonts aren't embedded.  I've used our corporate font so it needs to look right.  Having read the following documentation (http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000893.html) I now understand how to embed fonts for one dynamic text object at a time.  However, I have a lot of different dynamic text objects in the file and I would dearly love to embed them all in one step!  The same embedding options can be applied to just about all objects, as they're all the same size and font.
    I hope someone can help me.  If you are able to help please spell things out in simple steps!!  I am aware that I probably haven't yet grasped a number of the basics of Flash.
    Thanks in advance,
    Stuart

    Static text doesn't need to be embeded. So I'm not sure what the problem you are having is. The page you linked to is for making an embedded font in your library that can then be exported for actionscript and used by code and style sheets. If you are following the instructions on the page you liked to you only need to do that once. Which shouldn't be too hard.
    That is usually a different problem that having a bunch of different authortime created textfields that need to have characters embedded.
    As far as I know your only hope to change a bunch of authortime/library items is using JSFL. So even if the thing I pointed to isn't exactly what you need you could keep googling a bit or use that as a template.
    JSFL files are just text files so open it in note pad. Look for the line:
    if(it[i].itemType == "movie clip")
    and change it to this:
    if(it[i].itemType == "movie clip" || it[i].itemType=="button")
    Now it does buttons. You give up too easy.

  • Dynamic text not displaying when publishing for flash 8

    This dynamic text works fine when the movie is published for
    flash 7, but when i export for the flash 8 player it seems to be
    invisible. Is there any obvious reason for this happenning?
    thanks
    jon

    Ok, thanks, looks like you've pointed me in the right
    direction. I havent fixed it yet though. Heres where i am at:
    eval(theTarget+".buttonPrime").tex.embedFonts = false;
    now i can see my text. of course its using a default font.
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.font = "arial14b";
    eval(theTarget+".buttonPrime").tex.embedFonts = true;
    eval(theTarget+".buttonPrime").tex.text = "wasssup?";
    eval(theTarget+".buttonPrime").tex.setTextFormat = my_fmt;
    this isnt working. I have added a font object to the library
    and linked it for actionscript using the monkier "arial14b".
    however my text is quite invisible. i have checcked, 'export in
    first frame' for the font object i even tried it with this
    deselected. i have deselected the embed font option on the text
    feild itself. that doesnt work either (unless i dont try to set the
    text format, so long as i accept a default font, its fine).
    so err, help?
    confused
    jon
    ps further to this is have discovered more about this strange
    behaviour. i can set the text to a different string, provided i do
    not try to embed the font in any way. if i set the font to embed, i
    can have the text display with the correct font, until i change the
    text. then it dissappears. also i cannot seem to affect properties
    like font size by means of my TextFormat object. the textFormat
    object also does not seem to affect the font of the text.
    in short, when exporting for flash 8, i cannot seem to
    successfully embed fonts for dynamic text. the only thigs i have
    gotten to work are: static text (or a dynamic text feild with
    unchanged text) with an embedded font, or dynamic text with a
    default font.

  • Dynamic text Underline Links

    I have created a RSS feed viewer, parsing the RSS feed with
    actionscript 3.0 and viewed on the stage in dynamic text boxes. The
    text in these dynamic boxes is scripted to link to web addresses
    contained in the RSS feeds in the same node as the text being
    displayed. So far so good. Now I need the text in these boxes to
    act as if they were HTML links and show an underline and color
    change when rolled over and clicked on. Help. Attached is my code.

    The trick with the help files is to realize that everything
    is organized by classes. So if you want to do something with
    text...
    Open the help files and select the ActionScript 3.0 drop
    down. Then from that list Expand the Actionscript 3.0 language
    reference and the All Classes section. Next scroll down to the "T"
    section and start looking.
    The ones that seem interesting to me for what you were
    looking for are TextField and TextFormat. Even if you don't know
    exactly what you need those seem like they would have something to
    do with text and how it looks.
    Then start looking through the entries for each of those
    sections. Everything that can be done with text is in there. So
    after looking at TextField I didn't see anything about making an
    underline or even how to change the color. But I did see a method
    called setTextFormat()
    So next I check out the documentation on the TextFormat class
    and sure enough there is an underline property.
    Great, so by this point I've figured out how to make some
    TextFormats and then use the setTextFormat() method to apply them.
    So next you've got to figure out how to apply the different formats
    when I want them.
    Things that happen at certain times are events, so anything
    that you want to happen now, not then -- or I suppose then, not
    now! -- will require an event. So again it is something about
    events. So I'll go back to the textfield class and see what kind of
    events there are. At first glance you might think that TextFields
    only have 4 events -- change, link, scroll, textInput -- and that
    none of them seem to be what you would want. Now this is the tricky
    part...
    At the top of the events section in the documentation there
    is a little arrow for "Show inherited events." So going down that
    list you will find that TextFields get a lot of events from
    inheritance. Sure enough reading down the list I see mouseOver and
    (this is important) finishing the list I also see a rollOver. They
    both seem promising. Always read the entire list. There are many
    times when there are two similar things and if you stop at the
    first you might miss out.
    Anyways, I hope that this helps you see how the process can
    work. The Flash help files are actually pretty awesome and helpful,
    but you have to know how to work them. You will very seldom find
    the answer by searching or find a fully formed answer to your
    specific needs.
    Break it down into the classes you think you might need. Then
    look for the properties, methods, and events you might need. Most
    of them have fairly straight forward names the should suggest what
    they might be for. And then follow the hyper links to related
    classes than their methods, properties, and events.
    PS: I just noticed your second problem. So do the same thing.
    So notice that if you look through the TextField class there isn't
    anything that lets you chop a string or cut it up or anything. But
    notice the text property of the TextField class. That is what shows
    in a textfield. And notice that it takes a String.
    If you didn't know it a String is some text. You would never
    find the String class if you didn't know that techy word, but by
    noticing how often it is mentioned in the TextField class you could
    get there.
    So next look at the String class. What methods and properties
    do you need for what you want to do?
    The length property might tell you when a String is too long.
    And the methods substr() and substring() seem promising to
    cut up part of a String.
    Finally adding an ellipsis at the end might be hard to figure
    out if you don't know the trick. Fortunately you only need to read
    the methods to the "c" or concat(). Fancy talk for putting strings
    together. Always read the entry to the end. There you will see a
    link for "See Also Concatenating Strings." That will show you that
    you can easily use a plus sign to add strings together -- just like
    addition.

Maybe you are looking for