not working on myspace
My widget seems to work on everything except myspace and facebook. When I add to a myspace page the following displays instead of the widget
......if (WIDGETBOX) WIDGETBOX.renderWidget('9e3b2719-aa3b-4fe0-8bae-8ba861edcd1a');....>Get the Al Bell widget and many other great free widgets at Widgetbox!..>
Any thoughts?
http://www.widgetbox.com/widget/albell
......if (WIDGETBOX) WIDGETBOX.renderWidget('9e3b2719-aa3b-4fe0-8bae-8ba861edcd1a');....>Get the Al Bell widget and many other great free widgets at Widgetbox!..>
Any thoughts?
http://www.widgetbox.com/widget/albell
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 Keith,
It looks like maybe you grabbed the wrong code snippet. To install to Myspace, you'll need to use the Myspace-specific code that we provide instead.
Just click GET WIDGET, and on the code screen, selet the Myspace tab before copying the code.
-
Inappropriate?Thanks Dave, but I first tried simply hitting the myspace icon in the get widget feature and that's what I got. I then tried copying the code supplied for myspace, by clicking myspace, copy, and then going to my myspace account and pasting the code in my profile.
If you visit
http://profile.myspace.com/index.cfm?...
you'll see a page where I'm testing the widget. Directly below the first error, I have tried this and it appears as though the swf file is not loading in.
Thanks for your help Dave. -
Inappropriate?Keith,
It looks like your widget isn't compatible with the Flash wrapper. Did you build it to the spec of the Flash Developer guide on our site, or was it built without intending to submit it to us?
-
Right, the was no intent on making this a widget when we developed the original player. I'll look at your specs guide and see if I can find anything. -
Sounds good. Here's the doc to look at: http://docs.widgetbox.com/developers/... -
Inappropriate?are you referring to the "Activating MySpace Links in ActionScript 3.0" section of your developer's guide?
-
Inappropriate?No, you'll need to check out the whole doc. For example, not referring to Stage anywhere in the file might be something that's causing your widget not to display properly.
The Myspace softkeys part may be useful to you as well, but Myspace isn't the only place that we use the flash wrapper.
-
Inappropriate?I've gone through that doc, and I believe I've followed these specs. I've included all the params that I use. The only other topic I see in this docs is the activating links section, which I'm not using in this widget.
Could it be that I'm trying to make a netConnection within flash? It's calling out to our servers. I've added the allowDomain security var, but is it possible that is not enough?
Additionally, I'm not sure I understand what you meant with the "stage" example? I do refer to stage often with my swf file. Is there something else I should be doing?
Again, thanks so much Dave for your help and prompt replies. -
Inappropriate?Hey Keith,
First off, my pleasure. These flash wrapper issues are a pain in the butt for everyone involved, so they take a bit of patience.
The issue is really limited to referring to Stage during initialization. Are you using stage during this time (setting width, height, scalemode)? The deal is that Stage is really in our wrapper when you're in the flash wrapper, so if you're calling this stuff during initialization, you could be calling it on objects that don't actually exist yet.
For any of your Stage references during initialization, try putting them in an onEnterFrame function. That way they won't be called before your widget's actually been drawn out.
Let me know if this is the case or not and we'll move on.
-
Inappropriate?nah, don't use the stage property for that at all. I only use the stage property for listeners, such as a loader, and loading in the flash vars. The scale is set to no scale, so I don't believe this is the issue. Any other thoughts?
-
Hey Keith,
So, are you adding the listeners to the stage? Like Stage.addListener.blahblah? -
Inappropriate?yes
-
Inappropriate?So this would be one of those cases where you can't set this on the stage when in the wrapper. Try this:
//Add an ENTER_FRAME event listener to your object
public function MyDocumentClass(){
this.addEventListener(Event.ENTER_FRAME, doEnterFrame);
}
public function doEnterFrame(event:Event){
if(stage!=null){
if(stage.stageWidth==0 || stage.stageHeight==0){
trace("not ready yet");
}else{
event.target.removeEventListener(Event.ENTER_FRAME, doEnterFrame);
init();
}
}
}
public function init(){
//do stuff to stage
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
-
Inappropriate?NICE!! That seemed to work. OK, one last thing. For some reason, the "get widget" tab is about 200 pixels below the widget itself instead of simply resting against the bottom. Any ideas how to fix this?
Thanks again Dave, I really appreciate the help. -
Inappropriate?Hey Keith,
Unfortunately, this one is outside of my power... this Get Widget issue annoys the heck out of me, however Myspace support has been wholely useless in addressing this issue.
Essentially, they take the flash embed code that people paste into the profile for Myspace and screw with all of the width/height settings. They're aware of the issue and their only response so far was 'make sure that your flash content is scalable', which conflicts with our runtime.
Glad we got the other issue handled!
Loading Profile...



