Got the solution!
By loading the image, i forgot the LoaderContext 
loader.load(urlrequest, new LoaderContext(true));
Hi there,
im building a flash photo gallery that loads your facebook photo’s into the gallery. The gallery is working really good, but when i test it online, he wont load the images.
Here is how i get my data:
package remco.ui.photo.Facebook {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.Security;
import com.serialization.json.JSON;
public class FacebookAlbumLoader extends EventDispatcher {
private static const GRAPH_URL:String="http://graph.facebook.com";
private var photoSetID:String;
private var dataArray:Array = new Array();
private var object:Object;
private var initialized:Boolean = false;
private var urlRequest:URLRequest;
private var urlLoader:URLLoader;
public static const LOADED:String = "loaded";
public function FacebookAlbumLoader(target:IEventDispatcher=null) {
super(target);
Security.loadPolicyFile("http://graph.facebook.com/crossdomain.xml");
Security.loadPolicyFile("http://profile.ak.fbcdn.net/crossdomain.xml");
Security.loadPolicyFile("http://api.facebook.com/crossdomain.xml")
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function load( photoSetID:String ):void {
this.photoSetID = photoSetID;
urlRequest = new URLRequest(GRAPH_URL + "/" + photoSetID + "/photos");
urlLoader = new URLLoader(urlRequest);
urlLoader.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
}
private function onComplete(e:Event):void {
object = JSON.deserialize(e.target.data);
var i:int = 0;
for each (var o:Object in object.data) {
var imgOb:Object = new Object();
imgOb.tmb = o.images[5].source;
imgOb.img = o.images[0].source;
dataArray.push(imgOb);
};
trace("FacebookAlbumLoader: \t dispatch LOADED");
dispatchEvent(new Event(FacebookAlbumLoader.LOADED));
initialized = true;
}
public function get init():Boolean {
return initialized;
}
public function getImageData():Array {
return dataArray;
}
}
}
am i missing something? help appreciated 
What i want is that the Text output look likes this: with one break:
lorem ipsum dolor sit amet
Working with XML data it should be easy: XML .ignoreWhitespace = true; But how can i get that result with JSON data?
Hi there,
Does anyone know how you can turn on the IgnoreWhitespace on a Textfield (or String variable) ?
My problem in with JSON : In String textfields he’s shows up with alot of breaks, like:
{"textValue": "Lorem ipsum dolor<br />
sit amet<br />
lorem ipsum dolor<br />}
My flash textfield looks like this now:
Lorem ipsum dolor sit amet
Hi there,
I was wondering which of you Flash developers is using MVC ? Which and why?
Finally, got it..
for the one who needs it, this it the link: http://www.linkedin.com/shareArticle?url=http://www.activeden.netDoes anyone how to share text on Linkedin, like the way you can on Twitter and Facebook?
so, like this: http://twitter.com/share?d=&text=This+is+my+share+textbut then on linkedin!
cant find anything good..
21% with my code? or your code?
hmm… weird stuff! But thanks
gonna try yours tomorrow! Hope it helps
Thanks!
Hello there,
Im working on a flash project, and i need a little optimalisation.
First, the example: http://www.studiosteen.nl/clients/windsor/#/baden and click on a thumbnail (sorry, second deeplink for the fullscreen image doesnt work yet :))
The image should move on MouseMove, that is working. But if you check your CPU , its going WILD ! sometimes even up to 140%! Thats not what i want of course..
This is the function in the full image class:
private function onMouseMove(e:MouseEvent):void {
var rapW:Number = (stage.stageWidth/2)/((_photo.width-stage.stageWidth)/2);
var rapH:Number = (stage.stageHeight/2)/((_photo.height-stage.stageHeight)/2);
var speed:Number = ConfigManager.SPEED*2.5;
if (_photo.width>stage.stageWidth) {
TweenLite.to(_photo, speed, {x:-mouseX/rapW, ease:Quart.easeOut});
}
if (_photo.height>stage.stageHeight) {
TweenLite.to(_photo, speed, {y:-mouseY/rapH, ease:Quart.easeOut});
}
}
Maybe some of you has some good tips for me ?
did you guys see this one too?
http://www.youtube.com/desperados
same principle. but still awsome to see!
