Flash Builder Design View extension FAQ
Extending Flex Builder
Design View Extensibility Kit for Flex 4.5
I refers the above links, in that they explain that, we can do custom code generation for flex through a Java Extension class and design.xml. I understood about design.xml. but in the case of Extension class where I will get a example. The above links gave me a little idea about the custom code generation. please help me where i will get more details about the custom code generation in flex and flash builder 4.5. please give me a example or your suggestions
As I see it there are mainly two types of components.
Control (Button, TextInput, TextArea etc)
Container (VGroup, HGroup, Accordian etc)
With control components, you can set the properties and it gets reflected in design view of Flash Builder. Contains on the other hand can have layout logic and can accept drag/drop of other controls/containers. It depends on which kind of component you are trying to develop. In Flash Builder 4.5 you can see DataGrid supports direct connectivity and is more advanced. You can set the dataprovider and map the data to grid columns. For that kind of functionality, you will have to extend the design view extension.
Related
We have a requirement to customize the OOB Assest share and assest editorcomponent in AEM 6.2.(available at /libs/dam/components/asseteditor &/libs/dam/components/assetshare path respectively)
Few challenges I can see:
1.The component dialog is available only in Classic UI but we want the same in touch UI mode.
2.Can we get the Java code of these components so that we can customize the functionality?
What is the best way to achieve this?
The assetshare and asseteditor components are there to make pages that layer the DAM interface with a simpler functionality. Theses components are not in TouchUI (as of 6.2) but even if they were, these would be like core components with limited functionality. You can overlay these and provide your own templates and components just like normal component extension. All the code is in JSP under the respective components.
These components are not responsive but the genrated page can be made responsive.
I want to know what is skinning and what is custom components? I know this is so chilly question. But I would like know about it. And where we have to use skinning and where we have to use custom components? If it has any similarities , please tell me about it.
I just want the clear explanation about these two things.
Thank you.
Skinning -
For example, dropdownlist open dropdown, which has default hovered color, selected color, etc. which you have to change according to your application, then you can change it by skinning the dropdownlist component...
Custom component -
For example, button component has default events like, click event, mouse evnt, etc. and according to your application you have to remove some of events or modify some then create button with your event...
Please check below links...which will help you more...
Need the example to use custom component in FLEX application
http://coenraets.org/blog/2010/01/creating-a-custom-component-and-skins-in-flex-4/
Skinning is about the look and feel of the application. What colors to use, drops shadows etc.
Custom component is tweaking an existing widget, combining widgets or creating a new one from scratch to achieve functionality that does not exist in the standard Sdk. Good examples of custom components are charts from 3rd party vendors
The question is: Is it a good practice to use SpriteVisualElement instead of UIComponent to create custom components? The reason being I can't add Sprite or FlexSprite as direct children of View and I see that UIComponent is quite heavy then SpriteVisualComponent from code point of view.
I searched extensively to confirm if there are certain examples elsewhere which shows use of this control as the base to create custom controls but could only find this. So actually I was little less confident about weather this is Ok or not.
Below is the supplement information:
Nature of application: Educational game application for children
Target platform: Mobile device (currently only Android platform)
Application environment: Flex SDK4.6 with AIR 3.8. Blank Spark application with spark.components.ViewNavigator. PureMVC framework used. Multiple Views to contain custom components which mostly use graphics package to draw themselves and to draw child controls within them (This is where I actually extend SpriteVisualElement for custom drawing as well as containing and displaying other custom controls).
Please suggest me if what I am doing is a good practice for a mobile app or not.
Thanks in advance and regards,
Sachin.
I use it often as SpriteVisualElement is lighter. I always try to use lighter things if it's fit my needs so I think it's a good practice especially for mobile development.
I have used the datepicker object in flex to choose dates. I was wondering if anyone knew of any component that allowed the time to be picked from the same object.
For example something similar to
from http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_inputDate.html
I have some space issues in my UI and this would really help. Does anyone know of a library for this sort of component
Thanks
I don't know of any custom component which can suit your needs. You can develop your own custom component in Flex, by following UIComponent life cycle. Refer to any existing component e.g. Panel to understand it better. (You can find the source of the component in flex sdk folder)
I am new to flash and learning action script 3.
I am using flex. But i find it hard.
Should i use Adobe flash so that i can insert the components by drag and drop
You can use the Design view in Flex to drag and drop components too,
but that doesn't matter.
What matters is is why you want learn actionscript 3 ? What do you want to use if for ?
For RIAs and the like, Flex is a good option. For rich media websites/presentations/games, go
with Flash as you'll have more/easier control over media.
Bad news is since actionscript 3, there is no easy way, but all the hard work will pay off.
Once you get used to it/get to the point where it clicks, it might be a bit hard, but not impossible.
Goodluck