Instr for user to append username to url in flash widget?
i think this is something other people must have done before?
I do basic flash okay. I want to make a widget that in the Widgetbox configuration has a field for the persons username. I want this username to be appended on the URL that the flash file links to as in http://www.mysite.com/username .
Members of my site willl then be able to use this as an advertisment for their page on my site.
In the flash movie I presume I have a button that has code on it like this
on (release) { getURL("http://www.mysite.com/"+username, "_blank"); }
Is that the correct code and what settings do I use in the widget builder to create the field and set this username?
I saw reference to using a 'named tag' in the docs - but I cant find this functionality in the Widget builder interface - and Im not even sure that is the correct way to do it.
Please help
Dan Vantari
I do basic flash okay. I want to make a widget that in the Widgetbox configuration has a field for the persons username. I want this username to be appended on the URL that the flash file links to as in http://www.mysite.com/username .
Members of my site willl then be able to use this as an advertisment for their page on my site.
In the flash movie I presume I have a button that has code on it like this
on (release) { getURL("http://www.mysite.com/"+username, "_blank"); }
Is that the correct code and what settings do I use in the widget builder to create the field and set this username?
I saw reference to using a 'named tag' in the docs - but I cant find this functionality in the Widget builder interface - and Im not even sure that is the correct way to do it.
Please help
Dan Vantari
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hey There,
Since you're using AS2, all configuration parameters will be available to you under the _root scope. For instance, _root.username would be the variable you want to use.
As for setting up the configuration on Widgetbox, simply add a new parameter to your widget with a parameter name of "username". Leave it as a Query String parameter, and give it a default value. (if you don't the widget might try to link to "http://www.mysite.com/undefined").
That's it. Hope this helps!
Omar
I’m confident
Loading Profile...







