Urgent help in asyoutubelib application for swf

3 views
Skip to first unread message

matifq

unread,
Jul 23, 2008, 3:00:39 PM7/23/08
to ActionScript 3 YouTube Library
Hello,

I have developed a custom application in flash cs 3 which uses
asyoutubelib api to retrieve youtube videos when given the youtube
link. When i compile the application its runs smooth and all fine but
when i am uploading it to my website it stops functioning by giving an
error message...

Error #2044: Unhandled securityError:. text=Error #2048: Security
sandbox violation: http://unhp.com.pk/samples/youtubetest/youtube.swf
cannot load data from
http://www.youtube.com/api2_rest?dev_id=PkkPoifY1d0&method=youtube.videos.get_details&video_id=ZHFZy0pU9YQ&.

my web link is
http://unhp.com.pk/samples/youtubetest/youtube.html

Please help me in this matter.

Regards,
Atif

Clark

unread,
Aug 11, 2008, 8:28:02 AM8/11/08
to ActionScript 3 YouTube Library
I think the reason for this is due to sandbox violation.

You should google for a crossdomain xml file which will allow your SWF
hosted on your website to call data from a different website. Failing
to provide a cross domain policy file on your hosting will result in
failure.

On Jul 23, 8:00 pm, matifq <mat...@gmail.com> wrote:
> Hello,
>
> I have developed a custom application in flash cs 3 which uses
> asyoutubelib api to retrieve youtube videos when given the youtube
> link. When i compile the application its runs smooth and all fine but
> when i am uploading it to my website it stops functioning by giving an
> error message...
>
> Error #2044: Unhandled securityError:. text=Error #2048: Security
> sandbox violation:http://unhp.com.pk/samples/youtubetest/youtube.swf
> cannot load data fromhttp://www.youtube.com/api2_rest?dev_id=PkkPoifY1d0&method=youtube.vi....
>
> my web link ishttp://unhp.com.pk/samples/youtubetest/youtube.html
Reply all
Reply to author
Forward
0 new messages