Menubuttons in Flash with variable text and url from php

Hello there,
I’m struggling with a little problem, maybe anyone can tell me if it’s possible to do, and how.

I have a flash button with a dynamic textfield and named it text
In php a use a loop to produce a menu with several instances of that button with different texts on it. So far so good; that works…
But is it possible to give each button a different url and maybe target???I have variables in php that get this from a database.
But how do I get it in Flash??

If anyone cold help me it would be great!!