Click here to ask Question NowIts free No registration required. Flash, Flex, Flash
Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Widget in flex is a re-usable module providing some specific functionality, it could be a complete application or an assisting application . So a flex widget can be an application which is created for distribution. The module is independent and can be loaded in any flex application. For e.g a weather widget which uses API of some xyz.com website, the xyz.com can distribute its flex module ( widget ) so that people can use it in there application and display weather information.
If i want to create a very very simple widget, how would I start? and what is the difference between a normal application and a widget application?
(eg: a normal photo scroll and a widget photosroll)
Sachin, there is no such difference between a widget and flex application. A widget is supposed to be an application which should be able to perform some specific functionality independently. A widget may be distributed as an flex application compiled to swf file to be used in HTML file or it may be an Flex module to be used in flex applications.
An application is called widget because of its nature of work. A widget generally displays info or performs work the way the distributor designed it to. In a typical scenario the widget will load an xml file or call webservice to load information from distributor's website and perform work. So the control lies in the hands of the distributor. For e.g a flickr.com widget may be designed to display latest 10 images posted . The swf file can be used by any website but that swf will load info from flickr.com calling there webservice.
I am working on a tutorial for simple widget. Will send it to the admin, hope he will add it or else i will post it on this thread.Will inform you, hopefully I will complete it in a day.
Widgets should be created in flash not flex, in flex size is too big and the people will hesitate to add a 300 kb widget to there page. In flash it will be just few kb.Check this link for sample
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at temp/onLoad()[E:\tryflex\adobeTraining\WORKFILE\temp\src\temp.mxml:19]
at temp/___temp_Application1_initialize()[E:\tryflex\adobeTraining\WORKFILE\temp\src\temp.mxml:3]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set processedDescriptors()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1217]
at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:3506]
at mx.core::Container/createChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2589]
at mx.core::UIComponent/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5370]
at mx.core::Container/initialize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2526]
I'm an tybscit student have an idea ofmaking the use of widget in my project.
Ijust have a rough idea that widget can be used to display more than one appln in same site .what's the use of widget?
A typical use of widget is to display some information from a source. A good example will be a widget from eBay.com which will display adds of product's from ebay, if you place it in your website pages. So its basically a simple application which gets data from ebay.com and displays it anywhere it is placed. A widget can be used at multiple places in a single page. A news widget from some news agency can display latest news .