header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Sachin
Points:190
Posts:9

11/23/2009 9:44:42 AM

Title: What is widget? In flex and where is can use?


Hi,

Can you please explain me in simple word what is the widget functionality in flex and where exactly we can use it?

If you can give me any practical example that, would be really great.


thanks



1
FlexmyLife
Points: 0
Posts:0
11/24/2009 4:09:21 AM



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.

2
Sachin
Points: 190
Posts:9
11/24/2009 10:03:21 AM



thanks, It means, just like a custom component right? Can you give me any practical example?

3
Sachin
Points: 190
Posts:9
11/24/2009 10:58:21 AM



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)

4
JackTacy
Points: 0
Posts:0
11/24/2009 11:55:53 AM



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.

5
FlexmyLife
Points: 0
Posts:0
11/24/2009 11:59:46 AM



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.

6
Sachin
Points: 190
Posts:9
11/25/2009 3:02:56 AM



Hi, if you don't mind can you give me that tutorial here in this thread?

7
Nelly
Points: 0
Posts:0
11/25/2009 4:12:09 AM



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

http://dev.aol.com/api/yourminis/learning/felx-rss-widget-tutorial

8
Sachin
Points: 190
Posts:9
11/26/2009 3:56:51 AM



sorry but this example is not working

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]

9
mary
Points: 0
Posts:0
11/19/2010 5:01:16 AM



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?

10
Phillipe
Points: 0
Posts:0
11/19/2010 5:48:48 AM



@mary

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 .


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+15+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions