<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1003891420105625547</id><updated>2011-11-27T17:15:45.690-08:00</updated><category term='Flex'/><title type='text'>Flex Interview Questions - An interviewhelper.org blog</title><subtitle type='html'>This blog contains common Flex interview questions asked by different organizations.&lt;br&gt;&lt;br&gt;
For more such interview questions, please visit our website &lt;a href="http://interviewhelper.org"&gt;Interview Helper&lt;/a&gt;........&lt;a href="http://interviewhelper.org"&gt;&lt;img src="http://interviewhelper.org/images/interviewhelper.jpg" width="200" height="73" border="0"&gt;&lt;/a&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-9213987171716099169</id><published>2009-03-27T05:35:00.059-07:00</published><updated>2009-03-30T00:13:19.099-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>I'm sending my request, and I see the data traffic in the command window, but why is the result always</title><content type='html'>&lt;strong&gt;Question :I'm sending my request, and I see the data traffic in the command window, but why is the result always&lt;br /&gt;empty?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Answer :You are probably trying to read the result immediately after the send(), right? You're expecting&lt;br /&gt;synchronous behavior?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-9213987171716099169?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/9213987171716099169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/im-sending-my-request-and-i-see-data.html#comment-form' title='37 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9213987171716099169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9213987171716099169'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/im-sending-my-request-and-i-see-data.html' title='I&apos;m sending my request, and I see the data traffic in the command window, but why is the result always'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>37</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-8189133480550587994</id><published>2009-03-27T05:35:00.058-07:00</published><updated>2009-03-30T00:10:47.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do I get Flex to query my database</title><content type='html'>&lt;strong&gt;Question :How do I get Flex to query my database?&lt;/strong&gt;&lt;br /&gt;Answer :Flex does not have any native database integration functionality. You must have your own server-side&lt;br /&gt;tier that provides the database-access tier and sends the data back to Flex through one of the&lt;br /&gt;following protocols:&lt;br /&gt;•RemoteObjects: This is the fastest. It communicates with server-side EJBs or POJOs using&lt;br /&gt;AMF, a binary compressed format.&lt;br /&gt;•HTTPService: This one uses the HTTP protocol. Sources can be JSP, ASPx, .NET, or any&lt;br /&gt;URL that returns HTTP.&lt;br /&gt;•WebService: This is the slowest. It uses the SOAP protocol. Sources can be .NET or any web&lt;br /&gt;service.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-8189133480550587994?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/8189133480550587994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-i-get-flex-to-query-my-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8189133480550587994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8189133480550587994'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-i-get-flex-to-query-my-database.html' title='How do I get Flex to query my database'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7662032190844804021</id><published>2009-03-27T05:35:00.057-07:00</published><updated>2009-03-30T00:09:20.179-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>myTree appears just fine but why can't I access the node attributes</title><content type='html'>&lt;strong&gt;Question :myTree appears just fine but why can't I access the node attributes?&lt;/strong&gt;&lt;br /&gt;Answer :Select a node in your myTree. In ActionScript, you can reference this node by using the following&lt;br /&gt;code: myTree.selectedNode;&lt;br /&gt;To access the attributes of the node, use the tree DataProvider API. These methods will work for&lt;br /&gt;any format dataProvider item, which might be an object, array, or XML node.&lt;br /&gt;The following example might work: myTree.selectedNode.attributes.myAttribute&lt;br /&gt;But the following example is far more reliable:&lt;br /&gt;myTree.selectedNode.getProperty("myAttribute");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7662032190844804021?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7662032190844804021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/mytree-appears-just-fine-but-why-cant-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7662032190844804021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7662032190844804021'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/mytree-appears-just-fine-but-why-cant-i.html' title='myTree appears just fine but why can&apos;t I access the node attributes'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7708280178599357448</id><published>2009-03-27T05:35:00.056-07:00</published><updated>2009-03-30T00:07:48.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>When I add or modify an item in my dataProvider, why doesn't it show up in my DataGrid</title><content type='html'>&lt;strong&gt;Question :When I add or modify an item in my dataProvider, why doesn't it show up in my DataGrid?&lt;/strong&gt;&lt;br /&gt;Answer :Low-level methods like Array.push() or myArray[0] = "whatever" do not cause the&lt;br /&gt;dataProvider's modelChanged event to fire.&lt;br /&gt;When you work with a dataProvider, it is always best to use the dataProvider API. In the above&lt;br /&gt;example, you might code: myDataProvider.addItem(myItemObject) to add an item or use&lt;br /&gt;editField() to modify a value programmatically.&lt;br /&gt;Alternatively, you can call myDataProvider.modelChanged yourself or reassign dataProvider to&lt;br /&gt;the control, as follows: myDataGrid.dataProvider = myDataProvider;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7708280178599357448?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7708280178599357448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/when-i-add-or-modify-item-in-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7708280178599357448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7708280178599357448'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/when-i-add-or-modify-item-in-my.html' title='When I add or modify an item in my dataProvider, why doesn&apos;t it show up in my DataGrid'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4487605319065902082</id><published>2009-03-27T05:35:00.055-07:00</published><updated>2009-03-29T23:59:42.320-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Why is myTreeNode.label or myTreeNode.attributes.label undefined</title><content type='html'>&lt;strong&gt;Question :Why is myTreeNode.label or myTreeNode.attributes.label undefined?&lt;/strong&gt;&lt;br /&gt;Answer :Make sure you use the TreeDataProvider methods to modify a node. Don't rely on the node being&lt;br /&gt;XML. For example, the above should be myTreeNode.getProperty("label") instead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4487605319065902082?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4487605319065902082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-is-mytreenodelabel-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4487605319065902082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4487605319065902082'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-is-mytreenodelabel-or.html' title='Why is myTreeNode.label or myTreeNode.attributes.label undefined'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2183791122219214102</id><published>2009-03-27T05:35:00.054-07:00</published><updated>2009-03-29T23:58:12.298-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>: Sometimes, if I don't move the mouse, "click" and "mouseDown" don't work. Why is that</title><content type='html'>&lt;strong&gt;Question :Sometimes, if I don't move the mouse, "click" and "mouseDown" don't work. Why is that?&lt;/strong&gt;&lt;br /&gt;Answer :This is a focus issue with Flash Player; usually when the UI changes "underneath" the mouse pointer,&lt;br /&gt;as in a ViewStack navigation where the buttons are in the same screen location.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2183791122219214102?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2183791122219214102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/sometimes-if-i-dont-move-mouse-click.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2183791122219214102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2183791122219214102'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/sometimes-if-i-dont-move-mouse-click.html' title=': Sometimes, if I don&apos;t move the mouse, &quot;click&quot; and &quot;mouseDown&quot; don&apos;t work. Why is that'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4419901186743531926</id><published>2009-03-27T05:35:00.053-07:00</published><updated>2009-03-29T23:55:28.649-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What does "The URL is not in the Proxy's whitelist" mean</title><content type='html'>&lt;strong&gt;Question :What does "The URL is not in the Proxy's whitelist" mean?&lt;/strong&gt;&lt;br /&gt;Answer :The whitelist is a security feature in Flex that requires you to define explicitly which URLs a data&lt;br /&gt;service call can access.&lt;br /&gt;You set this by editing the following file: ...\[flexroot]\WEB-INF\flex\flex-config.xml&lt;br /&gt;There are three sections, one each for WebService, HTTPService, and RemoteObject. Be sure you&lt;br /&gt;edit the correct section! Each has a subsection which contains nodes. To enable a URL for access by&lt;br /&gt;a Flex dataService call, enter that URL between the tags.&lt;br /&gt;For development phase only, you can allow global access with the wildcard rows. The flex-config&lt;br /&gt;file is heavily commented. Open it up and you will see more detailed instructions there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4419901186743531926?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4419901186743531926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-does-url-is-not-in-proxys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4419901186743531926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4419901186743531926'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-does-url-is-not-in-proxys.html' title='What does &quot;The URL is not in the Proxy&apos;s whitelist&quot; mean'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3019718585235018457</id><published>2009-03-27T05:35:00.052-07:00</published><updated>2009-03-29T23:54:09.976-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Why are there errors with the macromedia.css.LocatorParser class and WebLogic</title><content type='html'>&lt;strong&gt;Question :Why are there errors with the macromedia.css.LocatorParser class and WebLogic?&lt;/strong&gt;&lt;br /&gt;Answer :WebLogic ships with its own version of the fop.jar, which in turn includes the batik.jar, which is&lt;br /&gt;older and breaks Flex. To resolve this issue, remove the fop.jar from the CLASSPATH in the&lt;br /&gt;startWebLogic.cmd file. This may apply to non-WebLogic servers as well, where batik.jar was&lt;br /&gt;included.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3019718585235018457?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3019718585235018457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-are-there-errors-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3019718585235018457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3019718585235018457'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-are-there-errors-with.html' title='Why are there errors with the macromedia.css.LocatorParser class and WebLogic'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-9171604066605894108</id><published>2009-03-27T05:35:00.051-07:00</published><updated>2009-03-29T23:52:30.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Is double-clicking supported on various components</title><content type='html'>&lt;strong&gt;Question :Is double-clicking supported on various components?&lt;/strong&gt;&lt;br /&gt;Answer :Unfortunately, double-clicking is not supported by default. If you wish to add this functionality to,&lt;br /&gt;say, a List or DataGrid component, you will have to add the following ActionScript 2.0 code to your&lt;br /&gt;application:&lt;br /&gt;var someTimestamp:Number;&lt;br /&gt;public function doubleClickHandler( evt:Object ):Void {&lt;br /&gt;var now = getTimer();&lt;br /&gt;// we got a double-click&lt;br /&gt;if( ( now - someTimestamp ) &lt; 500 ) {&lt;br /&gt;// do something here ...&lt;br /&gt;}&lt;br /&gt;someTimestamp = now;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-9171604066605894108?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/9171604066605894108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/is-double-clicking-supported-on-various.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9171604066605894108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9171604066605894108'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/is-double-clicking-supported-on-various.html' title='Is double-clicking supported on various components'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2136545823609537790</id><published>2009-03-27T05:35:00.050-07:00</published><updated>2009-03-29T23:51:27.463-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Can I resize the Internet Explorer browser window from Flex</title><content type='html'>&lt;strong&gt;Question :Can I resize the Internet Explorer browser window from Flex?&lt;/strong&gt;&lt;br /&gt;Answer :Use getURL() to communicate with JavaScript in the HTML wrapper:&lt;br /&gt;getURL('javascript:window.resizeTo(1050,900)');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2136545823609537790?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2136545823609537790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-i-resize-internet-explorer-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2136545823609537790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2136545823609537790'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-i-resize-internet-explorer-browser.html' title='Can I resize the Internet Explorer browser window from Flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-9022570714513598277</id><published>2009-03-27T05:35:00.049-07:00</published><updated>2009-03-29T23:50:13.929-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do I get access to the J2EE session from my RemoteObjects</title><content type='html'>&lt;strong&gt;Question :How do I get access to the J2EE session from my RemoteObjects?&lt;/strong&gt;&lt;br /&gt;Answer :The AMF Gateway provides access to the current HttpServletRequest instance in a thread local&lt;br /&gt;variable. The session can be obtained from the request, as follows:&lt;br /&gt;flashgateway.Gateway.getHttpRequest().getSession();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-9022570714513598277?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/9022570714513598277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-i-get-access-to-j2ee-session.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9022570714513598277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9022570714513598277'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-i-get-access-to-j2ee-session.html' title='How do I get access to the J2EE session from my RemoteObjects'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-8937408193381285800</id><published>2009-03-27T05:35:00.048-07:00</published><updated>2009-03-29T23:48:36.627-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Why do strongly typed objects appear as "undefined" in the NetConnection Debugger</title><content type='html'>&lt;strong&gt;Question :Why do strongly typed objects appear as "undefined" in the NetConnection Debugger?&lt;/strong&gt;&lt;br /&gt;Answer :The NetConnection Debugger is an old utility from the early days of Flash Remoting that some&lt;br /&gt;developers still find useful. It has an issue, however, displaying types that have been registered with&lt;br /&gt;Object.registerClass(). If your Flex server is installed locally, we suggest enabling server-side&lt;br /&gt;"debug" level logging in /WEB-INF/flex/gateway-config.xml to watch the raw trace information in&lt;br /&gt;the Flex server console/logs from the AMF Gateway as it processes your RemoteObject requests.&lt;br /&gt;Flex Builder also includes a Network Debugger that allows you to monitor AMF traffic.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-8937408193381285800?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/8937408193381285800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-do-strongly-typed-objects-appear-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8937408193381285800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8937408193381285800'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-do-strongly-typed-objects-appear-as.html' title='Why do strongly typed objects appear as &quot;undefined&quot; in the NetConnection Debugger'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7456890822483698719</id><published>2009-03-27T05:35:00.047-07:00</published><updated>2009-03-29T23:46:37.861-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Why are my ValueObject member variables undefined in the results from my RemoteObject requests</title><content type='html'>&lt;strong&gt;Question :Why are my ValueObject member variables undefined in the results from my RemoteObject requests?&lt;/strong&gt;&lt;br /&gt;Answer :Flash Player deserializes objects in a special order that can confuse developers used to object&lt;br /&gt;serialization from other RPC systems. When a strongly typed object is returned to the player, it first&lt;br /&gt;creates an instance from the prototype of the registered class without calling the constructor. It then&lt;br /&gt;populates the object with the properties sent in the result. Finally, it calls the constructor without&lt;br /&gt;arguments.&lt;br /&gt;If your ValueObject constructor expects arguments to initialize an instance, be sure to check whether&lt;br /&gt;arguments were actually sent to the constructor before overriding member variable values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7456890822483698719?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7456890822483698719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-are-my-valueobject-member-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7456890822483698719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7456890822483698719'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-are-my-valueobject-member-variables.html' title='Why are my ValueObject member variables undefined in the results from my RemoteObject requests'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6211364496151292981</id><published>2009-03-27T05:35:00.046-07:00</published><updated>2009-03-29T23:44:20.886-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>: When I set visible="false", the component still takes up space and appears in the tab order. Why is</title><content type='html'>Question :: When I set visible="false", the component still takes up space and appears in the tab order. Why is&lt;br /&gt;that?&lt;br /&gt;&lt;br /&gt;Answer :You can often achieve the "display=none" effect by setting the height/width to zero when you set it&lt;br /&gt;invisible, and then set it back to a fixed value or to undefined when you make it visible again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6211364496151292981?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6211364496151292981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/when-i-set-visiblefalse-component-still.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6211364496151292981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6211364496151292981'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/when-i-set-visiblefalse-component-still.html' title=': When I set visible=&quot;false&quot;, the component still takes up space and appears in the tab order. Why is'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7103305268355951106</id><published>2009-03-27T05:35:00.045-07:00</published><updated>2009-03-29T23:41:07.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Can I load CSS style sheets dynamically at runtime</title><content type='html'>&lt;strong&gt;Question :Can I load CSS style sheets dynamically at runtime?&lt;/strong&gt;&lt;br /&gt;Answer :Dynamic loading of CSS files is not supported in Flex. CSS in Flex is processed on the server side&lt;br /&gt;during MXML compilation rather than on the client side at runtime. There is a trick though: A CSS&lt;br /&gt;file can be compiled into a separate SWF file and loaded dynamically into the application using the&lt;br /&gt;Loader component.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7103305268355951106?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7103305268355951106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-i-load-css-style-sheets-dynamically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7103305268355951106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7103305268355951106'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-i-load-css-style-sheets-dynamically.html' title='Can I load CSS style sheets dynamically at runtime'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6772876571243413542</id><published>2009-03-27T05:35:00.044-07:00</published><updated>2009-03-29T23:40:08.308-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Can I dynamically instantiate a WebService or HTTPService in ActionScript</title><content type='html'>&lt;strong&gt;Question :Can I dynamically instantiate a WebService or HTTPService in ActionScript?&lt;/strong&gt;&lt;br /&gt;Answer :Flex 1.5 does not support this. First declare the tags in MXML and then manipulate the URLs,&lt;br /&gt;request objects, and so forth using ActionScript.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6772876571243413542?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6772876571243413542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-i-dynamically-instantiate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6772876571243413542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6772876571243413542'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-i-dynamically-instantiate.html' title='Can I dynamically instantiate a WebService or HTTPService in ActionScript'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3740404704680789974</id><published>2009-03-27T05:35:00.043-07:00</published><updated>2009-03-29T23:39:04.053-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is state  what is the difference between states and ViewStack</title><content type='html'>&lt;strong&gt;Question :What is state? what is the difference between states and ViewStack?&lt;/strong&gt;&lt;br /&gt;Answer :View Stack is to handle different MXML file eg TAB control. And states is the transition within&lt;br /&gt;single MXML file&lt;br /&gt;ViewStack should be used were there is complete change in the controls used and States should be&lt;br /&gt;used when you just want to add or remove a few components based on certain conditions.&lt;br /&gt;Login/Registration/Forgot password is the best example for using States as each page will either add&lt;br /&gt;or remove to the already existing one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3740404704680789974?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3740404704680789974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-state-what-is-difference_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3740404704680789974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3740404704680789974'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-state-what-is-difference_27.html' title='What is state  what is the difference between states and ViewStack'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4599187680518792819</id><published>2009-03-27T05:35:00.042-07:00</published><updated>2009-03-29T23:37:59.627-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you use a repeater</title><content type='html'>&lt;strong&gt;Question :How do you use a repeater?&lt;/strong&gt;&lt;br /&gt;Answer :: The Repeater class is the runtime object that corresponds to the &lt;mx:Repeater&gt; tag. It creates&lt;br /&gt;multiple instances of its subcomponents based on its dataProvider. The repeated components can be&lt;br /&gt;any standard or custom controls or containers.&lt;br /&gt;You can use the &lt;mx:Repeater&gt; tag anywhere a control or container tag is allowed, with the&lt;br /&gt;exception of the &lt;mx:Application&gt; container tag. To repeat a user interface component, you place&lt;br /&gt;its tag in the &lt;mx:Repeater&gt; tag. You can use more than one &lt;mx:Repeater&gt; tag in an MXML&lt;br /&gt;document. You can also nest &lt;mx:Repeater&gt; tags.&lt;br /&gt;You cannot use the &lt;mx:Repeater&gt; tag for objects that do not extend the UIComponent class.&lt;br /&gt;MXML Syntax Hide MXML Syntax&lt;br /&gt;The &lt;Repeater&gt; class has the following properties:&lt;br /&gt;&lt;mx:Repeater Properties id="No default" childDescriptors="No&lt;br /&gt;default" count="No default" dataProvider="No default"&lt;br /&gt;recycleChildren="false|true" startingIndex="0"&lt;br /&gt;Events&lt;br /&gt;repeat="No default" repeatEnd="No default" repeatStart="No default" &gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4599187680518792819?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4599187680518792819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-use-repeater_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4599187680518792819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4599187680518792819'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-use-repeater_27.html' title='How do you use a repeater'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-5151796841572550760</id><published>2009-03-27T05:35:00.041-07:00</published><updated>2009-03-29T23:36:48.337-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you call javascript from Flex</title><content type='html'>&lt;strong&gt;Question :How do you call javascript from Flex?&lt;/strong&gt;&lt;br /&gt;Answer :The ExternalInterface class is the External API, an application programming interface that enables&lt;br /&gt;straightforward communication between ActionScript and the Flash Player container– for example,&lt;br /&gt;an HTML page with JavaScript. Adobe recommends using ExternalInterface for all JavaScript-&lt;br /&gt;ActionScript communication.&lt;br /&gt;You can call an ActionScript function in Flash Player, using JavaScript in the HTML page. The&lt;br /&gt;ActionScript function can return a value, and JavaScript receives it immediately as the return value&lt;br /&gt;of the call.&lt;br /&gt;This functionality replaces the fscommand() method.&lt;br /&gt;The ExternalInterface class requires the user's web browser to support either ActiveX® or the&lt;br /&gt;NPRuntime API that is exposed by some browsers for plug-in scripting. Even if a browser and&lt;br /&gt;operating system combination are not listed above, they should support the ExternalInterface class if&lt;br /&gt;they support the NPRuntime API. See http://www.mozilla.org/projects/plugins/npruntime.html.&lt;br /&gt;Note: When embedding SWF files within an HTML page, make sure that the id and name attributes&lt;br /&gt;of the object and embed tags do not include the following characters: . - + * / \&lt;br /&gt;From ActionScript, you can do the following on the HTML page:&lt;br /&gt;•Call any JavaScript function.&lt;br /&gt;•Pass any number of arguments, with any names.&lt;br /&gt;•Pass various data types (Boolean, Number, String, and so on).&lt;br /&gt;•Receive a return value from the JavaScript function.&lt;br /&gt;From JavaScript on the HTML page, you can:&lt;br /&gt;•Call an ActionScript function.&lt;br /&gt;•Pass arguments using standard function call notation.&lt;br /&gt;•Return a value to the JavaScript function.&lt;br /&gt;Flash Player does not currently support SWF files embedded within HTML forms.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-5151796841572550760?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/5151796841572550760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-call-javascript-from-flex_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/5151796841572550760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/5151796841572550760'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-call-javascript-from-flex_27.html' title='How do you call javascript from Flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-134344643706207153</id><published>2009-03-27T05:35:00.040-07:00</published><updated>2009-03-29T23:33:29.633-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is a drag manager</title><content type='html'>&lt;strong&gt;Question :What is a drag manager?&lt;/strong&gt;&lt;br /&gt;Answer :The DragManager class manages drag and drop operations, which let you move data from one place&lt;br /&gt;to another in a Flex application. For example, you can select an object, such as an item in a List&lt;br /&gt;control or a Flex control, such as an Image control, and then drag it over another component to add it&lt;br /&gt;to that component.&lt;br /&gt;All methods and properties of the DragManager are static, so you do not need to create an instance of&lt;br /&gt;it.&lt;br /&gt;All Flex components support drag and drop operations. Flex provides additional support for drag and&lt;br /&gt;drop to the List, Tree, and DataGrid controls.&lt;br /&gt;When the user selects an item with the mouse, the selected component is called the drag initiator. The&lt;br /&gt;image displayed during the drag operation is called the drag proxy.&lt;br /&gt;When the user moves the drag proxy over another component, the dragEnter event is sent to that&lt;br /&gt;component. If the component accepts the drag, it becomes the drop target and receives dragOver,&lt;br /&gt;dragExit, and dragDrop events.&lt;br /&gt;When the drag is complete, a dragComplete event is sent to the drag initiator.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-134344643706207153?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/134344643706207153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-drag-manager_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/134344643706207153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/134344643706207153'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-drag-manager_27.html' title='What is a drag manager'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-284241895887515082</id><published>2009-03-27T05:35:00.039-07:00</published><updated>2009-03-29T23:32:42.476-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What are the methods called when a UI component is intialized</title><content type='html'>Question :What are the methods called when a UI component is intialized?&lt;br /&gt;Answer :createChildren()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-284241895887515082?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/284241895887515082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-methods-called-when-ui_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/284241895887515082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/284241895887515082'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-methods-called-when-ui_27.html' title='What are the methods called when a UI component is intialized'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3619314945942542219</id><published>2009-03-27T05:35:00.038-07:00</published><updated>2009-03-29T23:32:00.031-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>: How do you generate random numbers within a given limit with actionscript</title><content type='html'>&lt;strong&gt;Question :: How do you generate random numbers within a given limit with actionscript?&lt;/strong&gt;&lt;br /&gt;Answer :public function randRange(min:Number, max:Number):Number {&lt;br /&gt;var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;&lt;br /&gt;return randomNum;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3619314945942542219?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3619314945942542219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-generate-random-numbers_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3619314945942542219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3619314945942542219'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-generate-random-numbers_27.html' title=': How do you generate random numbers within a given limit with actionscript'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3722015398903223297</id><published>2009-03-27T05:35:00.037-07:00</published><updated>2009-03-29T23:31:09.483-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is the difference between httpService and Data Service</title><content type='html'>&lt;strong&gt;Question :What is the difference between httpService and Data Service?&lt;/strong&gt;&lt;br /&gt;Answer :The Flex presentation layer communicates with the business layer by using Flex&lt;br /&gt;data services, which are objects you insert in a Flex file. Specifically, you can use Flex data services&lt;br /&gt;to interact with the following:&lt;br /&gt;* Web services&lt;br /&gt;* HTTP services&lt;br /&gt;* Remote objects&lt;br /&gt;A Flex data service is an object you insert in an MXML file to communicate with the business layer&lt;br /&gt;of a multi-tier application. You use data services to send and receive data from web services, HTTP&lt;br /&gt;URLs, and remote objects such as server-based Java objects.&lt;br /&gt;An HTTP service is nothing more than an HTTP request to a URL. The primary purpose of HTTP&lt;br /&gt;services is to retrieve XML data from an external source.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3722015398903223297?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3722015398903223297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-difference-between-httpservice_27.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3722015398903223297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3722015398903223297'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-difference-between-httpservice_27.html' title='What is the difference between httpService and Data Service'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2867133546202886147</id><published>2009-03-27T05:35:00.036-07:00</published><updated>2009-03-29T23:30:14.248-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Differences between defining bindings in MXML and ActionScript</title><content type='html'>&lt;strong&gt;Question :Differences between defining bindings in MXML and ActionScript?&lt;/strong&gt;&lt;br /&gt;Answer :: There are a few differences between defining data bindings in MXML at compile time and in&lt;br /&gt;defining them at runtime in ActionScript:&lt;br /&gt;* You cannot include ActionScript code in a data binding expression defined by the bindProperty()&lt;br /&gt;or bindSetter() method. Instead, use the bindSetter() method to specify a method to call when the&lt;br /&gt;binding occurs.&lt;br /&gt;* You cannot include an E4X expression in a data binding expression defined in ActionScript.&lt;br /&gt;* You cannot include functions or array elements in property chains in a data binding expression&lt;br /&gt;defined by the bindProperty() or bindSetter() method. For more information on property chains, see&lt;br /&gt;Working with bindable property chains.&lt;br /&gt;* The MXML compiler has better warning and error detection support than runtime data bindings&lt;br /&gt;defined by the bindProperty() or bindSetter() method.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2867133546202886147?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2867133546202886147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/differences-between-defining-bindings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2867133546202886147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2867133546202886147'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/differences-between-defining-bindings.html' title='Differences between defining bindings in MXML and ActionScript'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6165318558942238325</id><published>2009-03-27T05:35:00.035-07:00</published><updated>2009-03-29T23:28:46.246-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you identify a component created in a repeater</title><content type='html'>&lt;strong&gt;Question :How do you identify a component created in a repeater?&lt;/strong&gt;&lt;br /&gt;Answer ::  If currentIndex value is greater than startIndex value means a component is created in Repeater.&lt;br /&gt;We can use count property to find number of children.&lt;br /&gt;A Repeater component executes initially when it is instantiated. If the Repeater component's&lt;br /&gt;dataProvider property exists, it proceeds to instantiate its children, and they instantiate their&lt;br /&gt;children, recursively.&lt;br /&gt;The Repeater component re-executes whenever its dataProvider, startingIndex, or count&lt;br /&gt;properties are set or modified either explicitly in ActionScript, or implicitly by data binding.&lt;br /&gt;When a Repeater component re-executes, it destroys any children that it previously created&lt;br /&gt;(assuming the recycleChildren property is set to false), and then reinstantiates its children based&lt;br /&gt;on the current dataProvider property.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6165318558942238325?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6165318558942238325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-identify-component-created.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6165318558942238325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6165318558942238325'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-identify-component-created.html' title='How do you identify a component created in a repeater'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-112146781424332171</id><published>2009-03-27T05:35:00.034-07:00</published><updated>2009-03-29T23:27:50.469-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Explain the difference between creating an effect and setting the target as opposed to adding an</title><content type='html'>&lt;strong&gt;Question :Explain the difference between creating an effect and setting the target as opposed to adding an&lt;br /&gt;effectListener&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Answer :To create a behavior, you define a specific effect with a unique ID and bind it to the trigger.&lt;br /&gt;For example, the following code creates two zoom effects: one for shrinking the component slightly,&lt;br /&gt;and one for reverting it to its original size. These effects are assigned, by using their unique IDs, to&lt;br /&gt;the mouseDownEffect and mouseUpEffect triggers on the Button component.&lt;br /&gt;&lt;mx:Application ...&gt;&lt;br /&gt;&lt;mx:Zoom id="shrink" duration="100" zoomHeightTo=".9" zoomWidthTo=".9" /&gt;&lt;br /&gt;&lt;mx:Zoom id="revert" duration="50" zoomHeightTo="1" zoomWidthTo="1" /&gt;&lt;br /&gt;&lt;mx:Panel title="Bouncy Button" paddingTop="10" paddingBottom="10"&lt;br /&gt;paddingLeft="10" paddingRight="10" autoLayout="false" left="41" top="24" right="42"&gt;&lt;br /&gt;&lt;mx:Button id="bouncyButton" label="Click me!"&lt;br /&gt;mouseDownEffect="{shrink}" mouseUpEffect="{revert}"/&gt;&lt;br /&gt;&lt;/mx:Panel&gt;&lt;br /&gt;&lt;/mx:Application&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-112146781424332171?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/112146781424332171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/explain-difference-between-creating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/112146781424332171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/112146781424332171'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/explain-difference-between-creating.html' title='Explain the difference between creating an effect and setting the target as opposed to adding an'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6881254221327473910</id><published>2009-03-27T05:35:00.033-07:00</published><updated>2009-03-29T23:27:06.274-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is the problem with calling setStyle()</title><content type='html'>&lt;strong&gt;Question :What is the problem with calling setStyle()?&lt;/strong&gt;&lt;br /&gt;Answer :Calling the setStyle() method can result in decreased performance. Use it only when necessary.&lt;br /&gt;You should try to apply style sheets rather than use the setStyle() method because it is&lt;br /&gt;computationally expensive. This method should only be used when you are changing an object's&lt;br /&gt;styles during run time.&lt;br /&gt;You cannot get or set style properties directly on a component as you can with other properties.&lt;br /&gt;Instead, you set style properties at run time by using the getStyle() and setStyle() ActionScript&lt;br /&gt;methods.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6881254221327473910?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6881254221327473910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-problem-with-calling-setstyle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6881254221327473910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6881254221327473910'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-problem-with-calling-setstyle.html' title='What is the problem with calling setStyle()'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2854374358545318949</id><published>2009-03-27T05:35:00.032-07:00</published><updated>2009-03-29T23:26:14.643-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What does calling preventDefault() on an event do  How is this enforced</title><content type='html'>&lt;strong&gt;Question :What does calling preventDefault() on an event do? How is this enforced?&lt;/strong&gt;&lt;br /&gt;Answer :Cancels an event's default behavior if that behavior can be canceled.. For example, the&lt;br /&gt;doubleClick event has an associated default behavior that highlights the word under the mouse&lt;br /&gt;pointer at the time of the event. Your event listener can cancel this behavior by calling the&lt;br /&gt;preventDefault() method.&lt;br /&gt;You can use the Event.cancelable property to check whether you can prevent the default behavior&lt;br /&gt;associated with a particular event. If the value of Event.cancelable is true, then preventDefault() can&lt;br /&gt;be used to cancel the event; otherwise, preventDefault() has no effect.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2854374358545318949?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2854374358545318949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-does-calling-preventdefault-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2854374358545318949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2854374358545318949'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-does-calling-preventdefault-on.html' title='What does calling preventDefault() on an event do  How is this enforced'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4601753756511940900</id><published>2009-03-27T05:35:00.031-07:00</published><updated>2009-03-29T23:25:11.409-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you add event listeners in mxml components. Now AS3 components</title><content type='html'>&lt;strong&gt;Question :How do you add event listeners in mxml components. Now AS3 components?&lt;/strong&gt;&lt;br /&gt;Answer :1) addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0,&lt;br /&gt; useWeakReference:Boolean = false):void&lt;br /&gt;2) removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void&lt;br /&gt;3) dispatchEvent(event:Event):Boolean&lt;br /&gt;4) hasEventListener(type:String):Boolean&lt;br /&gt;5) willTrigger(type:String):Boolean&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4601753756511940900?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4601753756511940900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-add-event-listeners-in-mxml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4601753756511940900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4601753756511940900'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-add-event-listeners-in-mxml.html' title='How do you add event listeners in mxml components. Now AS3 components'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2177793982431706281</id><published>2009-03-27T05:35:00.030-07:00</published><updated>2009-03-29T23:24:20.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Why would you want to keep a reference to a ChangeWatcher and call unwatch()</title><content type='html'>&lt;strong&gt;Question :Why would you want to keep a reference to a ChangeWatcher and call unwatch()?&lt;/strong&gt;&lt;br /&gt;Answer :So we can reattach the watcher again &amp; We can change the source object (of changewatcher) by&lt;br /&gt;reset method.&lt;br /&gt;The ChangeWatcher class defines utility methods that you can use with bindable Flex properties.&lt;br /&gt;These methods let you define an event handler that is executed whenever a bindable property is&lt;br /&gt;updated.&lt;br /&gt;unwatch () method:&lt;br /&gt;Detaches this ChangeWatcher instance, and its handler function, from the current host. You can use&lt;br /&gt;the reset() method to reattach the ChangeWatcher instance, or watch the same property or chain on a&lt;br /&gt;different host object.&lt;br /&gt;public function unwatch():void&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2177793982431706281?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2177793982431706281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-would-you-want-to-keep-reference-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2177793982431706281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2177793982431706281'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/why-would-you-want-to-keep-reference-to.html' title='Why would you want to keep a reference to a ChangeWatcher and call unwatch()'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3940482055713047743</id><published>2009-03-27T05:35:00.029-07:00</published><updated>2009-03-29T23:23:38.994-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What’s the difference between ChangeWatcher.watch, and BindingUtils.bindProperty</title><content type='html'>&lt;strong&gt;Question :What’s the difference between ChangeWatcher.watch, and BindingUtils.bindProperty?&lt;/strong&gt;&lt;br /&gt;Answer :ChangeWatcher:&lt;br /&gt;Acts like the watch on AS2. It watches a variable for changes and when something happens fires an&lt;br /&gt;event. Make sure you call the canWatch to ensure that you can watch it!&lt;br /&gt;There are 3 ways to specify the second parameter, the chain.&lt;br /&gt;1. A String containing the name of a public bindable property of the host object.&lt;br /&gt;ChangeWatcher.watch(this, "myvar", handler)&lt;br /&gt;2. An Object in the form: { name: property name, access: function(host) { return host[name] } }.&lt;br /&gt;The Object contains the name of a public bindable property, and a function which serves as a getter&lt;br /&gt;for that property.&lt;br /&gt;ChangeWatcher.watch(this, { name:"myvar", getter: function():String { return "something" }},&lt;br /&gt;handler);&lt;br /&gt;3. A non-empty Array containing any combination of the first two options. This represents a chain&lt;br /&gt;of bindable properties accessible from the host. For example, to watch the property host.a.b.c, call&lt;br /&gt;the method as: watch(host, ["a","b","c"]&lt;br /&gt;BindingUtils.bindProperty&lt;br /&gt;Works pretty much the same way as the watch, but instead of having to handle and event it allows&lt;br /&gt;you to immediately bind two properties one-way.&lt;br /&gt;The first two parameters are for the the target, the second parameters are the triggers.&lt;br /&gt;BindingUtils.bindProperty( this, "va1", this, "var2");&lt;br /&gt;Note : Make sure you add the flex framework.swc to your project Library Path to have access to the&lt;br /&gt;mx.binding.util class.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3940482055713047743?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3940482055713047743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/whats-difference-between.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3940482055713047743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3940482055713047743'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/whats-difference-between.html' title='What’s the difference between ChangeWatcher.watch, and BindingUtils.bindProperty'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-695625700900485022</id><published>2009-03-27T05:35:00.028-07:00</published><updated>2009-03-29T23:22:47.482-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Explain how binding works in mxml components.</title><content type='html'>&lt;strong&gt;Question :Explain how binding works in mxml components.&lt;/strong&gt;&lt;br /&gt;Answer :Binding in MXML&lt;br /&gt;Lets look at the following code…&lt;br /&gt;&lt;mx:TextInput id=”ti1?/&gt;&lt;br /&gt;&lt;mx:Label id=”label1? text=”{ti1.text}”/&gt;&lt;br /&gt;Here you are binding the text property of the TextInput to the label. So whatever you type in the&lt;br /&gt;textInput automatically reflects in the label. That’s the power of Binding…&lt;br /&gt;The best practice for defining components that return information back to the main application is to&lt;br /&gt;design the component to dispatch an event that contains the return data. In that way, the main&lt;br /&gt;application can define an event listener to handle the event and take the appropriate action. You also&lt;br /&gt;use events in data binding. The following example uses the Bindable metadata tag to make&lt;br /&gt;useShortNames a bindable property. The implicit setter for the useShortNames property dispatches&lt;br /&gt;the change event that is used internally by the Flex framework to make data binding work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-695625700900485022?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/695625700900485022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/explain-how-binding-works-in-mxml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/695625700900485022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/695625700900485022'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/explain-how-binding-works-in-mxml.html' title='Explain how binding works in mxml components.'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-1980250576418207760</id><published>2009-03-27T05:35:00.027-07:00</published><updated>2009-03-29T23:20:51.565-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What design patterns have you used  in Actionscript and java</title><content type='html'>&lt;strong&gt;Question :What design patterns have you used? in Actionscript and java?&lt;/strong&gt;&lt;br /&gt;Answer :1. Creational Pattern&lt;br /&gt;* Factory Method Pattern&lt;br /&gt;* Singleton Pattern&lt;br /&gt;2. Structural Patterns&lt;br /&gt;* Decorator Pattern&lt;br /&gt;* Adapter Pattern&lt;br /&gt;* Coposite Pattern&lt;br /&gt;3. Behavioral Patterns&lt;br /&gt;* Command Pattern&lt;br /&gt;* Observer Pattern&lt;br /&gt;* Template Metod Pattern&lt;br /&gt;* State Pattern&lt;br /&gt;* Strategy Pattern&lt;br /&gt;4. Multiple Patterns&lt;br /&gt;* MVC Pattern&lt;br /&gt;* Symetric Proxy Pattern&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-1980250576418207760?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/1980250576418207760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-design-patterns-have-you-used-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/1980250576418207760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/1980250576418207760'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-design-patterns-have-you-used-in.html' title='What design patterns have you used  in Actionscript and java'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2018876467967766823</id><published>2009-03-27T05:35:00.026-07:00</published><updated>2009-03-29T23:17:29.450-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What keyword allows you to implement abstraction better</title><content type='html'>&lt;strong&gt;Question :What keyword allows you to implement abstraction better?&lt;/strong&gt;&lt;br /&gt;Answer :Flex does not support abstart class directly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2018876467967766823?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2018876467967766823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-keyword-allows-you-to-implement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2018876467967766823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2018876467967766823'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-keyword-allows-you-to-implement.html' title='What keyword allows you to implement abstraction better'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4811277813345744505</id><published>2009-03-27T05:35:00.025-07:00</published><updated>2009-03-29T23:16:18.987-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is cairnghorm ? how do you use it Have you worked with Cairnghorn</title><content type='html'>&lt;strong&gt;Question :What is cairnghorm ? how do you use it?Have you worked with Cairnghorn?&lt;/strong&gt;&lt;br /&gt;Answer :Cairngorm is the lightweight micro-architecture for Rich Internet Applications built in Flex or&lt;br /&gt;AIR. A collaboration of recognized design patterns, Cairngorm exemplifies and encourages bestpractices&lt;br /&gt;for RIA development advocated by Adobe Consulting, encourages best-practice leverage of&lt;br /&gt;the underlying Flex framework, while making it easier for medium to large teams of software&lt;br /&gt;engineers deliver medium to large scale, mission-critical Rich Internet Applications.&lt;br /&gt;The benefits of the Cairngorm architecture are realized when developing complex RIA applications&lt;br /&gt;with multiple use-cases and views, with a team of developers, and with a multi-disciplinary&lt;br /&gt;development team that includes designers as well as creative and technical developers.&lt;br /&gt;How is the MVC pattern carried out in a Flex + Cairngorm application?&lt;br /&gt;- Model:???? Role of the ModelLocator &amp; Model Objects&lt;br /&gt;- View:???? Role of View Components &amp; Event Objects&lt;br /&gt;- Controller: Role of the FrontController &amp; Command Objects&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4811277813345744505?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4811277813345744505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-cairnghorm-how-do-you-use-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4811277813345744505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4811277813345744505'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-cairnghorm-how-do-you-use-it.html' title='What is cairnghorm ? how do you use it Have you worked with Cairnghorn'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3824246627254376158</id><published>2009-03-27T05:35:00.024-07:00</published><updated>2009-03-29T23:15:27.930-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What are runtime shared libraries</title><content type='html'>&lt;strong&gt;Question :What are runtime shared libraries?&lt;/strong&gt;&lt;br /&gt;Answer :Macromedia Flex 1.5 you can build runtime shared libraries (RSLs) that can be individually loaded,&lt;br /&gt;cached, and used by multiple applications.&lt;br /&gt;Use Flex 3 runtime-shared-libraries (RSLs) to reduce the size of your applications and thereby&lt;br /&gt;reduce the time required to download the application. RSLs are just SWF files whose code is used as&lt;br /&gt;a shared library between different application SWF files. There are two kinds of RSLs, signed and&lt;br /&gt;unsigned. Signed RSLs are libraries that are signed by Adobe and may be stored in the Flash Player&lt;br /&gt;Cache, which can be accessed by applications from any domain. This means if your application is&lt;br /&gt;using a signed RSL, the RSL may not even need to be downloaded if the RSL is already in the Flash&lt;br /&gt;Player Cache. The signed RSL may have been put into the Flash Player Cache by visiting another&lt;br /&gt;web site that was using the same signed RSL. Signed RSLs have a "swz" extension.&lt;br /&gt;Unsigned RSLs are normal SWF files and are not loaded into the Flash Player Cache. Instead, these&lt;br /&gt;RSLs rely on the browser's cache to keep them from being downloaded.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3824246627254376158?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3824246627254376158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-runtime-shared-libraries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3824246627254376158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3824246627254376158'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-runtime-shared-libraries.html' title='What are runtime shared libraries'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3651597223652430701</id><published>2009-03-27T05:35:00.023-07:00</published><updated>2009-03-29T23:14:35.649-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What are sealed classes</title><content type='html'>&lt;strong&gt;Question :What are sealed classes ?&lt;/strong&gt;&lt;br /&gt;Answer :A sealed class possesses only the fixed set of properties and methods that were defined at&lt;br /&gt;compile-time; additional properties and methods cannot be added. This makes stricter compile-time&lt;br /&gt;checking possible, resulting in more robust programs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3651597223652430701?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3651597223652430701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-sealed-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3651597223652430701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3651597223652430701'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-sealed-classes.html' title='What are sealed classes'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-9012911877968973252</id><published>2009-03-27T05:35:00.022-07:00</published><updated>2009-03-29T23:13:38.779-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is dynamic keyword used for</title><content type='html'>&lt;strong&gt;Question :What is dynamic keyword used for?&lt;/strong&gt;&lt;br /&gt;Answer :Dynamic classes, which allow you to programmatically add new properties and behavior to&lt;br /&gt;classes during the run-time. Just add the magic keyword dynamic to the class definition:&lt;br /&gt;dynamic class Person {&lt;br /&gt;var name:String;&lt;br /&gt;}&lt;br /&gt;Now let’s add dynamically two variables name and age and the function printme() to the object of&lt;br /&gt;type Person:&lt;br /&gt;Person p= new Person();&lt;br /&gt;p.name=”Joe”;&lt;br /&gt;p.age=25;&lt;br /&gt;p.printMe = function () {&lt;br /&gt;trace (p.name, p.age);&lt;br /&gt;}&lt;br /&gt;p.printMe(); // Joe 25&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-9012911877968973252?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/9012911877968973252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-dynamic-keyword-used-for_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9012911877968973252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/9012911877968973252'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-dynamic-keyword-used-for_27.html' title='What is dynamic keyword used for'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7001391221906481929</id><published>2009-03-27T05:35:00.021-07:00</published><updated>2009-03-29T23:12:45.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you overload functions in actionscript</title><content type='html'>&lt;strong&gt;Question :How do you overload functions in actionscript?&lt;/strong&gt;&lt;br /&gt;Answer :Method overloading using namespaces.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7001391221906481929?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7001391221906481929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-overload-functions-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7001391221906481929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7001391221906481929'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-overload-functions-in.html' title='How do you overload functions in actionscript'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-8213384689647322309</id><published>2009-03-27T05:35:00.020-07:00</published><updated>2009-03-29T23:12:01.200-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How polymorphism works on actionscript</title><content type='html'>Question :How polymorphism works on actionscript?&lt;br /&gt;Answer :class UnpaidIntern extends Employee {&lt;br /&gt;override public function receivePayment():Number {&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;class Manager extends Employee {&lt;br /&gt;override public function receivePayment():Number {&lt;br /&gt;return baseSalary*3;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;class Engineer extends Employee {&lt;br /&gt;override public function receivePayment():Number {&lt;br /&gt;return this.baseSalary*2;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;class Employee {&lt;br /&gt;internal var baseSalary:Number = 1000;&lt;br /&gt;public function receivePayment():Number {&lt;br /&gt;return this.baseSalary;&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-8213384689647322309?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/8213384689647322309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-polymorphism-works-on-actionscript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8213384689647322309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8213384689647322309'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-polymorphism-works-on-actionscript.html' title='How polymorphism works on actionscript'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3798039118778570592</id><published>2009-03-27T05:35:00.019-07:00</published><updated>2009-03-29T23:11:00.864-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What keyword allows you to refer to private variables of a class</title><content type='html'>&lt;strong&gt;Question :What keyword allows you to refer to private variables of a class?&lt;/strong&gt;&lt;br /&gt;Answer :private keyword , this keyworld&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3798039118778570592?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3798039118778570592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-keyword-allows-you-to-refer-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3798039118778570592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3798039118778570592'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-keyword-allows-you-to-refer-to.html' title='What keyword allows you to refer to private variables of a class'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4411354315872425376</id><published>2009-03-27T05:35:00.018-07:00</published><updated>2009-03-29T23:09:11.037-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How does item renderer work  How do I add item renderer at runtime</title><content type='html'>&lt;strong&gt;Question : How does item renderer work? How do I add item renderer at runtime?&lt;/strong&gt;&lt;br /&gt;Answer ::  Each list control has a default mechanism for controlling the display of data, or view, and lets&lt;br /&gt;you override that default. To override the default view, you create a custom item renderer.&lt;br /&gt;Note: With reusable inline item renderers you use data binding to bind to the item renderer. When&lt;br /&gt;you use a component as an item renderer, you do not use data binding but specify the name of the&lt;br /&gt;custom component to use as an item renderer.&lt;br /&gt;Add itemrendrer at run time: Create the basic item renderer. One of the things I needed to accomplish&lt;br /&gt;with my item renderer was the ability to add it to different columns (ie the dataField was not always&lt;br /&gt;the same). This meant I needed a way from within the renderer to determine what column it was&lt;br /&gt;bound to so I could get and display the correct data. To do this the renderer needs to implement the&lt;br /&gt;IDropInListItemRenderer. This interface allows the renderer to have access to information about the&lt;br /&gt;list and column it is in via the BaseListData and DataGridListData classes. The DataGridListData&lt;br /&gt;gives you everything you need to get the data required to make a flexible, reusable renderer.&lt;br /&gt;To Modify itemrenderer at runtime we Need to use mx.core.ClassFactory. Basically, in order to&lt;br /&gt;change a Flex itemRenderer at runtime, you need to cast it to a type ClassFactory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4411354315872425376?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4411354315872425376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-does-item-renderer-work-how-do-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4411354315872425376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4411354315872425376'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-does-item-renderer-work-how-do-i.html' title='How does item renderer work  How do I add item renderer at runtime'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-1020443896412637374</id><published>2009-03-27T05:35:00.017-07:00</published><updated>2009-03-29T23:08:28.211-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is state  what is the difference between states and ViewStack</title><content type='html'>Question :What is state? what is the difference between states and ViewStack?&lt;br /&gt;Answer :The State class defines a view state, a particular view of a component. For example, a product&lt;br /&gt;thumbnail could have two view states; a base view state with minimal information, and a rich view&lt;br /&gt;state with additional information. The overrides property specifies a set of child classes to add or&lt;br /&gt;remove from the base view state, and properties, styles, and event handlers to set when the view state&lt;br /&gt;is in effect. You use the State class in the states property of Flex components. You can only specify a states&lt;br /&gt;property at the root of an application or a custom control, not on child controls.&lt;br /&gt;Diff :&lt;br /&gt;1) View Stack is to handle different MXML file eg TAB control and states is the transition within&lt;br /&gt;single MXML file.&lt;br /&gt;2) ViewStack should be used were there is complete change in the controls used and States should be&lt;br /&gt;used when you just want to add or remove a few components based on certain conditions.&lt;br /&gt;3) ViewStates are virtual state of an existing page apearing at an instance i.e. only one state can be&lt;br /&gt;shown at a time while viewStack are collection of different view containers which can be shown at a time&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-1020443896412637374?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/1020443896412637374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-state-what-is-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/1020443896412637374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/1020443896412637374'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-state-what-is-difference.html' title='What is state  what is the difference between states and ViewStack'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4935999635930169140</id><published>2009-03-27T05:35:00.016-07:00</published><updated>2009-03-29T23:06:50.420-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is MVC and how do you relate it to flex apps</title><content type='html'>&lt;strong&gt;Question :What is MVC and how do you relate it to flex apps?&lt;/strong&gt;&lt;br /&gt;Answer ::  (Separation of concerns) The goal of the Model-View-Controller (MVC) architecture is that by&lt;br /&gt;creating components with a well-defined and limited scope in your application, you increase the&lt;br /&gt;reusability of the components and improve the maintainability of the overall system. Using the MVC&lt;br /&gt;architecture, you can partition your system into three categories of components:&lt;br /&gt;* Model components Encapsulates data and behaviors related to the data.&lt;br /&gt;* View components Defines your application's user interface.&lt;br /&gt;* Controller components Handles the data interconnectivity in your application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4935999635930169140?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4935999635930169140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-mvc-and-how-do-you-relate-it-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4935999635930169140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4935999635930169140'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-mvc-and-how-do-you-relate-it-to.html' title='What is MVC and how do you relate it to flex apps'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-4613882231722367993</id><published>2009-03-27T05:35:00.015-07:00</published><updated>2009-03-29T23:05:31.846-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is the difference between sealed class and dynamic classes</title><content type='html'>&lt;strong&gt;Question :What is the difference between sealed class and dynamic classes?&lt;/strong&gt;&lt;br /&gt;Answer :Classes are sealed by default, i.e. properties cannot be added dynamically at runtime.&lt;br /&gt;1) Dynamic classes can add additional dynamic properties at runtime; sealed classes cannot.&lt;br /&gt;2) Sealed classes conserve memory because no internal hash table is needed to store dynamic&lt;br /&gt;properties, and the compiler can provide better error feedback.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-4613882231722367993?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/4613882231722367993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-difference-between-sealed-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4613882231722367993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/4613882231722367993'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-difference-between-sealed-class.html' title='What is the difference between sealed class and dynamic classes'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-8377752270722826860</id><published>2009-03-27T05:35:00.014-07:00</published><updated>2009-03-29T23:04:04.548-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you use css styles in flex</title><content type='html'>&lt;strong&gt;Question :How do you use css styles in flex?&lt;/strong&gt;&lt;br /&gt;Answer :External styles are defined in a separate file and can be used in any MXML file that references the&lt;br /&gt;CSS file. You reference a CSS file into an MXML file with the source property of the &lt;mx:Style&gt;&lt;br /&gt;tag, as follows:&lt;br /&gt;&lt;mx:Style source="../siteStyles.css"/&gt;&lt;br /&gt;Embedded styles are defined in an MXML file and can only be used in that file. Embedded styles&lt;br /&gt;are defined with the &lt;mx:Style&gt; tag, as follows:&lt;br /&gt;&lt;mx:Style&gt;&lt;br /&gt;.myclass { background-color: xFF0000 }&lt;br /&gt;TextInput { font-family: Helvetica; font-size: 12pt }&lt;br /&gt;&lt;/mx:Style&gt;&lt;br /&gt;&lt;mx:Canvas&gt;&lt;br /&gt;&lt;mx:Button styleName="myclass"&gt;&lt;br /&gt;&lt;/mx:Canvas&gt;&lt;br /&gt;Inline styles are defined in an MXML tag and can only be used in that tag. Inline styles are defined&lt;br /&gt;as follows:&lt;br /&gt;&lt;mx:Button color="red"...&gt;&lt;br /&gt;&lt;mx:TextInput fontFamily="Helvetica" fontSize="12"...&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-8377752270722826860?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/8377752270722826860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-use-css-styles-in-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8377752270722826860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8377752270722826860'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-use-css-styles-in-flex.html' title='How do you use css styles in flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6247097092678035996</id><published>2009-03-27T05:35:00.013-07:00</published><updated>2009-03-29T23:02:44.665-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What are three ways to skin a component in flex</title><content type='html'>&lt;strong&gt;Question :What are three ways to skin a component in flex?&lt;/strong&gt;&lt;br /&gt;Answer ::  Skinning is the process of changing the appearance of a component by modifying or replacing its&lt;br /&gt;visual elements. These elements can be made up of images, SWF files, or class files that contain&lt;br /&gt;drawing API methods.&lt;br /&gt;There are several ways that you can define skins: inline, by using the setStyle() method, and by using&lt;br /&gt;Cascading Style Sheets (CSS).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6247097092678035996?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6247097092678035996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-three-ways-to-skin-component.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6247097092678035996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6247097092678035996'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-three-ways-to-skin-component.html' title='What are three ways to skin a component in flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2769403290818421630</id><published>2009-03-27T05:35:00.012-07:00</published><updated>2009-03-29T22:55:17.998-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you use a repeater</title><content type='html'>&lt;strong&gt;Question :How do you use a repeater?&lt;/strong&gt;&lt;br /&gt;Answer :&lt;mx:Application&gt;&lt;br /&gt;&lt;mx:Script&gt;&lt;br /&gt;&lt;![CDATA[&lt;br /&gt;[Bindable]&lt;br /&gt;public var myArray:Array=[1,2,3,4];&lt;br /&gt;]]&gt;&lt;br /&gt;&lt;/mx:Script&gt;&lt;br /&gt;&lt;mx:Panel title="Repeater: emulating a for loop" paddingBottom="10" paddingLeft="10"&lt;br /&gt;paddingRight="10" paddingTop="10"&gt;&lt;br /&gt;&lt;mx:Repeater id="myRep" dataProvider="{myArray}"&gt;&lt;br /&gt;&lt;mx:Label id="myLabel" text="This is loop #{myRep.currentIndex}"/&gt;&lt;br /&gt;&lt;/mx:Repeater&gt;&lt;br /&gt;&lt;/mx:Panel&gt;&lt;br /&gt;&lt;/mx:Application&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2769403290818421630?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2769403290818421630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-use-repeater.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2769403290818421630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2769403290818421630'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-use-repeater.html' title='How do you use a repeater'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-8766075868653049740</id><published>2009-03-27T05:35:00.011-07:00</published><updated>2009-03-29T22:52:51.778-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you call javascript from Flex</title><content type='html'>&lt;strong&gt;Question :How do you call javascript from Flex?&lt;/strong&gt;&lt;br /&gt;Answer ::  Using the ExternalInterface API to access JavaScript from Flex and Using the navigateToURL()&lt;br /&gt;method in Flex. The navigateToURL() method is in the flash.net package&lt;br /&gt;flash.external.ExternalInterface.call(function_name:String[, arg1, ...]):Object;&lt;br /&gt;navigateToURL(request:URLRequest, window:String):void&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-8766075868653049740?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/8766075868653049740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-call-javascript-from-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8766075868653049740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8766075868653049740'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-call-javascript-from-flex.html' title='How do you call javascript from Flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2578312768466056617</id><published>2009-03-27T05:35:00.010-07:00</published><updated>2009-03-29T22:52:01.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is a drag manager</title><content type='html'>&lt;strong&gt;Question :What is a drag manager?&lt;/strong&gt;&lt;br /&gt;Answer :The Flex Drag and Drop Manager lets you select an object, such as an item in a List control, or a&lt;br /&gt;Flex control, such as an Image control, and then drag it over another component to add it to that&lt;br /&gt;component.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2578312768466056617?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2578312768466056617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-drag-manager.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2578312768466056617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2578312768466056617'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-drag-manager.html' title='What is a drag manager'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7645676057337011039</id><published>2009-03-27T05:35:00.009-07:00</published><updated>2009-03-29T22:50:53.665-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Can you write to the file system from flex</title><content type='html'>&lt;strong&gt;Question :Can you write to the file system from flex?&lt;/strong&gt;&lt;br /&gt;Answer :Yes .&lt;br /&gt;import flash.filesystem.*;&lt;br /&gt;private var stream:FileStream;&lt;br /&gt;private function saveFile():void{&lt;br /&gt;var file:File = File.desktopDirectory.resolvePath("HelloWorld.txt");&lt;br /&gt;var stream:FileStream = new FileStream()&lt;br /&gt;stream.open(file, FileMode.WRITE);&lt;br /&gt;var str:String = "Congratulations on your 1st file, Rich Tretola - EverythingFlex.com";&lt;br /&gt;stream.writeUTFBytes(str);&lt;br /&gt;stream.close();&lt;br /&gt;mx.controls.Alert.show("File has been saved to \n" + file.nativePath, "Notice");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7645676057337011039?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7645676057337011039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-you-write-to-file-system-from-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7645676057337011039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7645676057337011039'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/can-you-write-to-file-system-from-flex.html' title='Can you write to the file system from flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2131620768616581571</id><published>2009-03-27T05:35:00.008-07:00</published><updated>2009-03-29T22:47:47.660-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What are the methods called when a UI component is intialized</title><content type='html'>&lt;strong&gt;Question :What are the methods called when a UI component is intialized?&lt;/strong&gt;&lt;br /&gt;Answer :all components dispatch the following events that let you specify ActionScript to initialize a&lt;br /&gt;component:&lt;br /&gt;preInitialize&lt;br /&gt;Dispatched when a component has been created in a rough state, and no children have been created.&lt;br /&gt;initialize&lt;br /&gt;Dispatched when a component and all its children have been created, but before the component size&lt;br /&gt;has been determined.&lt;br /&gt;creationComplete&lt;br /&gt;Dispatched when the component has been laid out and the component is visible (if appropriate).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2131620768616581571?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2131620768616581571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-methods-called-when-ui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2131620768616581571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2131620768616581571'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-methods-called-when-ui.html' title='What are the methods called when a UI component is intialized'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3307704347856155510</id><published>2009-03-27T05:35:00.007-07:00</published><updated>2009-03-29T22:46:58.906-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you implement push with flex data services</title><content type='html'>&lt;strong&gt;Question :How do you implement push with flex data services?&lt;/strong&gt;&lt;br /&gt;Answer :Using Blaze DS Server &amp; LCDS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3307704347856155510?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3307704347856155510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-implement-push-with-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3307704347856155510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3307704347856155510'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-implement-push-with-flex.html' title='How do you implement push with flex data services'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3810252775066839248</id><published>2009-03-27T05:35:00.006-07:00</published><updated>2009-03-29T22:45:50.216-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is the dynamic keyword used for</title><content type='html'>&lt;strong&gt;Question :What is the dynamic keyword used for?&lt;/strong&gt;&lt;br /&gt;Answer :Specifies that instances of a class may possess dynamic properties added at runtime. If you use&lt;br /&gt;the dynamic attribute on a class, you can add properties to instances of that class at runtime. Classes&lt;br /&gt;that are not marked as dynamic are considered sealed, which means that properties cannot be added&lt;br /&gt;to instances of the class.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3810252775066839248?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3810252775066839248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-dynamic-keyword-used-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3810252775066839248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3810252775066839248'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-dynamic-keyword-used-for.html' title='What is the dynamic keyword used for'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-983188452993448643</id><published>2009-03-27T05:35:00.005-07:00</published><updated>2009-03-29T22:44:43.459-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What are the similarities between java and flex</title><content type='html'>&lt;strong&gt;Question :What are the similarities between java and flex?&lt;/strong&gt;&lt;br /&gt;Answer :&lt;br /&gt;Both can be used as client application, both have packages, OOP based , support XML , import&lt;br /&gt;external packages, up casting, support ArrayCollection ,almost same primitive data types, both&lt;br /&gt;support class library packaging( .jar , .swc).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-983188452993448643?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/983188452993448643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-similarities-between-java-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/983188452993448643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/983188452993448643'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-are-similarities-between-java-and.html' title='What are the similarities between java and flex'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-417645025212364209</id><published>2009-03-27T05:35:00.004-07:00</published><updated>2009-03-29T22:43:31.653-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is a resource Manager</title><content type='html'>&lt;strong&gt;Question :What is a resource Manager??&lt;/strong&gt;&lt;br /&gt;Answer :the ResourceManager — now handles access to all localized resources in an application. Any&lt;br /&gt;components that extend UIComponent, Formatter, or Validator now have a new resourceManager&lt;br /&gt;property, which lets you easily access the singleton instance of this manager. If you’re writing some&lt;br /&gt;other kind of class that needs to use the ResourceManager, you can call&lt;br /&gt;ResourceManager.getInstance() to get a reference to it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-417645025212364209?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/417645025212364209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-resource-manager.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/417645025212364209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/417645025212364209'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-resource-manager.html' title='What is a resource Manager'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-7863864629566288270</id><published>2009-03-27T05:35:00.003-07:00</published><updated>2009-03-29T22:42:48.416-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>I am going to add images into a tag. How will it resize itself</title><content type='html'>&lt;strong&gt;Question :I am going to add images into a tag. How will it resize itself?&lt;/strong&gt;&lt;br /&gt;Answer :To let Flex resize the image as part of laying out your application, set the height or width&lt;br /&gt;properties to a percentage value. Flex attempts to resize components with percentage values for these&lt;br /&gt;properties to the specified percentage of their parent container.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-7863864629566288270?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/7863864629566288270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/i-am-going-to-add-images-into-tag-how_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7863864629566288270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/7863864629566288270'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/i-am-going-to-add-images-into-tag-how_27.html' title='I am going to add images into a tag. How will it resize itself'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6685938265219607872</id><published>2009-03-27T05:35:00.002-07:00</published><updated>2009-03-29T22:42:47.626-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>I am going to add images into a tag. How will it resize itself</title><content type='html'>&lt;strong&gt;Question :I am going to add images into a tag. How will it resize itself?&lt;/strong&gt;&lt;br /&gt;Answer :To let Flex resize the image as part of laying out your application, set the height or width&lt;br /&gt;properties to a percentage value. Flex attempts to resize components with percentage values for these&lt;br /&gt;properties to the specified percentage of their parent container.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6685938265219607872?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6685938265219607872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/i-am-going-to-add-images-into-tag-how.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6685938265219607872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6685938265219607872'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/i-am-going-to-add-images-into-tag-how.html' title='I am going to add images into a tag. How will it resize itself'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-8783130997477998042</id><published>2009-03-27T05:35:00.001-07:00</published><updated>2009-03-27T05:35:34.847-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you implement push on a flex applications</title><content type='html'>&lt;strong&gt;Question :How do you implement push on a flex applications?&lt;/strong&gt;&lt;br /&gt;Answer :Using BlazeDS Server, LiveCycle Data Services,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-8783130997477998042?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/8783130997477998042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-implement-push-on-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8783130997477998042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/8783130997477998042'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-implement-push-on-flex.html' title='How do you implement push on a flex applications'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-2309292638845451500</id><published>2009-03-27T05:34:00.001-07:00</published><updated>2009-03-27T05:34:50.416-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Have you built any components with actionscript? If so explain how you did it</title><content type='html'>&lt;strong&gt;Question :Have you built any components with actionscript? If so explain how you did it?&lt;/strong&gt;&lt;br /&gt;Answer :CountryComboBox.as&lt;br /&gt;package components&lt;br /&gt;{ import mx.controls.ComboBox;&lt;br /&gt;public class CountryComboBox extends ComboBox&lt;br /&gt;{ public function CountryComboBox()&lt;br /&gt;{ dataProvider = [ "United States", "United Kingdom" ];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&lt;mx:Application&lt;br /&gt;xmlns:mx="http://www.adobe.com/2006/mxml"&lt;br /&gt;xmlns:custom="components.*"&lt;br /&gt;width="220" height="115"&lt;br /&gt;&gt;&lt;br /&gt;&lt;custom:CountryComboBox /&gt;&lt;br /&gt;&lt;/mx:Application&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-2309292638845451500?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/2309292638845451500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/have-you-built-any-components-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2309292638845451500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/2309292638845451500'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/have-you-built-any-components-with.html' title='Have you built any components with actionscript? If so explain how you did it'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-5081691711880401534</id><published>2009-03-27T05:33:00.000-07:00</published><updated>2009-03-27T05:34:09.823-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>How do you generate random numbers within a given limit with actionscript</title><content type='html'>&lt;strong&gt;Question :How do you generate random numbers within a given limit with actionscript?&lt;/strong&gt;&lt;br /&gt;Answer :Math.round(Math.random() * (high - low)) + low&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-5081691711880401534?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/5081691711880401534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-generate-random-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/5081691711880401534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/5081691711880401534'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/how-do-you-generate-random-numbers.html' title='How do you generate random numbers within a given limit with actionscript'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-3825659804010673642</id><published>2009-03-27T05:31:00.000-07:00</published><updated>2009-03-27T05:32:27.140-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>What is the difference between httpService and Data Service</title><content type='html'>&lt;strong&gt;Question :What is the difference between httpService and Data Service?&lt;/strong&gt;&lt;br /&gt;Answer :The services-config.xml configuration file is required at compile time if the Flex application uses&lt;br /&gt;Flex Data Services. In the case of RPC services, this applies to all applications that use&lt;br /&gt;RemoteObject or proxy-based WebService or HTTPService.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-3825659804010673642?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/3825659804010673642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-difference-between-httpservice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3825659804010673642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/3825659804010673642'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/what-is-difference-between-httpservice.html' title='What is the difference between httpService and Data Service'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-1466430404126948986</id><published>2009-03-27T05:30:00.000-07:00</published><updated>2009-03-27T05:31:15.883-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>I need to load an image from flickr into my application. Do I need a crossdomain.xml file on flickr</title><content type='html'>Question :I need to load an image from flickr into my application. Do I need a crossdomain.xml file on flickr?&lt;br /&gt;Answer :File is already there , we need to register our ip address to flicker’s crossdomain.xml. &lt;br /&gt;Since the images are located on a flickr server like farm1.static.flickr.com and there is no&lt;br /&gt;crossdomain.xml file on that server (there is a crossdomain.xml for api.flickr.com so you can use the&lt;br /&gt;api) that means you can’t get access to the bitmapData of the loaded images when you load them&lt;br /&gt;from flickr. This is dumb, but that’s the way it is. So you can load images just fine, but the reflection&lt;br /&gt;class copies the bitmapData of the image, so that doesn’t work if you load them straight from the&lt;br /&gt;flickr server. I also wanted to set bitmap smoothing to true on the images so the thumbnails don’t&lt;br /&gt;look as pixelated, and that also requires access to the bitmapData of the loaded image.&lt;br /&gt;So the answer is to create a proxy that loads the flickr image so it appears to come from the same&lt;br /&gt;domain.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-1466430404126948986?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/1466430404126948986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/i-need-to-load-image-from-flickr-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/1466430404126948986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/1466430404126948986'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/i-need-to-load-image-from-flickr-into.html' title='I need to load an image from flickr into my application. Do I need a crossdomain.xml file on flickr'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1003891420105625547.post-6588025217646957308</id><published>2009-03-27T05:20:00.000-07:00</published><updated>2009-03-27T05:30:07.703-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flex'/><title type='text'>Is it possible to make httpService Requests synchronous</title><content type='html'>&lt;strong&gt;Question :Is it possible to make httpService Requests synchronous?&lt;/strong&gt;&lt;br /&gt;Answer :No, Basically, what we are about to do is creating XMLHttpRequest with Javascript in Flex,&lt;br /&gt;and calling a server data with the parameters we will give to the object.&lt;br /&gt;For example: xmlHttpRequest.open("GET","http://localhost/Default.aspx",false);&lt;br /&gt;1. Request Type: GET or POST&lt;br /&gt;2. Requested URL&lt;br /&gt;3. Communication Type: true for asynchronous, false for synchronous.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1003891420105625547-6588025217646957308?l=flex-interview-question.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-interview-question.blogspot.com/feeds/6588025217646957308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/is-it-possible-to-make-httpservice.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6588025217646957308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1003891420105625547/posts/default/6588025217646957308'/><link rel='alternate' type='text/html' href='http://flex-interview-question.blogspot.com/2009/03/is-it-possible-to-make-httpservice.html' title='Is it possible to make httpService Requests synchronous'/><author><name>Interview Helper</name><uri>http://www.blogger.com/profile/00019571984377897004</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='12' src='http://1.bp.blogspot.com/_AdNUW2U2OOs/SYHHT9_iGqI/AAAAAAAAAAM/PzlYVvYWMac/s1600-R/interviewhelper.jpg'/></author><thr:total>1</thr:total></entry></feed>
