Problem Summary: In a flex project, I need to insert an object to a object list which is derived from Container component. However, the list has fixed width and height, and the items of the list are too many to display one-time. So i have to scroll the list to the proper position then drag the object from a panel and insert it. I need a convenient way to complete this. I worte an AutoScrollManager utility to help myself.
Solution Summary: I add an event listener to the stage object of container’s systemManager object. It’s used to find the proper Container during the run-time because the container cannot trigger the MouseMove event while I am dragging the object from the panel. It is covered by what I am dragging. I have to find the proper container according to the Mouse coordinates. The function findContainer helps me a lot. Despite of this big problem, there is nothing hard to deal with.
Demo(
Download Full Project):
sorry for the unapproprite comment.
i am learning the flex and actually i need help regarding the generation of the mxml file from database. any sample code example or pointers ??
appriciate ur help.
thanks
sorry for the unapproprite comment.
i am learning the flex and actually i need help regarding the generation of the mxml file from database. any sample code example or pointers ??
thanks
That’s a good idea, it sounds interesting. I am digging for this now.
AutoScrollManager Class: Scroll scrollbar when mouse is moving in a specified area and mouse button is down…
Problem Summary: In a flex project, I need to
insert an object to a object list which is derived from Container
component. However, the list has fixed width and height, and the items
of the list are too many to display one-time. So i have to scroll …
With the use of XML_MXML(http://pear.php.net/package/XML_MXML), it is able to build flex documents programmatically.
Is this what you want?
Could you provide detailed information about your idea?
thanks for showing interest.
actually i am using the flex with the Jboss seam. i have to create diferent flex pages which actually loads the data from database for different requests (e.g account info request which contains only two fields account Id and balance,so the flex page contains only two fields, for some other request more attributes….and i ahve to generate the flex out of the attributes received from database). this i want because i have buch of requests which differs from each other on attribute basis.
thanks
[...] } Permalink:http://ntt.cc/2008/08/01/autoscrollmanager-class-scroll-scrollbar-when-mouse-is-moving-in-a-specifie… [...]
I think you can generate the flex pages using actionscript with flex. All you should do is to load data into flex and parse it to target components.
Or does this swfgen (http://www.swfkit.com/swfgen.html) meet your requirement?
Or this swfscout (http://www.bytescout.com/swfscout.html)
I think the first one is quite easy. Make a module contains only one Form component. at the initialization process , load the attributes , then parse them as FormItem.
http://www-128.ibm.com/developerworks/cn/opensource/os-php-flash/
This is a PHP library used to generate Swf files programmatically which may help you.
Hmmm…..
above link is in chinese…
Following is English VERSION:
http://www.ibm.com/developerworks/opensource/library/os-php-flash/?S_TACT=105AGX52&S_CMP=cn-a-os
[...] URL: http://ntt.cc/2008/08/01/autoscrollmanager-class-scroll-scrollbar-when-mouse-is-moving-in-a-specifie... [...]
[..] A bit unrelated, but I absolutely liked this site post [..]