Kawan-kawan, mau tanya niih...
Kalo di Flash bisa munculin Embed yahoo messenger atau Youtube ga ya?
spt ini
kalo bisa sih cuma mau coba2 di taruh di website saya .... hehehehe....
Mohon pencerahannya kawan2..
Kawan-kawan, mau tanya niih...
Kalo di Flash bisa munculin Embed yahoo messenger atau Youtube ga ya?
spt ini
kalo bisa sih cuma mau coba2 di taruh di website saya .... hehehehe....
Mohon pencerahannya kawan2..
kalo youtube bisa, pake YouTube API support untuk AS3 dan AS2
http://code.google.com/apis/youtube/...rence_as2.html
Kalo YM gak tau saia, mungkin teman2 lain ada yang bisa bantu untuk YM
NB:
jangan double post yah!
Buka thread di tempat yang berhubungan dengan topik yang akan di tanya
Last edited by dedet; 11-28-2011 at 03:34 PM.
Albert Einstein - “The important thing is not to stop questioning. Curiosity has its own reason for existing.”
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Chinese Proverb
http://irzal.com
waah... bingung gan..
mohon pencerahannya..
Last edited by Andri.Sulistyo; 11-28-2011 at 07:02 PM.
Albert Einstein - “The important thing is not to stop questioning. Curiosity has its own reason for existing.”
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Chinese Proverb
http://irzal.com
untuk display status online YM
ini kode dari rumahweb.com
save as "cekyahoo.php"
Di Flash, AS2, kode di frame:PHP Code:<?php
$idyahoo = "nayzuko"; //Ubah sesuai Yahoo ID anda
$open = fopen("http://opi.yahoo.com/online?u=".$idyahoo."&m=t","r")
or die
("<img src='http://opi.yahoo.com/online?u=".$idyahoo."&m=g&t=2'/>");
while ($read = fread( $open, 2048 ))
{ $status .= $read; }
fclose($open);
if($status == $idyahoo." is ONLINE"){
echo "&sta=1";
} else {
echo "&sta=0";
}
?>
kamu hanya perlu punya image:PHP Code:var nayzuko:LoadVars = new LoadVars();
nayzuko.onLoad = function (sukses:String): Void {
if (sukses) {
if (nayzuko.sta==1) {
//_root.attachMovie("img1", "img1", 100);
loadMovieNum("ym1.png", 100);
teks = "NAYZUKO IS ONLINE";
}
else {
loadMovieNum("ym0.png", 100);
teks = "NAYZUKO IS OFFLINE";
}
} else {
teks = "Gagal memuat teks.";
}
}
nayzuko.sendAndLoad("cekyahoo.php", nayzuko, GET);
ym1.png >> utk yg online
ym0.png >> utk yg offline
bisa pakai _root.attachMovie("img1", "img1", 100); utk menggantikan loadMovie
jika image ada di library dan diberi linkage id "img1" dan "img0"
serta dynamic text dengan nama variabel "teks"
kode-kode di atas sudah dites.
Last edited by 42Unregistered; 11-29-2011 at 08:56 AM.
udah dicoba tapi bingung gan...
maap soalnya masih newbie bgt kalo Action Script ...![]()
iya kamu mesti tes langsung online di web server
jika ingin tes di komputer lokal, mesti ada lokal server kayak Xampp atau Wamp agar file PHP bisa diproses.
jika gak punya, ya main html biasa aja deh:
<a href="ymsgr:sendIM?YOUR_YM_ID">
<img src="http://opi.yahoo.com/online?u=YOUR_YM_ID&m=g&t=1" alt="Yahoo Messenger Icons" border="0" /></a>
hehehe
kalo tes online sih ngerti, cuma naruh kedua scriptnya itu yg bingung![]()
lah...
itu file php ditaruh di folder yg sama dg swf
kode LoadVars di frame 1.
ini hasilnya. coba tes untuk mengecek apakah ada ym teman kamu yg online
http://nayzuko.com/flashfiles/ymmsg/
ok, dicoba...![]()
Bookmarks