Broken LInks in myspace
hello,
I am having the worst time getting my widget to work in Myspace. None of the links will work. I am using components to build my widget. You can ses my widget here:
http://www.widgetbox.com/widget/my-wi...
this is the code that I am using it is directly following the developer guide for AS3 projects which mine is:
var wbx_softkey = null;
var wbx_wrapper_channel = null;
Security.allowDomain("*");
if(wbx_softkey == null){
wbx_softkey = "false";}
function openPage(u:String, window:String){
if(wbx_softkey == "true" && wbx_wrapper_channel!= null && wbx_wrapper_channel != ""){
//setup local connection to activate softkeys
var sender:LocalConnection = new LocalConnection();
sender.send(wbx_wrapper_channel, "setSoftKeyURL", u);
}else{
if(window == null || window == ""){
window="_blank";
}
navigateToURL(new URLRequest(u), window);
}
}
function openPageFromLink(event:TextEvent){
var target = event.text;
if(wbx_softkey == "true" && wbx_wrapper_channel != null && wbx_wrapper_channel != ""){
var sender:LocalConnection = new LocalConnection();
sender.send(wbx_wrapper_channel, "setSoftKeyURL", target);
}else{
navigateToURL(new URLRequest(target), "_blank");
}
}
function openPageFromButton(event:MouseEvent){
var target = "http://www.dosomething.org/";
if(wbx_softkey == "true" && wbx_wrapper_channel != null && wbx_wrapper_channel != ""){
var sender:LocalConnection = new LocalConnection();
sender.send(wbx_wrapper_channel, "setSoftKeyURL", target);
}else{
navigateToURL(new URLRequest(target), "_blank");
}
}
myTextField.addEventListener(TextEvent.LINK, openPageFromLink);
doSomething.addEventListener(MouseEvent.CLICK, openPageFromButton);
Any help or suggestions would be greatly appriciated .
What ever i do I can not seem to get these links to work.
I am having the worst time getting my widget to work in Myspace. None of the links will work. I am using components to build my widget. You can ses my widget here:
http://www.widgetbox.com/widget/my-wi...
this is the code that I am using it is directly following the developer guide for AS3 projects which mine is:
var wbx_softkey = null;
var wbx_wrapper_channel = null;
Security.allowDomain("*");
if(wbx_softkey == null){
wbx_softkey = "false";}
function openPage(u:String, window:String){
if(wbx_softkey == "true" && wbx_wrapper_channel!= null && wbx_wrapper_channel != ""){
//setup local connection to activate softkeys
var sender:LocalConnection = new LocalConnection();
sender.send(wbx_wrapper_channel, "setSoftKeyURL", u);
}else{
if(window == null || window == ""){
window="_blank";
}
navigateToURL(new URLRequest(u), window);
}
}
function openPageFromLink(event:TextEvent){
var target = event.text;
if(wbx_softkey == "true" && wbx_wrapper_channel != null && wbx_wrapper_channel != ""){
var sender:LocalConnection = new LocalConnection();
sender.send(wbx_wrapper_channel, "setSoftKeyURL", target);
}else{
navigateToURL(new URLRequest(target), "_blank");
}
}
function openPageFromButton(event:MouseEvent){
var target = "http://www.dosomething.org/";
if(wbx_softkey == "true" && wbx_wrapper_channel != null && wbx_wrapper_channel != ""){
var sender:LocalConnection = new LocalConnection();
sender.send(wbx_wrapper_channel, "setSoftKeyURL", target);
}else{
navigateToURL(new URLRequest(target), "_blank");
}
}
myTextField.addEventListener(TextEvent.LINK, openPageFromLink);
doSomething.addEventListener(MouseEvent.CLICK, openPageFromButton);
Any help or suggestions would be greatly appriciated .
What ever i do I can not seem to get these links to work.
4
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Loading Profile...



