Results 1 to 10 of 10

Thread: Numpang nanya (Kalo di Flash bisa munculin Embed yahoo messenger ga ya?)

  1. #1
    Andri.Sulistyo is offline Anggota BabaFlash
    Join Date
    Jul 2011
    Location
    Ciledug
    Posts
    5

    Post Numpang nanya (Kalo di Flash bisa munculin Embed yahoo messenger ga ya?)

    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..

  2. #2
    dedet's Avatar
    dedet is offline Dah Nggak Dibanned
    Join Date
    Apr 2010
    Location
    Tanah Airku Indonesia
    Posts
    580

    Default

    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

  3. #3
    Andri.Sulistyo is offline Anggota BabaFlash
    Join Date
    Jul 2011
    Location
    Ciledug
    Posts
    5

    Arrow

    waah... bingung gan..
    mohon pencerahannya..
    Last edited by Andri.Sulistyo; 11-28-2011 at 07:02 PM.

  4. #4
    dedet's Avatar
    dedet is offline Dah Nggak Dibanned
    Join Date
    Apr 2010
    Location
    Tanah Airku Indonesia
    Posts
    580

    Default

    Quote Originally Posted by Andri.Sulistyo View Post
    waah... bingung gan..
    mohon pencerahannya..
    wah kalo AS2 saia ndak tau gan, kalo AS3 kebetulan ada yang udah saya buat, coba liat di bagian open source.
    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

  5. #5
    42Unregistered is offline Flash Geek
    Join Date
    Nov 2008
    Posts
    782

    Default

    untuk display status online YM

    ini kode dari rumahweb.com
    save as "cekyahoo.php"

    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$open2048 ))
    $status .= $read; }
    fclose($open);

    if(
    $status == $idyahoo." is ONLINE"){
    echo 
    "&sta=1";
    } else {
    echo 
    "&sta=0";
    }
    ?>
    Di Flash, AS2, kode di frame:

    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"nayzukoGET); 
    kamu hanya perlu punya image:
    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.

  6. #6
    Andri.Sulistyo is offline Anggota BabaFlash
    Join Date
    Jul 2011
    Location
    Ciledug
    Posts
    5

    Smile

    udah dicoba tapi bingung gan...

    maap soalnya masih newbie bgt kalo Action Script ...

  7. #7
    42Unregistered is offline Flash Geek
    Join Date
    Nov 2008
    Posts
    782

    Default

    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

  8. #8
    Andri.Sulistyo is offline Anggota BabaFlash
    Join Date
    Jul 2011
    Location
    Ciledug
    Posts
    5

    Default

    kalo tes online sih ngerti, cuma naruh kedua scriptnya itu yg bingung

  9. #9
    42Unregistered is offline Flash Geek
    Join Date
    Nov 2008
    Posts
    782

    Default

    Quote Originally Posted by Andri.Sulistyo View Post
    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/

  10. #10
    Andri.Sulistyo is offline Anggota BabaFlash
    Join Date
    Jul 2011
    Location
    Ciledug
    Posts
    5

    Lightbulb

    ok, dicoba...

Similar Threads

  1. numpang nanya tentang 2 button di dalam 2MC yg beda
    By juanmatthew in forum ActionScript 1.0/2.0
    Replies: 5
    Last Post: 12-26-2011, 10:20 PM
  2. Replies: 0
    Last Post: 06-19-2011, 10:56 AM
  3. Replies: 0
    Last Post: 03-17-2011, 10:58 AM
  4. [ASK] Script Keyboard Event buat munculin suara
    By Rhaito in forum Flash CS3, CS4, CS5.5 dan Action Script 3
    Replies: 7
    Last Post: 02-09-2011, 01:57 PM
  5. Status Yahoo Messanger di web full flash
    By gemini in forum Beginner
    Replies: 3
    Last Post: 07-28-2009, 01:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •