Using XML to create a hyperlink in flash

Posted on 2006-04-24
Last Modified: 2012-05-05
Okay here is a seemingly dumb do I create a link in a dynamic text box using XML?
Question by:frankybones
    LVL 19

    Accepted Solution

    use this tutorial:

    load the data from xml as in the info above. Then, of course, your data will include a URL as in:


    You will place that in your button by doing something like:


    And that's all there is to it.


    Author Comment

    Hey Iammontoya,

    Thanks for taking a look, you are always really helpful.

    I am familiar with loading text from an XML, and thats what that tutorial shows, so I am confident I understand that part.  I was think there would be some way to designate it so what you are saying is that I am going to have to create a button and designate the number of buttons via XML and just implement the XML inside of the button and load that into the MC in place of the dynamic text box huh?


    Author Comment

    /\ did I just make this more complicated than it need be?
    LVL 19

    Expert Comment

    Well, the only way to link a button to getURL is through the code (yes, and the property panel).
    With that in mind, you'd have to generate the code and have some sort of assignment to a variable in your code to the button.

    Now, if you wanted, you could create all those variables and such at runtime, but I think that actually complicates things.

    However, you dont have to load the xml inside each button. Load the xml once. You will load the xml values into the values of your variables. Your buttons will use the variables to get the URL.

    You know how this goes, Frankybones. There are many ways to skin a cat, and this is no exception. YOu could load all your values from XMl into an array, and then use the array index to assign values to the button getURL, so and so forth. You follow?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now