Using XML to create a hyperlink in flash

Okay here is a seemingly dumb do I create a link in a dynamic text box using XML?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MontoyaProcess Improvement MgrCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
frankybonesAuthor Commented:
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?

frankybonesAuthor Commented:
/\ did I just make this more complicated than it need be?
MontoyaProcess Improvement MgrCommented:
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?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.