Dynamic text and url...

Hello

I am trying to create a url to a word within a dynamic text box but I don't know how to do this.

I am familiar with TextFormats, etc., but which apply only to the text box and no to a word or phrase inside this text box. Or have I been wrong?

Thank you.

AOF

You mean insert a hyperlink in your text?

myText. htmlText = "click here to go to the adobe Web site.

Tags: Adobe Animate

Similar Questions

  • Create a link using dynamic text and Capture of Variable

    I'm building a dynamic website with Dreamweaver CS5 with Coldfusion 9

    Currently, I created an array of dynamic text. The table is created by querying the invoice table and displays all of the invoices customers. The columns Include invoice #, Date, amount paid, BalanceRemaining, Expiration Date. So, basically lists all invoices that I made a request to the unique customer. It is pulled up using a session variable, that I created from the login page.

    My question is I want to do the # "Bill" when you click on it it goes to a new page and executes a query that retrieves infro associated with this specific invoice such as Services rendered, the Description of Service, Date, price, Total. I was able to create a link to the invoice # but I'm stuck trying to figure out how to capture the Unique invoice # and apply it to the new query. Is it possible if yes, how?

    Thanks for your help!

    < cflock scope = "Session" type = "ReadOnly" timeout = "30" throwontimeout = "no" >

    < cfset MM_Username = Iif (IsDefined("Session.MM_Username"), "Session.MM_Username", DE("")) >

    < cfset MM_UserAuthorization = Iif (IsDefined ("Session.MM_UserAuthorization"), "Session.MM_UserAuthor-ization", DE("")) >

    < / cflock >

    < cfif MM_Username EQ "" EQ MM_UserAuthorization or "" or ListFind("User,Admin",MM_UserAuthorization) EQ 0 >

    < cfset MM_referer = CGI. SCRIPT_NAME >

    < cfif CGI. QUERY_STRING NEQ "" > "".

    < cfset MM_referer = MM_referer & "?" & CGI. QUERY_STRING >

    < / cfif >

    < cfset MM_failureURL = "" sorry.cfm? accessdenied = "and URLEncodedFormat (MM_referer) >"

    < cflocation url = "' #MM_failureURL # ' addtoken ="no">"

    < / cfif >

    < cfparam name = default "PageNum_Invoice" = "1" >

    < cfset GetFileFromPath = CurrentPage (GetBaseTemplatePath ()) >

    < cfparam name = default "PageNum_Query_Invoice" = "1" >

    < cfquery name = "Query_Invoice" datasource = "SBC" >

    SELECT DueDate, AppliedAmount, RefNumber, BalanceRemaining, TxnDate

    OF the invoice

    WHERE CustomerRefFullName = < cfoutput > ' #Session.FullName # ' < / cfoutput >

    < / cfquery >

    < cfset MaxRows_Query_Invoice = 10 >

    < cfset StartRow_Query_Invoice = Min ((PageNum_Query_Invoice-1) * MaxRows_Query_Invoice + 1, Max (voice of Query_In.) RecordCount, 1)) >

    < cfset EndRow_Query_Invoice = Min (StartRow_Query_Invoice + MaxRows_Query_Invoice-1, Query_Invoice.Rec ordCount) >

    < cfset TotalPages_Query_Invoice = Ceiling(Query_Invoice.RecordCount/MaxRows_Query_Invoice) >

    < cflock scope = "Session" timeout = "30" type = "Exclusive" >

    <! - Session variable for invoice reference number - >

    < cfset Session.RefNumber = Query_Invoice.RefNumber [1] >

    < / cflock >

    < cfset QueryString_Query_Invoice = Iif (CGI. QUERY_STRING NEQ "", FROM ('&' & XMLFormat (CGI.) (QUERY_STRING)), de("")) >

    < cfset tempPos = ListContainsNoCase (QueryString_Query_Invoice, "PageNum_Query_Invoice =", "&") >

    < cfif tempPos NEQ 0 >

    < cfset QueryString_Query_Invoice = ListDeleteAt (QueryString_Query_Invoice, tempPos, "&") >

    < / cfif >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    "< html > <!-InstanceBegin template="/Templates/customer_template.dwt.cfm ' codeOutsideHTMLIsLocked = 'false'->

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 ">"

    <!-InstanceBeginEditable name = "title"--> < title > Untitled Document < / title > <! - InstanceEndEditable - >

    < link href = "styles/Main.css' rel ="stylesheet"type =" text/css">"

    < script src = "SpryAssets/SpryMenuBar.js" type = "text/javascript" > < / script > "

    < link href = "SpryAssets/SpryMenuBarHorizontal.css" rel = "stylesheet" type = "text/css" > "

    <!-InstanceBeginEditable name = 'head'-> head content goes here <! - InstanceEndEditable - > < / head >

    < body >

    < div id = "Container" >

    < div id = "header" > < img src = "Images/site Web - Image.gif" width = "393" height = "217" alt = "TS planning landscaping Logo and company name" > < / div >

    < div id = "menu_bar1" >

    < ul id = "MenuBar1" class = "MenuBarHorizontal" >

    < li > < a class = "MenuBarItemSubmenu" href = "index.cfm" > home < /a >

    < ul >

    < li > < a href = "#" > 1.1 < /a > < /li >

    < li > < a href = "#" > 1.2 < /a > < /li >

    < li > < a href = "#" > question 1.3 < /a > < /li >

    < /ul >

    < /li >

    < li > < a href = "#" > about us < /a > < /li >

    < li > < a href = "#" > Services < /a > < /li >

    < li > < a class = "MenuBarItemSubmenu" href = "#" > user account < /a >

    < ul >

    < li > < a href = "login.cfm" > Connect < /a > < /li >

    < li > < a href = "registration_page_contact.cfm" > register < /a > < /li > "

    < li > < a href = "members_page.cfm" > customer Page < /a > < /li > ""

    < /ul >

    < /li >

    < li > < a href = "#" > contact us < /a > < /li >

    < /ul >

    < / div >

    < div id = 'Hand' >

    < div id = "side_bar" > <!-InstanceBeginEditable name = "sidebar"-> content for id "side_bar" goes here <! - InstanceEndEditable - > < / div >

    < div id = "main_body" > <!-InstanceBeginEditable name = "mainbody"->

    < H1 > < cfoutput > #Session.FullName # < / cfoutput > bills < / h1 >

    < p > here you can view your bills current and past. < /p > < br >

    < name of the form = "customerinvoices" >

    < table border = "1" align = "center" >

    < b >

    < td > < div align = "center" > invoice # < / div > < table >

    < td > < div align = "center" > Date < / div > < table >

    paid < td > < div align = "center" > < / div > < table >

    < td > < div align = "center" > BalanceRemaining < / div > < table >

    Due Date < td > < div align = "center" > < / div > < table >

    < /tr >

    < cfoutput query = "Query_Invoice" StartRowOptional = "" #StartRow_Query_Invoice # "LignesMax =" #MaxRows_Query_Invoice #">"

    < b >

    < td > < a href = "invoice_number_page.cfm" > #Query_Invoice.RefNumber # < /a > < table >

    < td > #LSDateFormat (Query_Invoice.TxnDate, 'MMMM DD, YYYY') # < table >

    < td > #DollarFormat (Query_Invoice.AppliedAmount) # < table >

    < td > #DollarFormat (Query_Invoice.BalanceRemaining) # < table >

    < td > #LSDateFormat (Query_Invoice.DueDate, "MMMM DD, YYY'") # < table >

    < /tr >

    < / cfoutput >

    < / table > < / make >

    < p > < table border = "0" align = "center" >

    < cfoutput >

    < b >

    < td > < cfif PageNum_Query_Invoice GT 1 >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = 1 #QueryString_Query_Invoice #"> first < /a >"

    < cfelse > sorry no bills have been found!

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice GT 1 >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = #Max (DecrementValue (PageNum_Query_Invoice), 1) # QueryString_Query_Invoice #"> back < /a >"

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice LT TotalPages_Query_Invoice >

    < a href = "#CurrentPage #?" "PageNum_Query_Invoice = #Min (IncrementValue (PageNum_Query_Invoice), Tota lPages_Query_Invoice) # QueryString_Query_Invoice # ' > next < /a >

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice LT TotalPages_Query_Invoice >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = #TotalPages_Query_Invoice # QueryString_Query_In voice #"> last < /a >"

    < / cfif > < table >

    < /tr >

    < / cfoutput >

    < table / > < / p >

    <! - InstanceEndEditable - > < / div >

    < / div >

    < div id = "footer" >

    < p > home | Who are we | < /P > site map

    < p > & copy; TS in planning landscaping LLC 2010 < /p >

    < / div >

    < / div >

    < script type = "text/javascript" >

    var MenuBar1 = new Spry.Widget.MenuBar ("MenuBar1", {imgDown: "..."}) "" / SpryAssets/SpryMenuBarDownHover.gif ', imgRight: ".. ({"/ SpryAssets/SpryMenuBarRightHover.gif"});

    < /script >

    < / body >

    <! - InstanceEnd - > < / html >

    Without trying to sift through all the code has nothing to do with the question, I think you want to do something like this:

    Select number, Word

    etc.

    #word #.

    Then on nextpage.cfm, your variable will be url.thenumber.

  • Dynamic text and Movieclip appear on turnover of button

    Hi guys,.

    I have a question - when one of my buttons is overthrown, I want text and a movieclip to appear. When the button is wrapped is no longer on, I want the text and the movieclip to disappear.

    The way that I was going to do was to have anchor_mc as an anchor and turnover have the movieclip play from inside the anchor (as his exact x & Y that his need to) and dynamic text appear.

    Issues related to the:

    (1) How can I join mc_textbox to mc_anchor - OR, how set coordinates for just where mc_textbox should show?

    (2) I how then do the movieclip disappear if the button is reversed is no longer?

    (3) is it not possible for me to all the functions of dynamic merge into one function, text by using IF statements? I tried, but could not get out.

    AS3 code is attached below.

    import flash.events.MouseEvent;

    Stop();

    LINE1.addEventListener (MouseEvent.ROLL_OVER, line_in1, false, 0, true);
    LINE1.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    Line2.addEventListener (MouseEvent.ROLL_OVER, line_in2, false, 0, true);
    Line2.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line3.addEventListener (MouseEvent.ROLL_OVER, line_in3, false, 0, true);
    line3.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    LINE4.addEventListener (MouseEvent.ROLL_OVER, line_in4, false, 0, true);
    LINE4.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line5.addEventListener (MouseEvent.ROLL_OVER, line_in5, false, 0, true);
    line5.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    Line6.addEventListener (MouseEvent.ROLL_OVER, line_in6, false, 0, true);
    Line6.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line7.addEventListener (MouseEvent.ROLL_OVER, line_in7, false, 0, true);
    line7.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line8.addEventListener (MouseEvent.ROLL_OVER, line_in8, false, 0, true);
    line8.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    LINE9.addEventListener (MouseEvent.ROLL_OVER, line_in9, false, 0, true);
    LINE9.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);

    function line_in1(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;
    }
    function line_in2(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in3(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;

    }
    function line_in4(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in5(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;

    }
    function line_in6(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in7(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;

    }
    function line_in8(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in9(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }

    function line_out(e:MouseEvent):void
    {
    line_output. Text = "";
    var MC = new mc_empty(); addChild (mc);
    }

    It isn't relly clear for me what you have from what you want, so these answers can be as not clear to you.

    1. a way to join them together is instead of the one maually in the other file.  Another way is to use addChild to add the text mc at anchor... mc_anchor.addChild (mc_textbox);  To control where the mc of text is displayed you can set its x and y actionscript properties.using... mc_textbox.x = 0;

    2. make the movieclip disappear you can set its visible property to false... mc_anchor.visible = false;

    3. you can probably reduce code considerably, although it depends in part on what changes there really going to be in the text that is displayed for each bearing.  For now, I'll assume that the text will be completely different for each...

    for (var i: uint = 1; i<10;>

    this ["Line" + String (i)] .addEventListener (MouseEvent.ROLL_OVER, line_in, false, 0, true);
    This ["Line" + String (i)] .addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);

    }

    function line_in(e:MouseEvent):void {}

    var lineTarget:MovieClip = MovieClip(e:currentTarget);

    could use a switch the series if if you know what is a switch

    if(lineTarget == LINE1) {}

    do things for line1

    } else if(lineTarget == line2) {}

    do things for line2

    ) otherwise if... etc.

    }

  • Output of dynamic text and Preloader

    Hey people,

    I work with a Flash file larger than usual that cannot be broken into smaller pieces, and trying to keep the public from the smallest common denominator in mind, I tried to get a dynamic text field to display the basic text on the status of the load, if anything just to give them something to read except the growing percentage number. What I tried below does not work (like most of my experiences tend to do). What Miss me? Thank you!

    your messages are not going to display as load is probably over 80 when your first image loading. You probably want to use loaded * 100/total

  • Help with dynamic text and cursor hand

    The buttons I create do not display the hand cursor. I tried searching for an answer and found nothing. These are buttons in movieclip with a dynamic text field. I already passed the unselectable text, and I use: b1.buttonMode = true;




    B1.mouseChildren = false;

  • problem with dynamic text and input box area

    wtf.dib

    I'm doing a login to a game screen.  I imported the background image added 5 text boxes and 2 buttons

    the top one is dynamic and is supposed to show the message.   The user name or password is incorrect, as shown in the trace, but it's what appears instead.

    the two boxes on the left are static and seem to work well.

    2 boxes on the right are the input boxes for the user to enter their user name and password, but the alpha only characters that they allow a d e m n o p r s u w.

    all other characters alpha get ignored. and you n p are always in the capital.

    I realize that the only letters that seem to be allowed are letters in the username and password, but I have no idea why this is happening.

    Here is the code for the connection.

    Stop();

    import flash.events.MouseEvent;

    import flash.ui.Mouse;

    import flash.display.MovieClip;

    import flash.events.Event;

    import flash.display.Stage;

    loginbtn.addEventListener (MouseEvent.CLICK, connection);

    function login(event:MouseEvent)

    {

    If (usernametxt.text == "u" & & passwordtxt.text == "p")

    {

    gotoAndPlay (2);

    }

    on the other

    {

    messagetxt. Text is a String ("the user name or password is incorrect");.

    trace (messagetxt. (Text)

    }

    }

    any help would be greatly appreciated.

    Embed fonts for dynamic/input textfields.

  • Dynamic text field showing only the number 2.

    I am writing a scrolling shooting game and I have a dynamic text field that keeps the score.  Running inside an ENTER_FRAME event listener, it updates all the images.  By tracing the variable "score", I get the good numbers appearing in the output tab, but on the screen, I see only the number 2. It doesn't matter what position in the number, it is (ie: 20, or 10372 or 521), this digit will be displayed.  If there is no number 2 in the partition, the field shows that the word "" Score: "."

    The variable is declared as such:

    var score: int = 0;

    "The text field is called scorecard and is set to"Classic text"and a dynamic text ' and it's 638 pixels wide (almost the entire width of the scene).

    Here's the code to update the scorecard:

    scoreCard.text = "Note:" + score.

    trace (score);

    The track was simply put in to see if the score was being counted until properly, what is.

    I also tried to eliminate "Score:" and simply used:

    scoreCard.text = score.toString ();

    and got the same results.

    Any ideas of what could be the cause?  From everything I've read, this method should work.

    Eric Gray

    Incorporate (police) all the numbers, and then try again.

  • The easiest way to make a dynamic text

    Hello!

    What would be the best way to make a dynamic text and objects in your web site built in CF?

    I know that CF is not developer tool, and I probably have to use Flash Builder.

    I had a lot of demand for making web pages with parts that customers spend on their own.

    For example, they update the news on the page, etc.

    I probably didn't do any dynamic page.

    But what would be the best way to make an easy dynamic object on my site?

    Would be nice if I can solve this problem without using the database or a content management system.

    I know this question might not be directly related to CF, but as a designer I think that you guys can help me better.

    (Or at least push towards the right direction. )

    Hi SupraJohde,

    Flex can talk to any back-end, you decide to use, and it supports a variety of different data formats right out of the box.  Here's a good tutorial to get started (note that since this is Flex 3, there may be some slight differences in Flex 4, version difthe which creates of catalyst).  Here is a more advanced, database-driven tutorial (it's Flex 4 beta 1, once again, there may be slight changes).

    I can't tell you whether it is better to use a CMS vs one databcase vs another thing on the backend.  It's maybe a better question for another forum :-)  If you are looking for the simplest solution possible, I suggest to put some XML files on the server and extract the content of those (see first tutorial link above).  Your customers can then simply update the XML content files.

    -Peter

  • SharedObject AS3 displaying not dynamic text

    Hello:
    I use AS3 on the timeline. I'm trying to figure out how to save text input using dynamic text boxes.
    I have two input boxes (box1 and box2) where user types and last name. Two dynamic text (box3 and Box 4) that will save the user name and last name boxes.

    PROBLEM:

    I can draw full name, but not able to display the dynamic text and save the text in the entry fields.

    Please help me to fix my code.


    Here is my code:

    var so: SharedObject = SharedObject.getLocal ("sampleCode");


    Box1.text = so.data.firstName;
    Box2.text = so. Data.LastName;

    If (!) YOU Data.FirstName)
    {
    Box1.text = Box3.Text;
    Box2.text = box4. Text;
    }

    saveBtn.addEventListener (MouseEvent.CLICK, saveData);

    function saveData(evt:MouseEvent)

    {
    Switch (evt.currentTarget.Name)
    {
    case 'saveBtn ':
    {

    so.data.firstName = box3.text;
    so.data.lastName = box4.text;
    so. Flush();
    break;
    }

    trace (SO. Data.FirstName);
    trace (SO. Data.LastName);

    Thank you;

    German

    If your trace() functions reveal you're setting if properly, but you're not well, use of recovery:

    var so: SharedObject = SharedObject.getLocal("sampleCode","/");

  • dynamic text formatting

    I'm new to formatting dynamic text, and I found the tutorials that you can apply the formatting of the text, but to a unique dynamic text box. But what happens if I have a unique dynamic textbox but wanted to apply a different formatting for different text inside?

    For example I have a textbox containing the instance name "myText".

    myText.text = "Hello World";

    I understand that I can, for example, to change the color of "Hello World" to the yellow using the:

    myFormat = new TextFormat();
    myFormat.Color = 0xffff00; Yellow
    myText.setTextFormat (myformat);

    But how can I say, change "Hello" in yellow and 'The world' to red?

    Thank you!

    pandx,

    > I understand that I can, for example, to change the color of the "Hello World" to
    > yellow by using:
    >
    > myformat = new TextFormat();
    > myformat.color = 0xffff00; Yellow
    > myText.setTextFormat (myformat);

    You have got it.

    > But how can I say, change "Hello" in yellow and 'The world' to red?

    The answer is in the optional settings available to the
    TextField.setTextFormat () method that you already use. :) Check
    setTextFormat() in the ActionScript language reference 2.0 and you will see
    In addition to the TextFormat instance, you can also provide positions
    in the string of text to start and stop field is your formatting.

    David Stiller
    Co-author, Foundation Flash CS3 for designers
    http://tinyurl.com/2k29mj
    "Luck is the residue of good design."

  • Load the Image of the URL entered in the dynamic text box

    I have an area of dynamic text (image_in) to receive a URL entry of an image to be loaded into a clip (peak) when you press a button (b_load).

    I can't make it work, the code seems pretty simple:

    var image_url:String = image_in.text;

    b_load.addEventListener (MouseEvent.CLICK, Load_URL);

    function Load_URL(event:MouseEvent):void

    {

    var i = new Loader();

    i.Load (new URLRequest (image_url));

    pic.addChild (i)

    }

    This code gives me: #2044 Error: Unhandled IOErrorEvent:. Text = Error #2035: URL not found.

    This code works when I declare the var as a URL:

    var image_url:String = " " http://website.com/image.jpg ";


    What is the difference if I go http://website.com/image.jpg in the dynamic text field? What's wrong?

    Any help would be appreciated, thanks!


    You declare the image_url variable after the dynamic text? If this isn't the case, then the value of this variable will be an empty string. Set the variable inside the function declaration, and it should work as expected.

  • dynamic load text and image of XML. How?

    Hello

    I have the following code to display text and images on the screen how modify the code to make it more dynamic:

    var xmlData:XML = new XML(MovieClip(this.parent).xmlDocs[3]);
    // Add Title
    rssNews.rss1.title1.text = xmlData.news[0].title;
    rssNews.rss2.title2.text = xmlData.news[1].title;
    rssNews.rss3.title3.text = xmlData.news[2].title;
    rssNews.rss4.title4.text = xmlData.news[3].title;
    rssNews.rss5.title5.text = xmlData.news[4].title;
    rssNews.rss6.title6.text = xmlData.news[5].title;
    rssNews.rss7.title7.text = xmlData.news[6].title;
    rssNews.rss8.title8.text = xmlData.news[7].title;
    rssNews.rss9.title9.text = xmlData.news[8].title;
    rssNews.rss10.title10.text = xmlData.news[9].title;
    
    
    // Add Description
    rssNews.rss1.text1.text = xmlData.news[0].description;
    rssNews.rss2.text2.text = xmlData.news[1].description;
    rssNews.rss3.text3.text = xmlData.news[2].description;
    rssNews.rss4.text4.text = xmlData.news[3].description;
    rssNews.rss5.text5.text = xmlData.news[4].description;
    rssNews.rss6.text6.text = xmlData.news[5].description;
    rssNews.rss7.text7.text = xmlData.news[6].description;
    rssNews.rss8.text8.text = xmlData.news[7].description;
    rssNews.rss9.text9.text = xmlData.news[8].description;
    rssNews.rss10.text10.text = xmlData.news[9].description;
    
    
    // Add Title
    var myLoader:Loader = new Loader();
    var fileRequest:URLRequest = new URLRequest(xmlData.news[0].image);
    myLoader.load(fileRequest);
    rssNews.rss1.image1.addChild(myLoader);
    var myLoader2:Loader = new Loader();
    var fileRequest2:URLRequest = new URLRequest(xmlData.news[1].image);
    myLoader2.load(fileRequest2);
    rssNews.rss2.image2.addChild(myLoader2);
    var myLoader3:Loader = new Loader();
    var fileRequest3:URLRequest = new URLRequest(xmlData.news[2].image);
    myLoader3.load(fileRequest3);
    rssNews.rss3.image3.addChild(myLoader3);
    var myLoader4:Loader = new Loader();
    var fileRequest4:URLRequest = new URLRequest(xmlData.news[3].image);
    myLoader4.load(fileRequest4);
    rssNews.rss4.image4.addChild(myLoader4);
    var myLoader5:Loader = new Loader();
    var fileRequest5:URLRequest = new URLRequest(xmlData.news[4].image);
    myLoader5.load(fileRequest5);
    rssNews.rss5.image5.addChild(myLoader5);
    var myLoader6:Loader = new Loader();
    var fileRequest6:URLRequest = new URLRequest(xmlData.news[5].image);
    myLoader6.load(fileRequest6);
    rssNews.rss6.image6.addChild(myLoader6);
    var myLoader7:Loader = new Loader();
    var fileRequest7:URLRequest = new URLRequest(xmlData.news[6].image);
    myLoader7.load(fileRequest7);
    rssNews.rss7.image7.addChild(myLoader7);
    var myLoader8:Loader = new Loader();
    var fileRequest8:URLRequest = new URLRequest(xmlData.news[7].image);
    myLoader8.load(fileRequest8);
    rssNews.rss8.image8.addChild(myLoader8);
    var myLoader9:Loader = new Loader();
    var fileRequest9:URLRequest = new URLRequest(xmlData.news[8].image);
    myLoader9.load(fileRequest9);
    rssNews.rss9.image9.addChild(myLoader9);
    var myLoader10:Loader = new Loader();
    var fileRequest10:URLRequest = new URLRequest(xmlData.news[9].image);
    myLoader10.load(fileRequest10);
    rssNews.rss10.image10.addChild(myLoader10);
    
    
    // Add URL
    rssNews.rss1.info1.addEventListener(MouseEvent.CLICK, rss01);
    rssNews.rss2.info2.addEventListener(MouseEvent.CLICK, rss02);
    rssNews.rss3.info3.addEventListener(MouseEvent.CLICK, rss03);
    rssNews.rss4.info4.addEventListener(MouseEvent.CLICK, rss04);
    rssNews.rss5.info5.addEventListener(MouseEvent.CLICK, rss05);
    rssNews.rss6.info6.addEventListener(MouseEvent.CLICK, rss06);
    rssNews.rss7.info7.addEventListener(MouseEvent.CLICK, rss07);
    rssNews.rss8.info8.addEventListener(MouseEvent.CLICK, rss08);
    rssNews.rss9.info9.addEventListener(MouseEvent.CLICK, rss09);
    rssNews.rss10.info10.addEventListener(MouseEvent.CLICK, rss10);
    
    
    function rss01(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[0].url));
    }
    function rss02(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[1].url));
    }
    function rss03(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[2].url));
    }
    function rss04(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[3].url));
    }
    function rss05(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[4].url));
    }
    function rss06(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[5].url));
    }
    function rss07(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[6].url));
    }
    function rss08(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[7].url));
    }
    function rss09(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[8].url));
    }
    function rss10(e:MouseEvent):void
    {
              navigateToURL(new URLRequest(xmlData.news[9].url));
    }
    
    

    Kind regards

    use:

    var xmlList:XMLList;

    var xmlData:XML = new XML (MovieClip (this.parent) .xmlDocs [3]);

    xmlList = xmlData.news;

    for (var i: int = 0; i<>

    {

    rssNews ["rss" +(i+1)] ["title" +(i+1)] .text = xmlList [i] .title;

    rssNews ["rss" +(i+1)] ["text" +(i+1)] .text = xmlList [i] .description;

    rssNews ["rss" +(i+1)] ['image' +(i+1)] .loader = new Loader();  If the compiler complains, cast rssNews ["rss" +(i+1)] ['image' +(i+1)] as a movieclip.  IE: MovieClip (rssNews ["rss" +(i+1)] ['image' +(i+1)]) .loader

    rssNews ["rss" +(i+1)] ['image' +(i+1)].loader.load (URLRequest (xmlList [i] .url)) of new;

    }

  • Creating a hyperlink in AS2 using xml and dynamic text

    Hello

    I want to insert two hyperlinks to my site flash AS2 - one for my e-mail address and one for my domain name. I use an xml file to import the e-mail address and url.

    As in my code, you can see that I'm storing xml data in _root.email and _root.website, and I actually got their display on the Web page (in dynamic text boxes email_txt.text and website_txt.text, respectfully), but how do I actually turn the latter into links?

    getURL (_root.website) works for the url link. You can run whenever you want.

    If you want to make a link in your textfield, html-enable website_txt and use a standard hyperlink: 'link'.

    How you want to send it work depends on the two choices that I mentioned above.

  • Can I put Chinese and English characters in the same dynamic text box?

    I translate a game in several languages, which is Chinese. I noticed that in an area of dynamic text where English characters are included, they are not displayed when the .swf is exported. The police is embedded in the document with the selected characters. It seems that any character language is initially displayed in the text box, the other language is impossible. For example, if there are Chinese characters first, then English, the English will not display and vice versa. No matter what work around on this? I use Flash CS5 and Actionscript 2.0. Thank you!

    Use two different textfields, one above the other.  assign to the visible property of the textfield useless were false.

  • Flash CS5 glitch with setChildIndex and dynamic text fields?

    Since the upgrade to CS5 to have two distinct problems.

    I have a clip with 5 images.  When I'm on frame 3 (main game) and I use the command setChildIndex on one on-screen element existing on the framework itself, the item in question will now be added to permenantly stage and will persist through the management remaining (end and end the game).  This behavior was not present in the project until I converted it to CS5.  If I remove the setChildIndex command, the on-screen elements stop their depth of sorting (as your would expect) and they bleed is more in the next section, which is at the end of the level.

    I also have problems with a dynamic text field.  It is currently set to don't not selectable, but when you hover over the field it shows the symbol for the pointer of your mouse cursor, and when you click it, a highlight of small block appears to the left or to the right of the field.  You cannot change the contents of the field, or even select them, but if you try a small black mark selection appears at the end of the field.  I destroyed and recreated this field, and the bahavior seems to remain the same.

    Any other experience of these questions, or something similar with CS5?

    using any actionscript code that adds a DisplayObject instance to the list of display (including the definition of its index) has always caused this behavior.  which is expected.

    to remove this item use removeChild() or removeChildAt().

    to disable the cursor changes during a textfield, assign the property mouseChildren of the parent of the textfield property to false.

Maybe you are looking for