PDA

View Full Version : skype status on flash


altrove
08-06-2006, 05:11 PM
how i put online status on my macromedia flash website?

regards
and
thanks to everybody

advance-media
02-05-2007, 10:34 AM
In flash 8 I had no problem to create a skype status button

1) check menu -> File -> Publish Settings... -> Flash -> Local playback security -> Access network only

2) in html object and embed tags of the flash movie set allowScriptAccess to sameDomain like:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="skype" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="skype.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="skype.swf" quality="high" bgcolor="#000000" width="550" height="400" name="skype" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

3) in flash 8:
// by www.advance-media.com
stop();
//System.security.allowInsecureDomain("mystatus.skype.com");
// I got this script to go without this line too
// "mystatus.skype.com" pls spell without blank space like here (I had a problem in the Prieview Post option)
System.security.allowInsecureDomain("mystatus.skype.com");
this.createEmptyMovieClip("container", getNextHighestDepth());
this.container.stop();
// some buttons are alpha transparent (.png) like //smallicon
container.loadMovie("http://mystatus.skype.com/smallclassic/yourSkypeName");
// than I did manually create and name a button with this script
this.sb.onRelease = function() {
getURL("skype:yourSkypeName?chat");
};
// or yourSkypeName?call
// http://www.skype.com/share/buttons/advanced.html
// http://www.skype.com/share/buttons/

VERMIN
06-12-2008, 03:34 PM
Greetings,

locally my skype status presents well, but when i upload on my server i can't see the status.

for aim it works, basically i do the same thing for aim as for skype.
i have 100% guarantee my script is error free and locally i can see both aim/skype status well

any ideas?

file published as : network only

System.security.allowInsecureDomain ("mystatus.skype.com");
function loadXML (loaded:Boolean):Void
{
if (loaded)
{
my_status = this.firstChild.firstChild.childNodes[2].childNodes;
attachStatus ();
}
else
{
trace ("XML not loaded!");
}
}
function loadSkypeData ()
{
xmlData = new XML ();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load ("http://mystatus.skype.com/myname.xml");
}
function attachStatus ():Void
{
skypestatus.txt.text = my_status;
if (skypestatus.txt.text == "Online")
{
skypestatus.onRelease = function ()
{
getURL ("skype:myname?call", "_BLANK");
};
}
else
{
trace ("do nothing");
}
//
}



any ideas why i see it locally but not online?

thanks

advance-media
06-12-2008, 06:59 PM
Interesting indeed!

Also I did retrieve a 'false' only.

Anyway I got it to work with the help of this php file which I called "skype_xml.php":

<?php

echo(file_get_contents('http://mystatus.skype.com/myname.xml'));

?>

In flash simply load the xml from that php file like:

xmlData.load("skype_xml.php");