[flexcoders] Detecting Flash Player standalone menu events
Hi everyone, I'm hoping someone might be able to point me in the right direction with an integration issue I'm currently facing. The application I'm writing is going to be hosted on a client's platform that uses some kind of queuing mechanism to preload and schedule content that is to be delivered to an external screen. Apparently, the way it works is that it uses Standalone flash player to host any flash content. The content gets preloaded into this player, then is immediately 'stopped' (using the Flash Player's Stop menu) until the platform decides its ready to go to screen. When it goes to screen, Flash Player's 'Play' menu item is triggered, which is my queue to start my application. So my question is simple; does anyone know if I can hook up to those events, and if so, how? I'm guessing they're something to do with the timeline, but I'm not a CS3/4 developer, and I'm struggling to find any info on what exactly they do and the implications of them on SWFs developed in Flex. Any help much appreciated, Craig
[flexcoders] dynamic data grid columns
Hello my application displays a list of entries in a DataGrid. Each entry has a set of associated metadata (name, value). All of the entries have the same metadata set, but the set is not known in advance, because it is configurable on the server side. I guess the only solution is to dynamically build the data grid columns once the data is received. Could anyone please point me to any examples of such code ? One more thing: the data model for exchanging data from server to client is, as far as I can see it, on two levels. A list of entries, each of which has a list of meta data. In XML form that could be: root entry someAttribute=xyz meta name=key1 value=value1/ meta name=key2 value=value2/ /entry /root I seem to have read somewhere that Flex can only introspect one level of an XML dataset. Am I correct ? Does that mean I cannot use such a data model as above ? Thank you Pier -- View this message in context: http://www.nabble.com/dynamic-data-grid-columns-tp25764646p25764646.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: Adobe promises *full flash* on mobile devices (all except iPhone)
On Monday 05 Oct 2009, dorkie dork from dorktown wrote: Yes to the global error handling! :) Flash Player 10.1 will address memory issues (currently halves current apps out of the box). It will also increase performance by 35%. I'm sure they're addressing the issues mobile app development faces. They said similar performance improvements have been made in AIR too. Ace. -- Helping to assertively maintain fourth-generation cross-media IPOs as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Seeking Job Position as flex/flash AS 3 Developer (php,.net,java,red5 ,mvc,orm and etc)
2009/10/6 Sajid Hussain enchanter_...@yahoo.com Salary ; Min US $ 15,00 Well, you are not expensive :)
Re: [Spam] RE: [flexcoders] mx:ControlBar horizontalAlign=right - doesn'twork?
It just stays left aligned... that's odd... Could there be anything that is over riding it? Thanks, Nick 2009/10/5 Alex Harui aha...@adobe.com Works for me. What did you see? Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui
Re: [flexcoders] Seeking Job Position as flex/flash AS 3 Developer (php,.net,java,red5 ,mvc,orm and etc)
Yes , I was not tht much cheap but now my local market is very down and you know the world money crisis , so trying to make some step to be atleast having some work Sajid From: primo411 primo...@gmail.com To: flexcoders@yahoogroups.com Sent: Tue, October 6, 2009 3:15:19 PM Subject: Re: [flexcoders] Seeking Job Position as flex/flash AS 3 Developer (php,.net,java,red5 ,mvc,orm and etc) 2009/10/6 Sajid Hussain enchanter_saj@ yahoo.com Salary ; Min US $ 15,00 Well, you are not expensive :)
[flexcoders] Is it a Bug?
Hi all, I stumbled on the following and don't know if this is a bug, and if there are is any fix. Environment is Eclipse Ganymede, Flex Pro Plugin 3 (3.2 SDK) The setup includes a MenuBar control with several submenus. Also there is a AdvancedDataGrid with several columns and some itemEditors used in these columns. Handling of the itemEditors is through a typical itemEditBegin event function, that handles the event. This works OK as it should. Now let's first use any itemEditor on the ADG (and finish the operation). Then clicking the menuBar, it opens the popup submenu through nenuEvent:MENU_SHOW, as it has to. If I leave the popup open and click anywhere outside, to close the popup, it closes allright, but the previously used itemEditor comes open/selected. This is not supposed to be, but happens all the time, even if I click outside the ADG, anywhere. (The function that handles the itemEditBegin is triggered and the event.target shows the ADG with columnIndex of the previously used itemEditor still selected) Any insight please? Thanks George
Re: [flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED
Michael, I had problems getting the ActionScript project code into the AIR application. The original Document Class from OriginalProgram.AS would not run because it was no longer automatically on the display list and so its stage variable was null. I emptied the code from the constructor into a new function called main, added an instance to the stage, see below, and completed the construction via main(). It could then proceed since stage was no longer null. My background colour has changed and the aligment isn't working but it looks very promising. Thanks again. John ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=start(); mx:Script ![CDATA[ private var prog:OriginalProgram; public function start():void { prog=new OriginalProgram; // An instance of the original Document Class nativeWindow.stage.addChild(prog); // The constructor needs the prog.stage variable set, and prog.main(); // then this can now run all the original constructor code. } ]] /mx:Script mx:UIComponent id=container / /mx:WindowedApplication Michael wrote: John, Though your code is in ActionScript, you should just be able to use the MXML WindowedApplication tag just at the very top-level, and initialize your main ActionScript UI within an mx:Script tag. Something like: mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init(); mx:Script ![CDATA[ private function init():void { // Fire up all your AS stuff here } ]] /mx:Script /mx:WindowedApplication Finally, I left out a step (4) in my previous message. Steps 1-3 are sufficient to run your AIR app in the debugger, but to distribute your AIR application you typically need to generate and sign a .air file. Flex Builder can do that; from the raw SDK, you should check out the adt tool. Hope this helps, Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: Thanks Michael, I will give this a try. Currently, within FB3 I can create an AIR project and it does these things for me but the output is structured similarly to a Flex project but my projects are ActionScript projects built within FB3 and so the conversion isn't quite the same. Perhaps I should be looking to convert from AcitionScript to Flex as an intermediate step: by minimizing the mxml and calling my main Document Class from the main mxml class and then modify that for AIR. It's annoying because from within Flash Prof. I can publish as AIR, but that's a conversion step backwards. John Michael wrote: John, You can convert your Flex project to an AIR application pretty easily. There's three basic steps involved: 1) Your application should be declared as inheriting from WindowedApplication, rather than Application in your main myapp.mxml file. mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* !-- declaration of your app top-level fixtures goes here -- /mx:WindowedApplication 2) Create an AIR app descriptor file. Here's an example. Name it myapp-app.xml and place in the same folder as your main myapp.mxml file. ?xml version=1.0 encoding=UTF-8? application xmlns=http://ns.adobe.com/air/application/1.5.1; idcom.myapp.tester/id version0.1/version filenametester/filename nameFlexUnit Test Runner/name initialWindow contenttester.swf/content visibletrue/visible systemChromestandard/systemChrome transparentfalse/transparent width1024/width height768/height /initialWindow /application There is detailed documentation on the AIR app descriptor format on the Adobe site: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html 3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts. If you're using Flex Builder, you can add an AIR Project Builder to your in the Project Properties Builders pane. That should be enough to get you started. Good luck. Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack john@ wrote: Is there any easy way to publish a Flex ActionScript Project as an AIR file. This project, by its nature, has no mxml tags. John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: variableRowHeight
Got it, so that's the issue then, how do I know if my itemRenderer is off the screen so I can reset it's measuredHeight, is there a way I can find this information out? Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The list always remeasures the renderers. It assigns the .data property, sets explicitWidth then calls measure(), then checks for explicitHeight then measuredHeight, and that's the height it uses. But if you can only see three renderers, it will probably create a new one for the one just off-screen, but it will re-use the first renderer for the fifth row assuming the first row is now off-screen. If that renderer still thinks it is in the expanded state when it is not representing row 5 which is not expanded, then scrolling will be off. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Friday, October 02, 2009 10:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: variableRowHeight OK makes sense, the problem I am having is that if I have 4 item renderers, i expand renderers 1,2,3, and if the 4th one is out of view when I scroll the list it does not work, until I expand the 4th item, then the scroll works correctly? Is there a way to force the list to remeasure the height of all the renderers to determine how scrolling works? Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Remember that renderers are recycled so the size of the renderer must be determined from the .data property, it can't just be stored in the renderer instance. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, October 01, 2009 6:19 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] variableRowHeight I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick
Re: [flexcoders] Re: variableRowHeight
here you can find an example http://www.mxml.it/index.php/2009/01/11/flex-item-renderers-an-expandable-list-with-transitions/ Quoting djhatrick djhatr...@yahoo.com: Got it, so that's the issue then, how do I know if my itemRenderer is off the screen so I can reset it's measuredHeight, is there a way I can find this information out? Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The list always remeasures the renderers. It assigns the .data property, sets explicitWidth then calls measure(), then checks for explicitHeight then measuredHeight, and that's the height it uses. But if you can only see three renderers, it will probably create a new one for the one just off-screen, but it will re-use the first renderer for the fifth row assuming the first row is now off-screen. If that renderer still thinks it is in the expanded state when it is not representing row 5 which is not expanded, then scrolling will be off. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Friday, October 02, 2009 10:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: variableRowHeight OK makes sense, the problem I am having is that if I have 4 item renderers, i expand renderers 1,2,3, and if the 4th one is out of view when I scroll the list it does not work, until I expand the 4th item, then the scroll works correctly? Is there a way to force the list to remeasure the height of all the renderers to determine how scrolling works? Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Remember that renderers are recycled so the size of the renderer must be determined from the .data property, it can't just be stored in the renderer instance. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, October 01, 2009 6:19 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] variableRowHeight I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick This message was sent using IMP, the Internet Messaging Program.
[flexcoders] Re:Need good links for learning LCDS
This book has a lot of useful information for people who want to learn LCDS. Of course, I may be biased ;-) http://slinnbooks.com Mike
[flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED
FYI The Adobe docs do describe how to create a pure AS (i.e. not using MXML) AIR application. --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: Michael, I had problems getting the ActionScript project code into the AIR application. The original Document Class from OriginalProgram.AS would not run because it was no longer automatically on the display list and so its stage variable was null. I emptied the code from the constructor into a new function called main, added an instance to the stage, see below, and completed the construction via main(). It could then proceed since stage was no longer null. My background colour has changed and the aligment isn't working but it looks very promising. Thanks again. John ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=start(); mx:Script ![CDATA[ private var prog:OriginalProgram; public function start():void { prog=new OriginalProgram; // An instance of the original Document Class nativeWindow.stage.addChild(prog); // The constructor needs the prog.stage variable set, and prog.main(); // then this can now run all the original constructor code. } ]] /mx:Script mx:UIComponent id=container / /mx:WindowedApplication Michael wrote: John, Though your code is in ActionScript, you should just be able to use the MXML WindowedApplication tag just at the very top-level, and initialize your main ActionScript UI within an mx:Script tag. Something like: mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=init(); mx:Script ![CDATA[ private function init():void { // Fire up all your AS stuff here } ]] /mx:Script /mx:WindowedApplication Finally, I left out a step (4) in my previous message. Steps 1-3 are sufficient to run your AIR app in the debugger, but to distribute your AIR application you typically need to generate and sign a .air file. Flex Builder can do that; from the raw SDK, you should check out the adt tool. Hope this helps, Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack john@ wrote: Thanks Michael, I will give this a try. Currently, within FB3 I can create an AIR project and it does these things for me but the output is structured similarly to a Flex project but my projects are ActionScript projects built within FB3 and so the conversion isn't quite the same. Perhaps I should be looking to convert from AcitionScript to Flex as an intermediate step: by minimizing the mxml and calling my main Document Class from the main mxml class and then modify that for AIR. It's annoying because from within Flash Prof. I can publish as AIR, but that's a conversion step backwards. John Michael wrote: John, You can convert your Flex project to an AIR application pretty easily. There's three basic steps involved: 1) Your application should be declared as inheriting from WindowedApplication, rather than Application in your main myapp.mxml file. mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* !-- declaration of your app top-level fixtures goes here -- /mx:WindowedApplication 2) Create an AIR app descriptor file. Here's an example. Name it myapp-app.xml and place in the same folder as your main myapp.mxml file. ?xml version=1.0 encoding=UTF-8? application xmlns=http://ns.adobe.com/air/application/1.5.1; idcom.myapp.tester/id version0.1/version filenametester/filename nameFlexUnit Test Runner/name initialWindow contenttester.swf/content visibletrue/visible systemChromestandard/systemChrome transparentfalse/transparent width1024/width height768/height /initialWindow /application There is detailed documentation on the AIR app descriptor format on the Adobe site: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html 3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts. If you're using Flex Builder, you can add an AIR Project Builder to your in the Project Properties Builders pane. That should be enough to get you started. Good luck. Michael Portuesi --- In flexcoders@yahoogroups.com, John McCormack john@ wrote: Is there any easy way to publish a Flex ActionScript Project as an AIR file. This project, by its nature, has no mxml tags. John -- Flexcoders Mailing List FAQ:
[flexcoders] Adobe Flex Dashboard
Hi Flexcoders! I started dabbling with the codes for the Adobe Flex Dashboard (http://examples.adobe.com/flex3/devnet/dashboard/main.html) and has been able to load properly all the necessary files and components to run the application. My question is that I think the last view settings are being retained but I do not know where these settings are. For example, in the first tab (Sales Tab), when I minimize all windows except the Yearly Revenue (the first pod) and close the browser and open it again, those pods which have been minimized remains minimized. If for example I closed the browser and I was on Marketing tab, opening the application will show me that the Marketing tab is the one currently displayed. I am having a hard time figuring out whether there is a setting which retains what the user has last viewed on this application. Even recompiling the application and replacing the deployed SWF on the server, the view still points back to the last view prior to the browser (application) being closed. What do you call this feature of Flex applications? Where do I configure it so that I could reset the application to default view (the view when SWF file was first deployed) when I open the application? Appreciate your advise. Thanks. Regards, Angelo
Re: [flexcoders] TitleWindow Popup Question(s)
Hi Dave, Your advise certainly helped. Thanks. What I did was the TitleWindow was used to display the data which is retrieved from the parent window. Although I find it odd that the TitleWindow when opened as a popup window does not seem to connect to the web service, whereas the parent window does not have any problem retrieving the data from the web service. Thanks again. Regards Angelo From: Dave Cates d...@redemptionmedia.co.uk To: flexcoders@yahoogroups.com Sent: Wednesday, 30 September, 2009 1:15:41 Subject: Re: [flexcoders] TitleWindow Popup Question(s) Hi, I’d reference a public set function within the title window itself. Works good for us since we use an MVC model and so don’t really want too much code within the TitleWindow view itself. Regarding the title itself. I do this by assigning a Bindable variable to the title in the main header of the title window. Then I can update the title by simply assigning values to that variable whenever I like. Hope that helps. Dave. From: Angelo Anolin angelo_anolin@ yahoo.com Reply-To: flexcod...@yahoogro ups.com Date: Tue, 29 Sep 2009 00:55:35 -0700 (PDT) To: flexcod...@yahoogro ups.com Subject: [flexcoders] TitleWindow Popup Question(s) Hi FlexCoders, Just a little TitleWindow popup question. I want a function to be executed everytime my popup title window component is displayed. How do I achieve this? I tried in the title window using the initialize property like: mx:TitleWindow xmlns:mx=http://www.adobe. com/2006/ mxml initialize=RunEveryPop( ); but my function RunEveryPop only executes the first time the popup is displayed. Subsequent popups would not trigger the said function. I know I can declare a public function in the title window and simply call this function from the calling main application, but I am wondering if this is a good or recommended way in achieving this? Also, another question... How do I reference the title of the TitleWindow from within itself? Like for example: private function getTitleWindowTitle () :void { Alert.show(Titlewin dow.Title) ; // I Should be able to display the Title of the title window in an alert message. } Advice and inputs would be highly appreciated. Thanks.,
Re: [flexcoders] Adobe Flex Dashboard
You can do this using SharedObject - I guess they are also using SharedObject somewhere. Please see this example here: http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_5.html On Tue, Oct 6, 2009 at 8:44 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: Hi Flexcoders! I started dabbling with the codes for the Adobe Flex Dashboard ( http://examples.adobe.com/flex3/devnet/dashboard/main.html) and has been able to load properly all the necessary files and components to run the application. My question is that I think the last view settings are being retained but I do not know where these settings are. For example, in the first tab (Sales Tab), when I minimize all windows except the Yearly Revenue (the first pod) and close the browser and open it again, those pods which have been minimized remains minimized. If for example I closed the browser and I was on Marketing tab, opening the application will show me that the Marketing tab is the one currently displayed. I am having a hard time figuring out whether there is a setting which retains what the user has last viewed on this application. Even recompiling the application and replacing the deployed SWF on the server, the view still points back to the last view prior to the browser (application) being closed. What do you call this feature of Flex applications? Where do I configure it so that I could reset the application to default view (the view when SWF file was first deployed) when I open the application? Appreciate your advise. Thanks. Regards, Angelo
Re: [flexcoders] Re: New to FlexBuilder Development Tool
Hi Valdhor, Thanks for the input. This worked. I am now trying to take this on a different approach - that is to learn further. After I was able to make the application run (and all errors and warnings resolved), I deleted the project and started the application loading each of the component (mxml, as, ttf, etc...). So far so good, I am getting the hang of it. Thanks for the input. Rgds, Angelo From: valdhor valdhorli...@embarqmail.com To: flexcoders@yahoogroups.com Sent: Saturday, 3 October, 2009 2:48:21 Subject: [flexcoders] Re: New to FlexBuilder Development Tool Angelo You picked a pretty big project to start with. Here is what I did to get it running (Dirty Hack): 1. Extracted the zip file on my computer (And deleted the .svn directory) 2. Created a new project in Flex Builder named ChartSampler. 3. In Windows Explorer, deleted the ChartSampler. mxml file then copied the unzipped files into the src directory. 4. In the examples/styling/ MXMLStyles. mxml file, commented out the s:Selector stuff (There is no Selector class there) 5. Copied the arial.ttf font from my fonts directory into the src directory. 6. Run the app.mxml file or the ChartSeriesStyles. mxml files. They should both work. This kind of thing happens quite a lot with downloaded examples. You have to figure out where the errors are and fix them. HTH Steve --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo. quietlyscheming. com/ChartSampler /app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
[flexcoders] local socket connection
I am writing an AIR application using Flex and want to use a socket to connect to a local application running. Do I still need to use a socket Policy file for this. If so, what is the easiest way to do this locally?
Re: [flexcoders] Adobe Flex Dashboard
I tried to locate if SharedObject was used in the application but I am unable to find one. I know it is being set somewhere but I just can't pinpoint it at this stage. Would still appreciate your inputs. In the meantime, let me dig through this haystack for the needle. THanks, Angelo From: Vivian Richard kanps...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, 7 October, 2009 0:02:22 Subject: Re: [flexcoders] Adobe Flex Dashboard You can do this using SharedObject - I guess they are also using SharedObject somewhere. Please see this example here: http://livedocs. adobe.com/ flex/3/html/ help.html? content=lsos_ 5.html On Tue, Oct 6, 2009 at 8:44 AM, Angelo Anolin angelo_anolin@ yahoo.com wrote: Hi Flexcoders! I started dabbling with the codes for the Adobe Flex Dashboard (http://examples. adobe.com/ flex3/devnet/ dashboard/ main.html) and has been able to load properly all the necessary files and components to run the application. My question is that I think the last view settings are being retained but I do not know where these settings are. For example, in the first tab (Sales Tab), when I minimize all windows except the Yearly Revenue (the first pod) and close the browser and open it again, those pods which have been minimized remains minimized. If for example I closed the browser and I was on Marketing tab, opening the application will show me that the Marketing tab is the one currently displayed. I am having a hard time figuring out whether there is a setting which retains what the user has last viewed on this application. Even recompiling the application and replacing the deployed SWF on the server, the view still points back to the last view prior to the browser (application) being closed. What do you call this feature of Flex applications? Where do I configure it so that I could reset the application to default view (the view when SWF file was first deployed) when I open the application? Appreciate your advise. Thanks. Regards, Angelo
Re: [flexcoders] Re: New to FlexBuilder Development Tool
Hi Sean The charting component I got on a separate download (datavisualization.swc and datavisualization_rb.swc) which I included in the Flex project properties. Regards, Angelo From: seanmcmonahan s...@seanmonahan.org To: flexcoders@yahoogroups.com Sent: Saturday, 3 October, 2009 1:12:23 Subject: [flexcoders] Re: New to FlexBuilder Development Tool Not sure if that demo uses the Flex charting components, but another thing to be aware of is that charting is only available in Flex Builder Professional. I think you get a 30 or 60 day demo so if you just installed that shouldn't be the problem. --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo. quietlyscheming. com/ChartSampler /app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
Re: [flexcoders] Re: New to FlexBuilder Development Tool
Thanks for the heads up, although I do some coding already with Flex, although when I compile my app into SWF, I only utilize the command line compiler, whereas the FlexBuilder IDE is quite new to me. Regards, Angelo From: GeorgeB grg_b...@yahoo.com To: flexcoders@yahoogroups.com Sent: Friday, 2 October, 2009 17:31:15 Subject: [flexcoders] Re: New to FlexBuilder Development Tool Hi, I would suggest you first try http://www.adobe. com/devnet/ flex/?view= gettingstarted --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Follow up on this. When I click on the Proceed button, when the message Error exist in required project(s): appears when I try to run the application, the application opens up in the browser but no control or components seems to be loading up. I would appreciate some help on this. Thanks. Regards, Angelo _ _ __ From: Angelo Anolin angelo_anolin@ ... To: flexcod...@yahoogro ups.com Sent: Friday, 2 October, 2009 14:52:00 Subject: [flexcoders] New to FlexBuilder Development Tool Finally, I got my own FlexBuilder standard edition. I am quite new to this tool. I have mostly developed apps by simply using the command line compiler. I am browsing for some examples to load to my FB3 and I found this example: http://demo. quietlyscheming. com/ChartSampler /app.html As you can see from this site, the source can be downloaded (zip file). I have already downloaded the zip file and was trying to load it through FB3 via menu item - File | Import | Flex Project but it gives me the message that it is not a valid Flex Project. Next that I did was to simply unzip the file and copy the source codes (including the directory structure of those in the zip) and placed them into the source folder (SRC) of the New Flex Project which I created. When I try to run the application, it gives me a message saying Errors exist in required project(s): ChartSampler Proceed with Launch? How would I be able to load properly all the components which I have downloaded from the demo site and run it successfully? Am I missing something? Thanks.
Re: [flexcoders] Adobe Flex Dashboard
in the file StateManager.as line 17 private static var sharedObject:SharedObject = SharedObject.getLocal(com.esria.sample.dashboard); On Tue, Oct 6, 2009 at 9:23 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: I tried to locate if SharedObject was used in the application but I am unable to find one. I know it is being set somewhere but I just can't pinpoint it at this stage. Would still appreciate your inputs. In the meantime, let me dig through this haystack for the needle. THanks, Angelo -- *From:* Vivian Richard kanps...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, 7 October, 2009 0:02:22 *Subject:* Re: [flexcoders] Adobe Flex Dashboard You can do this using SharedObject - I guess they are also using SharedObject somewhere. Please see this example here: http://livedocs. adobe.com/ flex/3/html/ help.html? content=lsos_ 5.htmlhttp://livedocs.adobe.com/flex/3/html/help.html?content=lsos_5.html On Tue, Oct 6, 2009 at 8:44 AM, Angelo Anolin angelo_anolin@ yahoo.comangelo_ano...@yahoo.com wrote: Hi Flexcoders! I started dabbling with the codes for the Adobe Flex Dashboard (http://examples. adobe.com/ flex3/devnet/ dashboard/ main.htmlhttp://examples.adobe.com/flex3/devnet/dashboard/main.html) and has been able to load properly all the necessary files and components to run the application. My question is that I think the last view settings are being retained but I do not know where these settings are. For example, in the first tab (Sales Tab), when I minimize all windows except the Yearly Revenue (the first pod) and close the browser and open it again, those pods which have been minimized remains minimized. If for example I closed the browser and I was on Marketing tab, opening the application will show me that the Marketing tab is the one currently displayed. I am having a hard time figuring out whether there is a setting which retains what the user has last viewed on this application. Even recompiling the application and replacing the deployed SWF on the server, the view still points back to the last view prior to the browser (application) being closed. What do you call this feature of Flex applications? Where do I configure it so that I could reset the application to default view (the view when SWF file was first deployed) when I open the application? Appreciate your advise. Thanks. Regards, Angelo
Re: [flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED
reflexactions wrote: FYI The Adobe docs do describe how to create a pure AS (i.e. not using MXML) AIR application. I haven't found that, although I have found lots of other references. Unfortunately the Adobe PDF help files overlap and they have no dates, so things are hard to find. Some of my problems were because I was using various properties of the main Class and when it because an AIR application it wasn't the main class any more. If possible, please point me to the particular document it's in. Thanks John
RE: [flexcoders] Is it a Bug?
Flex tries hard to make sure some component has focus and will restore focus to the last thing in the app that had focus. If that is the ADG, the ADG will start a new edit session. You can try to detect that situation and cancel ITEM_EDIT_BEGINNING or ITEM_EDIT_BEGIN. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeorgeB Sent: Tuesday, October 06, 2009 6:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is it a Bug? Hi all, I stumbled on the following and don't know if this is a bug, and if there are is any fix. Environment is Eclipse Ganymede, Flex Pro Plugin 3 (3.2 SDK) The setup includes a MenuBar control with several submenus. Also there is a AdvancedDataGrid with several columns and some itemEditors used in these columns. Handling of the itemEditors is through a typical itemEditBegin event function, that handles the event. This works OK as it should. Now let's first use any itemEditor on the ADG (and finish the operation). Then clicking the menuBar, it opens the popup submenu through nenuEvent:MENU_SHOW, as it has to. If I leave the popup open and click anywhere outside, to close the popup, it closes allright, but the previously used itemEditor comes open/selected. This is not supposed to be, but happens all the time, even if I click outside the ADG, anywhere. (The function that handles the itemEditBegin is triggered and the event.target shows the ADG with columnIndex of the previously used itemEditor still selected) Any insight please? Thanks George
[flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED
Developing Adobe AIR 1.5 Applications with Flex: See section Creating your first AIR application with the Flex SDK See the para Write the application code Note: SWF-based AIR applications can use a main class defined either with MXML or with Adobe® ActionScript® 3.0. This example uses an MXML file to define its main class. The process for creating an AIR application with a main ActionScript class is similar. Instead of compiling an MXML file into the SWF, you compile the ActionScript class file. When using ActionScript, the main class must extend flash.display.Sprite. Also see Create the AIR application descriptor file --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: reflexactions wrote: FYI The Adobe docs do describe how to create a pure AS (i.e. not using MXML) AIR application. I haven't found that, although I have found lots of other references. Unfortunately the Adobe PDF help files overlap and they have no dates, so things are hard to find. Some of my problems were because I was using various properties of the main Class and when it because an AIR application it wasn't the main class any more. If possible, please point me to the particular document it's in. Thanks John
[flexcoders] Converting Flex Applications to Modules
Hi all, We are planning to convert our mx:applications to mx:modules for performance, integrity, usability reasons. In each of our applications we heavily use Application.application to refer Application variables. AppOne.mxml mx:Application mx:Script ![CDATA[ public var isApprovedUser:Boolean = false ]] /mx:Script .. mx:workLoadComp id=wlComp/ .. /mx:Application workLoadComp.mxml - mx:Canvas ... mx:Script ![CDATA[ //Check is Approved User if(Application.application.isApprovedUser){ //Some logic } ]] /mx:Script /mx:Canvas Now we would like to convert AppOne.mxml into mx:Module. Is there any way we can just replace all Application.application references to point Module reference. What is the best way to deal this? Thanks in advance.
Re: [flexcoders] custom itemrender flicker
You might be better off suppressing the setItemAt if it is the same. That is exactly what I did and it works great. Now the only issue I need to solve is how the entire collection reloads if only one item is changed. Do you have any advice on where I should begin looking for that? I am very comfortable extending and overriding anything. Thanks alot! On Mon, Oct 5, 2009 at 10:36 PM, Alex Harui aha...@adobe.com wrote: It depends on how you coded the renderer. Our list classes have very general and somewhat inefficient update strategies because we want to make sure most collection updates renderer correctly. I haven’t looked at how Spark List thinks, but mx:List will refresh all renderers even if only one item changes because it doesn’t know if another renderer might have “look-ahead” and also care about the item even though its data item is some other item in the collection. You might be better off suppressing the setItemAt if it is the same. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Baz *Sent:* Monday, October 05, 2009 3:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] custom itemrender flicker Hey Alex, thanks a lot for your reply. So it is *proper* behaviour that if you setItemAt in a custom itemrenderer that the whole control is rebuilt visually? Incidentally I am using Flex 4, so this might be of even more interest. I have a SkinnableDataContainer with an ArrayCollection dataprovider that holds custom objects ('reports' in this case). If my current collection has: 1. Report #1 = Name: 1stReportName, Path: 1stReportPath 2. Report #2 = Name: 2ndReportName, Path: 2ndReportPath And then I do a myArrayCollection.setItemAt(Report1, 0), which basically sets the first item to the same report it currently has. The itemrenderer empties of all items, then re-displays them, causing a flicker or flash that is noticeable on a slow computer. Wouldn't it make more sense for the itemrender NOT to re-build itself from scratch on every change? What if you had 100 items and u onl;y set one item? Thanks a lot! Baz On Mon, Oct 5, 2009 at 3:05 PM, Alex Harui aha...@adobe.com wrote: It depends on how you wrote the renderer. You can try overriding the “function set data()” to check for changes to the object referenced by the renderer, but then if some sub-property changes, the renderer will not update. Might be better to understand why it flickers when updating. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Baz *Sent:* Monday, October 05, 2009 12:32 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] custom itemrender flicker If I have a custom item render based on an ArrayCollection with 10 times, and just for fun, I loop through those 10 items and setItemAt the exact same values that are already there - on screen the list of items reloads in a sense, re-building itself to the exact same values. I would like that in such a case, the on-screen controls know that they are the same as before and not to rebuild themselves. Is this possible? Can I intercept some event to double check whether they are the same or different? The goal of course, is to have this behaviour even if one some items changed. For example if I change only the 10th item, I would expect only the 10th item to refresh, no the whole collection. Thanks for any ideas! P.S. I am not useing refresh() on the ArrayCollection is it set to auto-update. Also, all my setItemAt calls are done in commitProperties()
RE: [flexcoders] custom itemrender flicker
I'm not sure what you mean by entire collection reloads. What collectionChange events are being dispatched (what is the .kind property on the event). I don' t see anything drastic in the code for REPLACE, but REFRESH or RESET might be a problem. However those shouldn't be dispatched on setItemAt Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Tuesday, October 06, 2009 11:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] custom itemrender flicker You might be better off suppressing the setItemAt if it is the same. That is exactly what I did and it works great. Now the only issue I need to solve is how the entire collection reloads if only one item is changed. Do you have any advice on where I should begin looking for that? I am very comfortable extending and overriding anything. Thanks alot! On Mon, Oct 5, 2009 at 10:36 PM, Alex Harui aha...@adobe.commailto:aha...@adobe.com wrote: It depends on how you coded the renderer. Our list classes have very general and somewhat inefficient update strategies because we want to make sure most collection updates renderer correctly. I haven't looked at how Spark List thinks, but mx:List will refresh all renderers even if only one item changes because it doesn't know if another renderer might have look-ahead and also care about the item even though its data item is some other item in the collection. You might be better off suppressing the setItemAt if it is the same. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Baz Sent: Monday, October 05, 2009 3:18 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] custom itemrender flicker Hey Alex, thanks a lot for your reply. So it is *proper* behaviour that if you setItemAt in a custom itemrenderer that the whole control is rebuilt visually? Incidentally I am using Flex 4, so this might be of even more interest. I have a SkinnableDataContainer with an ArrayCollection dataprovider that holds custom objects ('reports' in this case). If my current collection has: 1. Report #1 = Name: 1stReportName, Path: 1stReportPath 2. Report #2 = Name: 2ndReportName, Path: 2ndReportPath And then I do a myArrayCollection.setItemAt(Report1, 0), which basically sets the first item to the same report it currently has. The itemrenderer empties of all items, then re-displays them, causing a flicker or flash that is noticeable on a slow computer. Wouldn't it make more sense for the itemrender NOT to re-build itself from scratch on every change? What if you had 100 items and u onl;y set one item? Thanks a lot! Baz On Mon, Oct 5, 2009 at 3:05 PM, Alex Harui aha...@adobe.commailto:aha...@adobe.com wrote: It depends on how you wrote the renderer. You can try overriding the function set data() to check for changes to the object referenced by the renderer, but then if some sub-property changes, the renderer will not update. Might be better to understand why it flickers when updating. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Baz Sent: Monday, October 05, 2009 12:32 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] custom itemrender flicker If I have a custom item render based on an ArrayCollection with 10 times, and just for fun, I loop through those 10 items and setItemAt the exact same values that are already there - on screen the list of items reloads in a sense, re-building itself to the exact same values. I would like that in such a case, the on-screen controls know that they are the same as before and not to rebuild themselves. Is this possible? Can I intercept some event to double check whether they are the same or different? The goal of course, is to have this behaviour even if one some items changed. For example if I change only the 10th item, I would expect only the 10th item to refresh, no the whole collection. Thanks for any ideas! P.S. I am not useing refresh() on the ArrayCollection is it set to auto-update. Also, all my setItemAt calls are done in commitProperties()
RE: [flexcoders] Converting Flex Applications to Modules
Typically a modules-based app must have one mx:Application. If that app has the properties you want shared, you can access them from the modules as Application.application Otherwise, you might need a singleton class that the modules reference. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ramu,chinna Sent: Tuesday, October 06, 2009 11:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Converting Flex Applications to Modules Hi all, We are planning to convert our mx:applications to mx:modules for performance, integrity, usability reasons. In each of our applications we heavily use Application.application to refer Application variables. AppOne.mxml mx:Application mx:Script ![CDATA[ public var isApprovedUser:Boolean = false ]] /mx:Script .. mx:workLoadComp id=wlComp/ .. /mx:Application workLoadComp.mxml - mx:Canvas ... mx:Script ![CDATA[ //Check is Approved User if(Application.application.isApprovedUser){ //Some logic } ]] /mx:Script /mx:Canvas Now we would like to convert AppOne.mxml into mx:Module. Is there any way we can just replace all Application.application references to point Module reference. What is the best way to deal this? Thanks in advance.
Re: [flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED
Much appreciated! John reflexactions wrote: Developing Adobe AIR 1.5 Applications with Flex: See section Creating your first AIR application with the Flex SDK See the para Write the application code Note: SWF-based AIR applications can use a main class defined either with MXML or with Adobe® ActionScript® 3.0. This example uses an MXML file to define its main class. The process for creating an AIR application with a main ActionScript class is similar. Instead of compiling an MXML file into the SWF, you compile the ActionScript class file. When using ActionScript, the main class must extend flash.display.Sprite. Also see Create the AIR application descriptor file --- In flexcoders@yahoogroups.com, John McCormack j...@... wrote: reflexactions wrote: FYI The Adobe docs do describe how to create a pure AS (i.e. not using MXML) AIR application. I haven't found that, although I have found lots of other references. Unfortunately the Adobe PDF help files overlap and they have no dates, so things are hard to find. Some of my problems were because I was using various properties of the main Class and when it because an AIR application it wasn't the main class any more. If possible, please point me to the particular document it's in. Thanks John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Adobe Flex Dashboard
Thanks a lot for pointing this one out Vivian. Although I still cannot fathom how the SharedObject is retained even after the application (SWF) is recompiled. I even did a restart of the machine and the settings are still there. Isn't it being retained in some sort of file or something? Regards, Angelo From: Vivian Richard kanps...@gmail.com To: flexcoders@yahoogroups.com Sent: Wednesday, 7 October, 2009 0:50:37 Subject: Re: [flexcoders] Adobe Flex Dashboard in the file StateManager. as line 17 private static var sharedObject: SharedObject = SharedObject. getLocal(com.esria.sample. dashboard); - - - - - - - - - - - - - - - - On Tue, Oct 6, 2009 at 9:23 AM, Angelo Anolin angelo_anolin@ yahoo.com wrote: I tried to locate if SharedObject was used in the application but I am unable to find one. I know it is being set somewhere but I just can't pinpoint it at this stage. Would still appreciate your inputs. In the meantime, let me dig through this haystack for the needle. THanks, Angelo From: Vivian Richard kanps...@gmail. com To: flexcod...@yahoogro ups.com Sent: Wednesday, 7 October, 2009 0:02:22 Subject: Re: [flexcoders] Adobe Flex Dashboard You can do this using SharedObject - I guess they are also using SharedObject somewhere. Please see this example here: http://livedocs. adobe.com/ flex/3/html/ help.html? content=lsos_ 5.html On Tue, Oct 6, 2009 at 8:44 AM, Angelo Anolin angelo_anolin@ yahoo.com wrote: Hi Flexcoders! I started dabbling with the codes for the Adobe Flex Dashboard (http://examples. adobe.com/ flex3/devnet/ dashboard/ main.html) and has been able to load properly all the necessary files and components to run the application. My question is that I think the last view settings are being retained but I do not know where these settings are. For example, in the first tab (Sales Tab), when I minimize all windows except the Yearly Revenue (the first pod) and close the browser and open it again, those pods which have been minimized remains minimized. If for example I closed the browser and I was on Marketing tab, opening the application will show me that the Marketing tab is the one currently displayed. I am having a hard time figuring out whether there is a setting which retains what the user has last viewed on this application. Even recompiling the application and replacing the deployed SWF on the server, the view still points back to the last view prior to the browser (application) being closed. What do you call this feature of Flex applications? Where do I configure it so that I could reset the application to default view (the view when SWF file was first deployed) when I open the application? Appreciate your advise. Thanks. Regards, Angelo
[flexcoders] Converting Flex Applications to Modules
Hi all, We are planning to convert our mx:applications to mx:modules for performance, integrity, usability reasons. In each of our applications we heavily use Application.application to refer Application variables. AppOne.mxml mx:Application mx:Script ![CDATA[ public var isApprovedUser:Boolean = false ]] /mx:Script .. mx:workLoadComp id=wlComp/ .. /mx:Application workLoadComp.mxml - mx:Canvas ... mx:Script ![CDATA[ //Check is Approved User if(Application.application.isApprovedUser){ //Some logic } ]] /mx:Script /mx:Canvas Now we would like to convert AppOne.mxml into mx:Module. Is there any way we can just replace all Application.application references to point Module reference. What is the best way to deal this? Thanks in advance. -Sruthi
[flexcoders] Flex with .Net
Hi All, We have the application on .Net and we have to replace the asp pages with flex UI. I am little bit exposure only to flex(I am java developer) and dont have knowledge on .Net. Please provide me sample codes(like the data passing from UI to db) and materials for doing the application. from there i will try to manage my self. Thanks and Regards, N.Ramkumar
Re: [flexcoders] Adobe Flex Dashboard
Angelo Anolin wrote: Thanks a lot for pointing this one out Vivian. Although I still cannot fathom how the SharedObject is retained even after the application (SWF) is recompiled. I even did a restart of the machine and the settings are still there. Isn't it being retained in some sort of file or something? SharedObject is a file on the computer and retains it's content after the application is shut down, or recompiled, or the computer turned off! Look in StateManager.as - the shared object is there.. Paul Regards, Angelo *From:* Vivian Richard kanps...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, 7 October, 2009 0:50:37 *Subject:* Re: [flexcoders] Adobe Flex Dashboard in the file StateManager. as line 17 private static var sharedObject: SharedObject = SharedObject. getLocal(com.esria.sample. dashboard); - - - - - - - - - - - - - - - - On Tue, Oct 6, 2009 at 9:23 AM, Angelo Anolin angelo_anolin@ yahoo.com mailto:angelo_ano...@yahoo.com wrote: I tried to locate if SharedObject was used in the application but I am unable to find one. I know it is being set somewhere but I just can't pinpoint it at this stage. Would still appreciate your inputs. In the meantime, let me dig through this haystack for the needle. THanks, Angelo *From:* Vivian Richard kanps...@gmail. com mailto:kanps...@gmail.com *To:* flexcod...@yahoogro ups.com mailto:flexcoders@yahoogroups.com *Sent:* Wednesday, 7 October, 2009 0:02:22 *Subject:* Re: [flexcoders] Adobe Flex Dashboard You can do this using SharedObject - I guess they are also using SharedObject somewhere. Please see this example here: http://livedocs. adobe.com/ flex/3/html/ help.html? content=lsos_ 5.html http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_5.html On Tue, Oct 6, 2009 at 8:44 AM, Angelo Anolin angelo_anolin@ yahoo.com mailto:angelo_ano...@yahoo.com wrote: Hi Flexcoders! I started dabbling with the codes for the Adobe Flex Dashboard (http://examples. adobe.com/ flex3/devnet/ dashboard/ main.html http://examples.adobe.com/flex3/devnet/dashboard/main.html) and has been able to load properly all the necessary files and components to run the application. My question is that I think the last view settings are being retained but I do not know where these settings are. For example, in the first tab (Sales Tab), when I minimize all windows except the Yearly Revenue (the first pod) and close the browser and open it again, those pods which have been minimized remains minimized. If for example I closed the browser and I was on Marketing tab, opening the application will show me that the Marketing tab is the one currently displayed. I am having a hard time figuring out whether there is a setting which retains what the user has last viewed on this application. Even recompiling the application and replacing the deployed SWF on the server, the view still points back to the last view prior to the browser (application) being closed. What do you call this feature of Flex applications? Where do I configure it so that I could reset the application to default view (the view when SWF file was first deployed) when I open the application? Appreciate your advise. Thanks. Regards, Angelo
[flexcoders] How to work with flex and a c# backend
Hi everybody! I have a question about how to work with flex and c#. Here is the situation: We are developing an app with a Flex frontend and a C# backend, connected through web services. We are using the FLex Builder 3's Import Web Service tool to autogenerate the webservice classes from the wsdl generated by c#. But the problem arise when Flex serialize our objects. For example, when we have a Number property with no value, this is serialized as NaN, and our backend doesn't know about NaN. Another example, and this is our biggest problem, is when we serialize a cyclic reference, we get a stack over flow exception. I know in java, for example, you can configure the way xstream work with cyclic reference and all that stuff... So, the question is, can we change the way Flex serialize the objects so C# can work with this frontend? Does anybody work with this architecture successfully? Is there any issue we should be aware about how flex serialize objects or how flex interacts with c#? Any clue/tip/advice would be very appreciated. Thanks in advance! Jorge
[flexcoders] DataTipRenderer Problem
Hello, im facing a problem regarding DataTipRenderer of a chart. in the application i have two button and one chart. when i clicked one of the button it will set the dataTipRenderer of the chart to a certain DataTip and when i will click the other button it will set the dataTipRenderer to another DataTip class. The problem is, it's not switching. :(( it always remains in the initial stage. :(( here is the code: ?xml version=1.0? !-- charts/CustomDataTipRenderer.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=applyCustomDataTips() mx:Script![CDATA[ import mx.charts.chartClasses.DataTip; import mx.skins.halo.ToolTipBorder; import mx.skins.Border; import mx.skins.RectangularBorder; import mx.skins.ProgrammaticSkin; import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, Expenses:1500}, {Month:Feb, Profit:1000, Expenses:200}, {Month:Mar, Profit:1500, Expenses:500} ]); private function applyCustomDataTips():void { // myChart.setStyle(dataTipRenderer,mx.skins.ProgrammaticSkin); } private function toolTipOn():void { myChart.setStyle(dataTipRenderer,DataTip); } private function toolTipOff():void { myChart.setStyle(dataTipRenderer,mx.skins.ProgrammaticSkin); } ]]/mx:Script mx:HBox width=100% height=10% mx:Button label=Tool Tip On click=toolTipOn()/ mx:Button label=Tool Tip Off click=toolTipOff()/ /mx:HBox mx:Panel title=Bar Chart mx:BarChart id=myChart dataProvider={expenses} showDataTips=true mx:verticalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:verticalAxis mx:series mx:BarSeries id=bar1 yField=Month xField=Profit displayName=Profit / mx:BarSeries id=bar2 yField=Month xField=Expenses displayName=Expenses / /mx:series /mx:BarChart mx:Legend dataProvider={myChart}/ /mx:Panel /mx:Application
[flexcoders] MVC design philosophy
Hi There, Interested in AS3 MVC framework talking? I worked on a new MVC design philosophy, please have a read if you are interested. I'd like to get some opinions. http://www.soundstep.com/blog/2009/10/06/mvc-design-philosophy/ Romu www.soundstep.com
[flexcoders] TileList - Items have a border
Hi, I have a TileList Here is a Snippet of code tileList = new TileList(); tileList.percentWidth = 100; tileList.percentHeight = 100; tileList.id = picsList; tileList.dataProvider = parentDocument.partListColl; tileList.itemRenderer = createItemRenderer(); tileList.dragEnabled = true; tileList.dragMoveEnabled = false; The ItemRenderer is: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center verticalAlign=middle width=200 height=200 backgroundColor=0xFF borderColor=0x00FF00 borderStyle=solid borderThickness=0 mx:Image id=image width=100 height=100 source=assets/{data.Image} visible=false/ mx:Label text={data.Name} width=100 textAlign=center visible=false / /mx:Panel I still see a black border on all the items in the Tilelist. I'm not sure where this is coming from. I would like to remove this border. Any help welcome. I notice that if i create a Object Array with the same Image and Label. Then i dont have this issue of the border. Regards
[flexcoders] Loading Font Files at Runtime
Hi, I am trying to load the font from the client machine at runtime but i have no idea how to pass the font URL to Embed Please Help.
[flexcoders] Unloading embeded swf
I do embed few swf files in my flex 3.4 application. For example there are two flash movies that I use in my preloader. Now, after the prelaoded has done its work, I would want these movies to be garbage collected. However, it does not happen... I have verified it in the flex builder profiler. Does anybody know of a way of disposing embeded swf files after they are not needed any more? FYI, my embedded swf files are plain graphical assets, or simple animations. -Marcin
RE: [flexcoders] Loading Font Files at Runtime
Embedding is a compile-time thing, not a run-time thing. You can pre-package fonts into modules and load them. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of cheran425 Sent: Tuesday, October 06, 2009 5:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Loading Font Files at Runtime Hi, I am trying to load the font from the client machine at runtime but i have no idea how to pass the font URL to Embed Please Help.
RE: [flexcoders] TileList - Items have a border
The renderer has borderStyle=solid. Maybe try none Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anuppc Sent: Tuesday, October 06, 2009 6:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TileList - Items have a border Hi, I have a TileList Here is a Snippet of code tileList = new TileList(); tileList.percentWidth = 100; tileList.percentHeight = 100; tileList.id = picsList; tileList.dataProvider = parentDocument.partListColl; tileList.itemRenderer = createItemRenderer(); tileList.dragEnabled = true; tileList.dragMoveEnabled = false; The ItemRenderer is: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center verticalAlign=middle width=200 height=200 backgroundColor=0xFF borderColor=0x00FF00 borderStyle=solid borderThickness=0 mx:Image id=image width=100 height=100 source=assets/{data.Image} visible=false/ mx:Label text={data.Name} width=100 textAlign=center visible=false / /mx:Panel I still see a black border on all the items in the Tilelist. I'm not sure where this is coming from. I would like to remove this border. Any help welcome. I notice that if i create a Object Array with the same Image and Label. Then i dont have this issue of the border. Regards
RE: [flexcoders] Unloading embeded swf
You would have to access the instance, get its first child (which should be flash.display.Loader) and call unload() on it. You should file a bug so we make this easier to do. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of marcinkg Sent: Tuesday, October 06, 2009 5:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unloading embeded swf I do embed few swf files in my flex 3.4 application. For example there are two flash movies that I use in my preloader. Now, after the prelaoded has done its work, I would want these movies to be garbage collected. However, it does not happen... I have verified it in the flex builder profiler. Does anybody know of a way of disposing embeded swf files after they are not needed any more? FYI, my embedded swf files are plain graphical assets, or simple animations. -Marcin
[flexcoders] Center Canvas Zoom
I am trying to center the zoom rather than zoom to the default registration point 0,0. The following code works to some extent, but repositioning the canvas is not smooth when we change the slider value quickly. Also when we drag the child canvas to a new position and then zoom, the following code repositions the child canvas to the center and zooms, I would like the child canvas to stay where it is and zoom to its center. Code: private var childCanvas:Canvas = new Canvas(); childCanvas.clipContent = false; childCanvas.setStyle(borderStyle, solid); var btn:Button = new Button(); btn.label = Test; btn.x = 10; btn.y = 100; childCanvas.addChild(btn); parentCanvas.addChild(childCanvas); parentCanvas.addEventListener(MouseEvent.MOUSE_DOWN , mouseDownHandler); parentCanvas.addEventListener(MouseEvent.MOUSE_UP,mouseUpHandler); // zoom handler function called when slider value is changed private function zoomHandler():void { childCanvas.scaleX = HSlider.value/100; childCanvas.scaleY = HSlider.value/100; // move to center var parentCanvasCenter:Point = new Point(parentCanvas.width/2,parentCanvas.height/2); var childCanvasCenter:Point = new Point(childCanvas.width/2, childCanvas.height/2); var center:Point = parentCanvasCenter.subtract(childCanvasCenter); childCanvas.move(center.x, center.y); } private function mouseDownHandler(event:MouseEvent):void { childCanvas.startDrag(); } private function mouseUpHandler(event:MouseEvent):void { childCanvas.stopDrag(); } mx:Canvas width=100% height=100% id=parentCanvas backgroundColor=#FF horizontalScrollPolicy=off verticalScrollPolicy=off backgroundAlpha=0 borderStyle=outset/ mx:HSlider id=HSlider showDataTip = true dataTipPlacement=top minimum=10 maximum=100 value = 100 snapInterval=5 change=zoomHandler(); width=300 liveDragging=true / Thanks again..
[flexcoders] Flex Auto Poll Web Services
Hi I have a Online Trading System in Flex 3.0 The charting is updated via Web Services to an ASP.net SQL Server. I'm having trouble figuring out the details to make the Controls, specifically the DataGrid and the OHLC Charts update without a page refresh. The SQL Server is updated with new data every 15 minutes. Here is one Object it's a DataGrid that handles open orders. As an example how do I set this up to auto-poll the SQL server? I think the binding auto-update is fairly easy, it's the polling interval that I'm curious about. This particular control is updated at application creation complete() but the Chart is updated each time a user clicks a Ticker on the DataGrid... A routine to send a request every 10 minutes would work fine for the DataGrid but for the Chart, it's not as easy, as the {DataGrid.seletedItem.Ticker} would be unknown. Any ideas? Example code: creationComplete=initData() mx:WebService id=WsORDERS wsdl=http://www.xxx.net/ORDERS.asmx?WSDL; fault=WsFaultDg(event) mx:operation name=GetOrdEnt result=Orders_result(event) fault=WsORDERSDgOp(event)/ /mx:WebService orders:DgORDERS id=dgorders width=100% height=50% textAlign=center dataProvider={Array_Orders} itemClick=onTick() /orders:DgOrdEnt private function initData():void if (Array_Orders==null) WsOrders.GetOrdEnt.send(); private function onTick4(): void{ dgOrdEnt.selectedItem.Ticker; WsChartVt.GetTickers.send(myentTick.entTick); formOrdEnt.sym = myentTick.entTick; formOrdEnt.getNews(myentTick.entTick);
[flexcoders] Flex Auto Poll Web Services
Hi I have a Online Trading System in Flex 3.0 The charting is updated via Web Services to an ASP.net SQL Server. I'm having trouble figuring out the details to make the Controls, specifically the DataGrid and the OHLC Charts update without a page refresh. The SQL Server is updated with new data every 15 minutes. Here is one Object it's a DataGrid that handles open orders. As an example how do I set this up to auto-poll the SQL server? I think the binding auto-update is fairly easy, it's the polling interval that I'm curious about. This particular control is updated at application creation complete() but the Chart is updated each time a user clicks a Ticker on the DataGrid... A routine to send a request every 10 minutes would work fine for the DataGrid but for the Chart, it's not as easy, as the {DataGrid.seletedItem.Ticker} would be unknown. Any ideas? Example code: creationComplete=initData() mx:WebService id=WsORDERS wsdl=http://www.xxx.net/ORDERS.asmx?WSDL; fault=WsFaultDg(event) mx:operation name=GetOrdEnt result=Orders_result(event) fault=WsORDERSDgOp(event)/ /mx:WebService orders:DgORDERS id=dgorders width=100% height=50% textAlign=center dataProvider={Array_Orders} itemClick=onTick() /orders:DgORDERS private function initData():void if (Array_Orders==null) WsOrders.GetOrdEnt.send(); private function onTick4(): void{ dgOrders.selectedItem.Ticker; WsChart.GetTickers.send(ticker);
[flexcoders] Re: Loading Font Files at Runtime
No the requirement is to allow user to preview fonts without installing it to system.So is there anyway i can load fonts at runtime
[flexcoders] Re: Trees are killing me
Thanks for the response, I have a question for ya. I am dragging with in a tree, how can I get the object that I am dragging and when I drag over something how can I get that object. I am using an arraycollection. Thanks again for the help. timgerr --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I see. You don't want to allow dropping at the top-level. I think you can get the DRAG_OVER event, look at where the mouse is, and call event.preventDefault() Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of timgerr Sent: Monday, October 05, 2009 2:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Trees are killing me I am creating an app that folders are groups and leafs are users. I want users in groups (folders) only. Tim --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: You have folders mixed with non-folders and you only want to allow dropping on the folder rows? Why not allow dropping on the leaf rows? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Monday, October 05, 2009 10:28 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Trees are killing me Hello all, I was wondering if someone could help me. I have a tree with 3 folders, how can I make sure nodes get dropped into the folders? Thank for the look, timgerr
[flexcoders] Looking for Adobe® Flex 3 with AIR Exam # 9A0-082 study material
I have searched the Adobe training site and couldn't find any thing. I have books to learn from but from what I have seen of the practice exam these books only get me started with Flex/AIR. Is there any thing that's a direct study for this exam? Thanks for any help James
RE: [flexcoders] Re: Loading Font Files at Runtime
You can preview any font on the users system as a device font. It just can't be used as embedded unless you want to allow them to upload the font file to your server and generate a module Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of cheran425 Sent: Tuesday, October 06, 2009 8:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Loading Font Files at Runtime No the requirement is to allow user to preview fonts without installing it to system.So is there anyway i can load fonts at runtime
RE: [flexcoders] Re: Trees are killing me
You should be getting DRAG_OVER events. The dragSource contains the object being dragged. You can use mouseEventToItemRenderer to get the renderer you are currently over. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of timgerr Sent: Tuesday, October 06, 2009 8:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Trees are killing me Thanks for the response, I have a question for ya. I am dragging with in a tree, how can I get the object that I am dragging and when I drag over something how can I get that object. I am using an arraycollection. Thanks again for the help. timgerr --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: I see. You don't want to allow dropping at the top-level. I think you can get the DRAG_OVER event, look at where the mouse is, and call event.preventDefault() Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Monday, October 05, 2009 2:18 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Trees are killing me I am creating an app that folders are groups and leafs are users. I want users in groups (folders) only. Tim --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: You have folders mixed with non-folders and you only want to allow dropping on the folder rows? Why not allow dropping on the leaf rows? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of timgerr Sent: Monday, October 05, 2009 10:28 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Trees are killing me Hello all, I was wondering if someone could help me. I have a tree with 3 folders, how can I make sure nodes get dropped into the folders? Thank for the look, timgerr
[flexcoders] embeding fonts of a style (Interstate RegularCondensed)
This has been driving me crazy for quite some time. I'm trying to embed this font: PostScript name Interstate-RegularCondensed Full name Interstate-RegularCondensed Family Interstate Style RegularCondensed KindPostScript Type1 Version 001.000 Location/Library/Fonts/Interstate RegularCondensed Unique name Interstate-RegularCondensed And trying to do so in various ways - both as a class and in css but it's just *not* working. For example, neither this: @font-face { fontFamily: Interstate; fontWeight: normal; fontStyle: RegularCondensed; src: local(Interstate); } nor this: [Embed(systemFont=Interstate, fontName=Interstate, fontStyle=RegularCondensed, mimeType=application/x-font)] private var Interstate:Class; work at all -- I just can't get this simple font to show up; not even as a .ttf locally. I'd be happy to send someone the font and ask them to show me how best to embed it, cause it just ain't liking me