Published by Administrator on 13 Aug 2007 at 08:10 am
HSmoothBox and VSmoothBox
The HSmoothBox and VSmoothBox are Adobe Flex (2.0+) HBox/VBox like components, which have horizontal/vertical, animated smooth scrolling.
It’s free unders the Artistic license. check it out!
Administrator on 25 Aug 2007 at 2:04 pm #
Hi all,
Feel free to post comments, questions, bugs, requests…
I will try to be as responsive as I can.
I’d appreciate some feedback.
Cheers
Eran Argaman, Flex Componentor » Blog Archive » containerEx Libray v1.0.1 available (HSmoothBox, VSmoothBox) on 30 Aug 2007 at 5:08 pm #
[…] exposed now). go to the downlads page to get it. Also updated the sample usage applications here, http://strawberrypixel.com/blog/flex-components/#hsmoothbox […]
Eran Argaman, Flex Componentor » containerEx v1.02 and v1.3.2 available (flex 2/ flex 3) on 08 Mar 2008 at 7:54 am #
[…] to the downlads page to get it. sample usage applications here, http://strawberrypixel.com/blog/flex-components/#hsmoothbox […]
imtiyaz on 26 Jul 2008 at 12:51 pm #
Hi,
While working with your component I faced these issues.
1. I can’t add components using Repeater in it, At last its a container, why is not happening.
2. I can’t add childs dynamically through action script.
I can add component using data provider to it, and need to mention ItemRenderer.
Why so ? Can’t I add different components to it.
So, I did a small work around I don’t exactly know in which case it will break your code, but for know its working fine.
here is the code.
protected function buildFromDataProvider():void
{
itemContainer.removeAllChildren();
for(var i:int=0;i<calcMaxItemScrollBy();i++)
{
if(dataProvider[i] == null)
throw new Error(”your trying to add null object, which not supported”);
if(_dataProvider[i].height == 0)
throw new Error(”please mention the height of component”);
if(_dataProvider[i].width == 0)
throw new Error(”please mention the width of component”);
addScrollChild(dataProvider[i],false);
}
//invalidate list
invalidateScrollList();
}
Regards,
Imtiyaz
Administrator on 27 Jul 2008 at 6:46 am #
Thanks for the info,
The Repeater issue is something someone else posted about (http://strawberrypixel.com/blog/flex-components/#comments)
, unfourtunatly it is not supported yet (as you can see it is not actually a simple container inside). I will hopefully support it in the next release.
If you want to add components dynamically use the addScrollChild function externally (creationComplete or something) similar to what you posted. The BuildFromDataProvider is intended for dataProvider < -> itemRenderer pattern only.