0

Flash crossdomain issue??

Hi, I am trying to write an application in Flash.
But when I tried to load the profile image from http://f3.yahoofs.com, it failed.

I also tried the sample 2, YOSAdvanced.fla, the friends area always blank...
Anybody suffer from this situation?

* I use Flash CS3

by
3 Replies
  • QUOTE (Montie @ Dec 1 2008, 03:14 AM) <{POST_SNAPBACK}>
    Hi, I am trying to write an application in Flash.
    But when I tried to load the profile image from http://f3.yahoofs.com, it failed.

    I also tried the sample 2, YOSAdvanced.fla, the friends area always blank...
    Anybody suffer from this situation?

    * I use Flash CS3


    I use a proxy.php to solve the crossdomain issue.
    works here:
    http://www.golfly.com.tw/yap_flash/YOSAdvanced.html
    NOT work here:
    http://apps.yahoo.com/-2Npnni4q
    it's the same swf access the same XML.
    Only works outside YAP. Is there any restriction on flash load picture in YAP??

    Is there any work around solution?
    this is my proxy.php
    CODE
    <?php
    //note that this will not follow redirects
    header('Content-type: image/jpeg');
    readfile($_GET['dataURL']);
    ?>


    this is my XML (now static)
    CODE
    <?xml version="1.0" encoding="utf-8"?>
    <items id = "items">
    <item path = "http://www.golfly.com.tw/yap_flash/proxy.php?dataURL=http://f3.yahoofs.com/coreid/48d7318ci1196zul1sp1/Fx7vRag8dKjR9D5Sawnm7l40fcdGEg--/4/t192.jpg?ciA8pYJBmLihXsYW" width = "192" height = "192" type = "bitmapfile">
    <title>Montie</title>
    <description>description</description>
    </item>
    <item path = "http://www.golfly.com.tw/yap_flash/proxy.php?dataURL=http://f3.yahoofs.com/coreid/48856fa3i1f87zul1sp1/QaFgctU7eKmNn_NN7Lp4YVkl/102/t192.jpg?ciA8pYJB6wUi.eyS" width = "192" height = "192" type = "bitmapfile">
    <title>Montiie</title>
    <description>description</description>
    </item>
    <item path = "http://www.golfly.com.tw/yap_flash/proxy.php?dataURL=http://f3.yahoofs.com/coreid/492f8983i25f0zul5sp1/QAMEyQo_eqUma8sQCFg1r9o-/108/t192.jpg?ciA8pYJBNS0zCsl1" width = "192" height = "192" type = "bitmapfile">
    <title>Montiie</title>
    <description>description</description>
    </item>
    <item path = "http://www.golfly.com.tw/yap_flash/proxy.php?dataURL=http://f3.yahoofs.com/coreid/48181236ic82zul1sp1/XFXQaiY7cq.GzF_hb1iw/1/t192.jpg?ciA8pYJBwoqFwGzj" width = "192" height = "192" type = "bitmapfile">
    <title>Montiie</title>
    <description>description</description>
    </item>

    </items>
    0
  • QUOTE (Montie @ Dec 1 2008, 03:14 AM) <{POST_SNAPBACK}>
    Hi, I am trying to write an application in Flash.
    But when I tried to load the profile image from http://f3.yahoofs.com, it failed.

    I also tried the sample 2, YOSAdvanced.fla, the friends area always blank...
    Anybody suffer from this situation?

    * I use Flash CS3


    I solved this problem....
    thanks~
    0
  • Hi Montie, may I know how your flash application obtain the OAuth access token and secret on YAP?
    0

Recent Posts

in YAP