Friends

Blog powered by TypePad

« Lee will be speaking at the London Flash Platform Users Group | Main | The Difference Between Flex and Flash »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8347b318169e201116847e2f5970c

Listed below are links to weblogs that reference FlashLoaded 3dWall working in flex as a flex component:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

You don't have to publish the movie to get a swc--if you right click on the symbol you want to make int a swc, you will see the option to do that.

Thanks Amy, good catch, I've corrected the document.

follow the intire tutorial and get blank flex app nothing shows. any help! also thanks for the tutorial.

if you can post your flex app somewhere with "view source" I can take a quick look :)

thanks, the link will be online for one day.
http://ria.web44.net/test/flashloaded.html

You didn't call init on your wall and you need to setup some wall defaults, you probably don't need all of these but this is what I used when testing.

wall.numRows=1;
wall.wallCurvature=0;
wall.elementLimit=100;
wall.XMLNoCache=false;
wall.smoothElements="auto";
wall.allowKeyboardControl=true;
wall.cameraActionOnScrollWheel="no action";
wall.scrollWheelZoomSensitivity=3;
wall.useHandCursor=true;
wall.showWarningMessages=true;

// camera

wall.cameraRotationFactor=3;
wall.cameraReactionTime=7;
wall.cameraStartPosition=50;
wall.cameraTiltStart=0;
wall.cameraDistance = 200;
wall.cameraZoom= 1;

// DOF

wall.depthOfFieldEnabled=false;
wall.depthOfFieldFineness=15;
wall.depthOfFieldMaxBlur=1;
wall.depthOfFieldBrightnessVariation=70;

// scroll
wall.scrollbar=false;

// stage scrolling

wall.stageScrollVerticalEnabled = true;
wall.stageScrollVerticalUpperLimit = 500;
wall.stageScrollVerticalLowerLimit = -200;
wall.stageScrollSensitivity = 3;
wall.autoScroll = false;


// opening animation


wall.animateClose = false;
wall.thumbnailFlyInEasing = "easeOutQuad";
wall.thumbnailFlyInStartScale = 0;
wall.thumbnailFlyInDistance = 400;
wall.thumbnailFlyInTimingDistribution=2;
wall.thumbnailFlyInTime = 2;
wall.thumbnailFlyInFrom = "behind wall";
wall.thumbnailFlyInRotationX =0;
wall.thumbnailFlyInRotationY=100;
wall.thumbnailFlyInRotationZ=0;

// closing animation

wall.animateClose = true;
wall.thumbnailFlyOutEasing = "easeOutQuad";
wall.thumbnailFlyOutStartScale = 0;
wall.thumbnailFlyOutDistance = 800;
wall.thumbnailFlyOutTimingDistribution=2;
wall.thumbnailFlyOutTime = 2;
wall.thumbnailFlyOutFrom = "behind camera";
wall.thumbnailFlyOutRotationX =0;
wall.thumbnailFlyOutRotationY=100;
wall.thumbnailFlyOutRotationZ=0;


// thumbnails

wall.thumbnailSpacingHorizontal = 15;
wall.thumbnailSpacingVertical = 15;
wall.thumbnailMaxWidth = 120;
wall.thumbnailMaxHeight = 80;
wall.thumbnailsDoubleSided = false;
wall.thumbnailSegmentsHorizontal =1;
wall.thumbnailSegmentsVertical =1;
wall.videoControls = false;


wall.visible = true;
wall.init();

thanks! but still not showing there something missing in my test. could you send the mxml file to my email to compare with my project?
melvinnievessoto@live.com

I don;t actuall have an mxml file, here is the code that is called on creation complete of my class

wall = new com.flashloaded.Wall3DPro.Wall3DPro();

var wrapper :UIComponent = new UIComponent();
var hbox : HBox = new HBox();
hbox.width = 900;
hbox.height = 400;
//wall.wallWidth=900;
wall.width = 900;
wall.height=400;
hbox.setStyle("backgroundColor", "#FF0000");

wrapper.addChild(hbox);
wrapper.addChild(wall);

this.addChild(wrapper);


wall.setMediaPaths("assets/img/portfolio/", "assets/img/portfolio/");

var obj:Object = new Object();
obj.type = "image/jpeg";
obj.src ="aso-calendar-200x150.jpg";
obj.width="200";
obj.height="150";

