PDA

View Full Version : Cooliris (like) 3D Wall.



radd
May 10th, 2009, 01:39 PM
Hi,

I'm trying to make the same effect as in the Cooliris wall in Flash using the Away 3D classes.
Here is the (so far) progress: http://www.mca-comintermed.ro/demos/wall/cooliris.html

1. (Dumb question) I don't know why the pictures from flickr feed are not showing when my site is online. It works on my local but I just saw that it doesn't when online. I thought flickr has a crossdomain.xml...

2. (This is my real question) How can I make a shadow of the last row? If you look at Cooliris plugin you will see that the wall looks like being placed over a shiny glass so the last row is reflected. What's the best practice to do that? Can I duplicate all thumbnails from the last row and just rotate them? Is that good for the CPU and memory when I will deal with a very long wall?

sebrofm
May 10th, 2009, 02:19 PM
try adding System.allowDomain("domain"); for each domain you load images from (ie flickr)

radd
May 10th, 2009, 07:05 PM
there has to be something else...
I thought that allowDomain is to be set inside the SWF that is being accessed from outside.

radd
May 17th, 2009, 05:38 PM
Why can't anyone tell me what's wrong ?!

sebrofm
May 17th, 2009, 07:07 PM
why can't you be more specific? we try to help but we're not telepathic, be more detailed!

radd
May 18th, 2009, 06:35 AM
Hi,
OK here is the link : http://www.mca-comintermed.ro/demos/wall/cooliris.html
It should load images from flickr feeds like : http://api.flickr.com/services/feeds/photos_public.gne?id=72974131@N00&lang=en-us&format=rss_200

Works very well on my computer but not online.

Kirbyprime
May 18th, 2009, 09:05 AM
It's possible that flickr themselves forgot to set it to allow offsite linking for their rss feed. I doubt this is the only solution, but you could always try php route and clone the rss page using the php file_get_contents method. Here's a quicky on how to get a page working for testing purposes.



<?php
$link = file_get_contents("whatever is the link to the rss page") or die("Cannot open file");
echo $link;
?>

radd
May 18th, 2009, 09:31 AM
private var imageUrl:String = "proxy.php";
imageXML = new URLLoader(new URLRequest(imageUrl));http://www.mca-comintermed.ro/demos/wall/proxy.php
Still nothing in flash... :(

Kirbyprime
May 18th, 2009, 09:52 AM
Using debugger mode I got this error:



SecurityError: Error #2122: Security sandbox violation: Loader.content: http://www.mca-comintermed.ro/demos/wall/cooliris.swf cannot access http://farm4.static.flickr.com/3635/3541721751_193c9a7c80_s.jpg. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
at flash.display::Loader/get content()
at away3d.materials::BitmapFileMaterial/onComplete()


So pretty sure it's just their site not allowing offsite linking. Though the proxy page should have worked...

radd
May 22nd, 2009, 06:42 PM
Check this out : http://ahmednuaman.com/blog/2009/05/21/showing-flickr-images-in-a-flash-app/