var obj2:Object = new Object();
obj2.type = "image/jpeg";
obj2.src ="aso-graphic-calendar-200x150.jpg";
obj2.width="200";
obj2.height="150";

var obj3:Object = new Object();
obj3.type = "image/jpeg";
obj3.src ="aso-home-200x150.jpg";
obj3.width="200";
obj3.height="150";

var obj4:Object = new Object();
obj4.type = "image/jpeg";
obj4.src ="aso-sitecore-200x150.jpg";
obj4.width="200";
obj4.height="150";





var objArray : Array = new Array();

objArray.push(obj);
objArray.push(obj2);
objArray.push(obj3);
objArray.push(obj4);
wall.addElements( objArray, "array");

// general

wall.numRows=2;
wall.wallCurvature=0;
wall.elementLimit=100;
wall.XMLNoCache=false;
wall.smoothElements="auto";
wall.allowKeyboardControl=true;
wall.cameraActionOnScrollWheel="no action";
wall.scrollWheelZoomSensitivity=3;
wall.useHandCursor=true;
wall.showWarningMessages=true;


// camera

wall.cameraRotationFactor=1;
wall.cameraReactionTime=7;
wall.cameraStartPosition=0;
wall.cameraTiltStart=200;
wall.cameraDistance = 600;
wall.cameraZoom= 4;

// DOF

wall.depthOfFieldEnabled=true;
wall.depthOfFieldFineness=15;
wall.depthOfFieldMaxBlur=1;
wall.depthOfFieldBrightnessVariation=70;

// scroll
wall.scrollbar=false;

// stage scrolling

wall.stageScrollVerticalEnabled = true;
wall.stageScrollVerticalUpperLimit = 500;
wall.stageScrollVerticalLowerLimit = -200;
wall.stageScrollSensitivity = 3;
wall.autoScroll = false;


// opening animation


wall.animateClose = false;
wall.thumbnailFlyInEasing = "easeOutQuad";
wall.thumbnailFlyInStartScale = 0;
wall.thumbnailFlyInDistance = 800;
wall.thumbnailFlyInTimingDistribution=2;
wall.thumbnailFlyInTime = 2;
wall.thumbnailFlyInFrom = "behind camera";
wall.thumbnailFlyInRotationX =0;
wall.thumbnailFlyInRotationY=100;
wall.thumbnailFlyInRotationZ=0;

// closing animation

wall.animateClose = true;
wall.thumbnailFlyOutEasing = "easeOutQuad";
wall.thumbnailFlyOutStartScale = 0;
wall.thumbnailFlyOutDistance = 800;
wall.thumbnailFlyOutTimingDistribution=2;
wall.thumbnailFlyOutTime = 2;
wall.thumbnailFlyOutFrom = "behind camera";
wall.thumbnailFlyOutRotationX =0;
wall.thumbnailFlyOutRotationY=100;
wall.thumbnailFlyOutRotationZ=0;


// thumbnails

wall.thumbnailSpacingHorizontal = 15;
wall.thumbnailSpacingVertical = 15;
wall.thumbnailMaxWidth = 120;
wall.thumbnailMaxHeight = 80;
wall.thumbnailsDoubleSided = false;
wall.thumbnailSegmentsHorizontal =2;
wall.thumbnailSegmentsVertical =2;
wall.videoControls = false;


wall.visible = true;
wall.init();

thanks! i still doing something wrong. ill play around to make it work thanks for your`e help and keep the good work!

here is my code if you can give me one last push. ill apressiate youre help.
http://ria.web44.net/test/3dWall.mxml

Hello,
First, thank you for this great tutorial.
But I have a problem: when I try to view the wall, nothing appears. Yet, I have access to various properties and methods.
In Flash, I put flash.display.MovieClip in base class, Flash will not accept anything else. I don't know if it can be the cause... An idea ?

Here an example : http://versgui.fr/PSM/Flex/wall3D.html

I immediately get a null pointer exception in your example

Oops, I corrected the error.
But now I have an other error : "ArgumentError: Error # 2015: Invalid BitmapData ."...
And I have absolutely no idea where it can come: I tested without an image, with an XML or directly with the images path... Without success.

Is there some syntax or property I'm not seeing that controls the wall width? I set wall.width = [anything] and it never changes.

Did you set the parent to be large enough too, I could NOT just set the parent container to 100% I had to make the parent the size of the child otherwise my widths where ignored on the wall.

I've tried this with the direction above. It woudl be very helpful if a working project file is made available.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.