[flexcoders] Re: Multiple popups in flex application
there's a flag to control modality on both createPopUp and addPopUp in the PopUpManager --- In flexcoders@yahoogroups.com, Danish Tehseen [EMAIL PROTECTED] wrote: Is it possible to open multiple popups from different modules, without bluring the background? i.e. non-modal popups. Danish Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] Localized library
Are you getting a compilation error or a runtime error? What exactly does it say? Did you use the copylocale script to create ar_SA framework resources? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of M.Javed Sent: Monday, February 18, 2008 11:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Localized library Hi, First of all thanks for the replies on CSS post which were really helpful. Iam currently developing a library which i want to be localized and based on the localChain property of main application it should display the localized string accordingly. The problem is that it works fine in case of default language i.e. en_US but when i run the application in other locale i.e. ar_SA, it doesnt even find the resource bundle and gets null for that. kinda wiered problem, can anyone plz help? regards, - Javed Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs
[flexcoders] Re: Menu direction: layout submenus to the left instead of right ?
There's a bug on this. Unfortunately, this didn't make it for Flex 3. Voting on bugs is always helpful to let us know what's useful btw. https://bugs.adobe.com/jira/browse/SDK-12409 The bug also includes some ideas on how to implement a workaround to get it to work. -Ryan --- In flexcoders@yahoogroups.com, Arpit Mathur [EMAIL PROTECTED] wrote: I have a popup button on the right extreme of an AIR application. Its menu is a 2/3 submenu level deep. So right now when I rollover a menuitem, its submenu opens on top of it since there is no flash player canvas to the right of the menu. Is there a way to get the submenus to open to the left rather than right ? thanks -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com
[flexcoders] Re: Extending Tree component
Per your original question with the drop lines, there's a method called showDropFeedback() you can override. In the Flex Tree implementation, most of the work is done in a private function, updateDropData, so check that out for what you want to do. I'm not too familiar with the dragComplete mechanism, but it looks like it should get fired by DragProxy in the mouseUpHandler there, so you can see what's going on/why it's not getting fired. Some of the Flex Tree code relies on this, so I'm curious what's going on. In the dragComplete event, event.dragInitiator will give you the tree you're dropping from. this is the tree you're dropping on to. HTH, Ryan --- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: How can i get the Tree control i'm dropping at the DragComplete? raf --- In flexcoders@yahoogroups.com, Rafael Faria rafaelfaria.grupos@ wrote: I read that too but the thing is i need to perform an action after i drop the element, not ondrop. This text suggest that if i'm draging from one tree control to another i should use dragcomplete but extending the tree component, i add the following line to the constructor addEventListener(DragEvent.DRAG_COMPLETE,handleDragComplete); whenever i drag and drop items within the same tree control it fires handleDragComplete function, if i drop from another one, it doesnt. To clarify more, i need to perform an action after i insert an element from another tree to my main tree. How i would do that? DRAG_COMPLETE does the job whithin the same tree control but not sure what i could use to perform an event after the item is inserted at the tree control. --- In flexcoders@yahoogroups.com, Sherif Abdou sherif626@ wrote: off the flex documentation * pBecause of the way data to a Tree control is structured, * the Tree control handles drag and drop differently from the other list-based controls. * For the Tree control, the event handler for the codedragDrop/code event * only performs an action when you move or copy data in the same Tree control, * or copy data to another Tree control. * If you drag data from one Tree control and drop it onto another Tree control * to move the data, the event handler for the codedragComplete/code event * actually performs the work to add the data to the destination Tree control, * rather than the event handler for the dragDrop event, * and also removes the data from the source Tree control. * This is necessary because to reparent the data being moved, * Flex must remove it first from the source Tree control./p Is this what you were sort of asking? - Original Message From: Rafael Faria rafaelfaria.grupos@ To: flexcoders@yahoogroups.com Sent: Monday, February 18, 2008 5:20:03 PM Subject: [flexcoders] Re: Extending Tree component you mean showDropFeedback? Another problem im having is, whenever you try to drop from one tree to another, the event DRAG_COMPLETE or DRAG_EXIT does not works. Any explanation? Alex? --- In [EMAIL PROTECTED] ups.com, Sherif Abdou sherif626@ .. wrote: yes just use a style on it to hide it or just remove it dropIndicatorSkin= {mx.skins. ProgrammaticSkin } or call showFeedBack( ) and hideFeedback( ) - Original Message From: Rafael Faria rafaelfaria. grupos@ . To: [EMAIL PROTECTED] ups.com Sent: Monday, February 18, 2008 4:37:17 PM Subject: [flexcoders] Re: Extending Tree component Nobody? --- In [EMAIL PROTECTED] ups.com, Rafael Faria rafaelfaria. grupos@ . wrote: I'm extending the Tree component and i have had some great progress with it. Somethings still bug me like the place you will drop the item. Whenever you drag an item, a thick black line show marking where will be drop it. The thing is, sometimes i'm positioning the element over the element i want to drop and the line is still on the item above it. The line i'm mentioning is this one: http://www.rafaelfa ria.net/tree. png Is there any way to controle this line? I mean, is there any way to choose exactly the item i want to drop it? Thanks _ _ _ _ _ _ Never miss a thing. Make Yahoo your home page. http://www.yahoo. com/r/hs Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Re: Tree Branch???
Check out dataDescriptor. You should be able to google (or search these forums) for it and get something on how to use this feature. If not, post back. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982 [EMAIL PROTECTED] wrote: Thanks Raf, However, what I need is something called isBranchFunction, in which we can set isBranch property base on e.g. node name. Thanks. --- In flexcoders@yahoogroups.com, Rafael Faria rafaelfaria.grupos@ wrote: actually you can define a function to labelFunction. Check http://blog.flexexamples.com/2007/10/29/defining-a-custom-label-function-on-a-flex-tree-control/ raf --- In flexcoders@yahoogroups.com, xmwang1982 askycn@ wrote: Hi experts, Can we determine the isBranch property of a tree node in a function? I need to set this property according to XML node name. It would be nice if we can define a function like labelFunction. However it seems not existing. I don't want to translate my XML to new XML node lable=... isBranch=.. How to set the property in runtime? Thanks.
[flexcoders] How to apply resize effect to children
Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh
[flexcoders] Re: Tree Branch???
Hi Ryan, Thanks. It seems data decriptor is only for reading properties, not changing. Actually I think my problem is common, for example: Folder lable=1 file name=file1.txt/ Folder lable = 1.1/ /Floder In the xml above, node named Folder should be always displayed as a branch. However, the default of flex tree is, if the node doesn't have sub nodes, display it as leaf. So the question comes up, how to set isBranch property base on node names? Thanks a lot. --- In flexcoders@yahoogroups.com, Ryan Frishberg [EMAIL PROTECTED] wrote: Check out dataDescriptor. You should be able to google (or search these forums) for it and get something on how to use this feature. If not, post back. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982 askycn@ wrote: Thanks Raf, However, what I need is something called isBranchFunction, in which we can set isBranch property base on e.g. node name. Thanks. --- In flexcoders@yahoogroups.com, Rafael Faria rafaelfaria.grupos@ wrote: actually you can define a function to labelFunction. Check http://blog.flexexamples.com/2007/10/29/defining-a-custom-label- function-on-a-flex-tree-control/ raf --- In flexcoders@yahoogroups.com, xmwang1982 askycn@ wrote: Hi experts, Can we determine the isBranch property of a tree node in a function? I need to set this property according to XML node name. It would be nice if we can define a function like labelFunction. However it seems not existing. I don't want to translate my XML to new XML node lable=... isBranch=.. How to set the property in runtime? Thanks.
Re: [flexcoders] How to apply resize effect to children
I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh
Re: [flexcoders] Re: Extending DateField...
On Monday 18 Feb 2008, aceoohay wrote: Is there a way of changing the TextInput component that the DateField component uses to my own TextInput type component? Yes, subclass DateField and override the creation. -- Tom Chiverton Helping to confidentially transition essential m-commerce on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Tree Branch???
set an attribute of 'isBranch=true' on the xml node that you wish to display as a branch ( ie [EMAIL PROTECTED] = true ) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of xmwang1982 Sent: 19 February 2008 08:58 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tree Branch??? Hi Ryan, Thanks. It seems data decriptor is only for reading properties, not changing. Actually I think my problem is common, for example: Folder lable=1 file name=file1.txt/ Folder lable = 1.1/ /Floder In the xml above, node named Folder should be always displayed as a branch. However, the default of flex tree is, if the node doesn't have sub nodes, display it as leaf. So the question comes up, how to set isBranch property base on node names? Thanks a lot. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ryan Frishberg [EMAIL PROTECTED] wrote: Check out dataDescriptor. You should be able to google (or search these forums) for it and get something on how to use this feature. If not, post back. -Ryan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , xmwang1982 askycn@ wrote: Thanks Raf, However, what I need is something called isBranchFunction, in which we can set isBranch property base on e.g. node name. Thanks. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rafael Faria rafaelfaria.grupos@ wrote: actually you can define a function to labelFunction. Check http://blog.flexexamples.com/2007/10/29/defining-a-custom-label- http://blog.flexexamples.com/2007/10/29/defining-a-custom-label- function-on-a-flex-tree-control/ raf --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , xmwang1982 askycn@ wrote: Hi experts, Can we determine the isBranch property of a tree node in a function? I need to set this property according to XML node name. It would be nice if we can define a function like labelFunction. However it seems not existing. I don't want to translate my XML to new XML node lable=... isBranch=.. How to set the property in runtime? Thanks. __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] Fixed Price Contract in Flex with a DataGrid - I never would!
On Monday 18 Feb 2008, mr_j_harris wrote: application: infinite-type UI loops 'and the like' by, say, merely clicking on an empty row below the row that I added via drag-drop. It's like, I don't ever want to take my dog and pony show to the abattoir... I've not seen this particular error. If you've not already, can you submit a small test case into the bug list (bugs.adobe.com/jira) and quote the number back here ? How do other people here feel about being confident in being able to confidently offer fixed price contracts for not-yet-developed software that they would be expected to put together using Flex? I would. I'd have the payments staged over a number of 'sub' releases, but yeah, I feel confident I can predict how long a particular function will take to build. -- Tom Chiverton Helping to vitalistically coordinate real-time platforms on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Localized library
No compilation error, yes I have run copylocale command to generate the resources, it runs successfully, but in case when when i run the application and set its locale chain property to ar_SA from a combo, it doesnt read from the resource bundle in the following piece of code, mx:DataGrid id=dgEnglish dataProvider={xmlMarketStats} dropShadowEnabled=false shadowDistance=0 width=100% verticalGridLines=false headerStyleName=mydataGridHeaderStyle rowCount={dgRowCount} mx:columns mx:DataGridColumn headerText=@Resource(key='Index',bundle='MarketIndexSummaryFeature') dataField=IndexID textAlign=left fontWeight=bold/ mx:DataGridColumn headerText=@Resource(key='IndexName',bundle='MarketIndexSummaryFeature') dataField=IndexName textAlign=left/ mx:DataGridColumn headerText=@Resource(key='Value',bundle='MarketIndexSummaryFeature') dataField=Value labelFunction=FormatValue textAlign=right / mx:DataGridColumn headerText=@Resource(key='NetChange',bundle='MarketIndexSummaryFeature') dataField=NetChange labelFunction=FormatNetChange textAlign=right / mx:DataGridColumn headerText=@Resource(key='PercentChange',bundle='MarketIndexSummaryFeature') dataField=PercentChange labelFunction=FormatPercentChange textAlign=right / /mx:columns /mx:DataGrid MarketIndexSummaryFeature.properties file is present in each folder i.e. local\en_US and locale\ar_SA in this library project. Actually this was working fine when i had built this project as a module, for some requirements i have to shift to library, i havent changed any thing except migrating it to library project only. As u can see in the above datagrid columns, i am picking up column headers from the resources, in en_US case, it picks it, and in ar_SA it doesn't and shows the dataField name as headerText., let me know if I can provide further clarification looking forward. regards, - Javed Gordon Smith [EMAIL PROTECTED] wrote: Are you getting a compilation error or a runtime error? What exactly does it say? Did you use the copylocale script to create ar_SA framework resources? Gordon Smith Adobe Flex SDK Team - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of M.Javed Sent: Monday, February 18, 2008 11:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Localized library Hi, First of all thanks for the replies on CSS post which were really helpful. Iam currently developing a library which i want to be localized and based on the localChain property of main application it should display the localized string accordingly. The problem is that it works fine in case of default language i.e. en_US but when i run the application in other locale i.e. ar_SA, it doesnt even find the resource bundle and gets null for that. kinda wiered problem, can anyone plz help? regards, - Javed - Never miss a thing. Make Yahoo your homepage. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: [flexcoders] Problem with function, Incorrect number of arguments...
On Monday 18 Feb 2008, Eric Cobb wrote: Sorry, I guess I should have specified, that's the exact line that the error refers to. Ahh right. You appear to be calling your own constructor. You don't need to do this. What are you trying to achieve ? -- Tom Chiverton Helping to interactively leverage end-to-end web-readiness on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to apply resize effect to children
thnx peeyush , i'll try that. On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
[flexcoders] cache issue with 'cacheResponse'
Hi all, I am currently working on an AIR product. I am facing the cache issue on images. We are loading around hundreds of images as thumbnails and i am using the below mentioned code : var myLoader:Loader = new Loader(); myLoader.name = loaderObj; var myRequest:URLRequest = new URLRequest(); myRequest.cacheResponse = true; myRequest.useCache = true; myRequest.url = http://xyz.com/abc.jpg; //example image URL myLoader.load(myRequest); After loading once, if again I called the same bunch of images it is taking only from the server and not caching it in local system. Also read in the Adobe Help Resource Center that cacheResponse is only for runtime, and its perfect usage for me. Please let me know if anything to use or check in the code. Regards Siva Shanker
[flexcoders] Re: Grouping Data - need some help
Thanks for the response, In the end the solution was to manually build the hierarchical structure on the client from the flat array and then set it into the ADG using a HierarchichalData object. This was further complicated because initially I was setting an empty structure into the ADG and then updating it using data binding when the data was downloaded. This doesnt work! Regardless of what you invalidate or refresh the ADG just won't update, the only option is to reset the dataProvider each time. --- In flexcoders@yahoogroups.com, Christophe Jolif [EMAIL PROTECTED] wrote: Hi, If all children that pertain to a given group already share the same parent (parentKey) that means the group is kind of already here, it is just that it is not exposed to Flex in manner that please it. Indeed HierarchicalData does not work out its hierarchy from parent relationship (parentKey-key) as you have but from children relationship (childrenField). So you need to expose the relationship that way instead of the other way around. Either you have the ability to change your data to expose them that way which would be the simplest, or you have to find a workaround. Maybe using groupingObjectFunction on your grouping to return the instance of the parent (the one pointed by parentKey) would help? (not tested though) Hope this helps, -- Christophe http://elixir.ilog.com reflexactions wrote: I have a flat data array with the field key and parentKey I am using a GroupedCollection in a ADG. I have set the GC groupingField to be parentKey This group everything by parenKey in a simple fashion but there doesnt seem to be a way to connect parentKey and key together so that it nests the rows correctly. ie the item with key==1 should have nested children that have parentKey==1 How do I do this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Christophe
Re: [flexcoders] Re: Any way to version a swf with major and minor
On Tuesday 19 Feb 2008, essuark wrote: The purpose of a version? Well to find out what version of the product the customer has for one... Right, so embedding the SVN revision number for the top level directory (or better, the SVN tag/branch name) would do ? This has problems, even using svn:keywords means you have to update that file for every build. So why not just have a constant stored in the Model and update it by hand ? 'Course, if you have an automated build process (i.e. ant) you can embed the build date directly - Flex 3 has compiler constants (like -D in gcc). -- Tom Chiverton Helping to greatly maintain holistic eyeballs on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to apply resize effect to children
Hi Peeyush, Actually I was not restricting expansions and contracting , so it was looking too wierd. I'll go for simple resize whith scroll policies off and and % size of child component. That looks good if the duration is not too large. On Feb 19, 2008 5:52 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I havent tride anything else because it worked well for my case. What exactly goes wrong in your app? do components go totally out of their normal size ratio?(can you post a screen shot ) There is a post on application level resizing here http://blogs.adobe.com/aharui/ On Feb 19, 2008 4:57 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] How to apply resize effect to children
I havent tride anything else because it worked well for my case. What exactly goes wrong in your app? do components go totally out of their normal size ratio?(can you post a screen shot ) There is a post on application level resizing here http://blogs.adobe.com/aharui/ On Feb 19, 2008 4:57 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] Grouping Data - need some help
Hi, If all children that pertain to a given group already share the same parent (parentKey) that means the group is kind of already here, it is just that it is not exposed to Flex in manner that please it. Indeed HierarchicalData does not work out its hierarchy from parent relationship (parentKey-key) as you have but from children relationship (childrenField). So you need to expose the relationship that way instead of the other way around. Either you have the ability to change your data to expose them that way which would be the simplest, or you have to find a workaround. Maybe using groupingObjectFunction on your grouping to return the instance of the parent (the one pointed by parentKey) would help? (not tested though) Hope this helps, -- Christophe http://elixir.ilog.com reflexactions wrote: I have a flat data array with the field key and parentKey I am using a GroupedCollection in a ADG. I have set the GC groupingField to be parentKey This group everything by parenKey in a simple fashion but there doesnt seem to be a way to connect parentKey and key together so that it nests the rows correctly. ie the item with key==1 should have nested children that have parentKey==1 How do I do this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Christophe
Re: [flexcoders] How to apply resize effect to children
HI Peeyush I tried that, it works , but doesn't look good. Most irritating is that everything, including blue border which appears on selection is also enlarged. Is there some other way to achieve cool n smooth sliding ? On Feb 19, 2008 3:00 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: I did some work earlier on switching between two fixed resolutions. I may not be totally correct but based on my observations, If you change the scaleX property of the parent layout component, it more or less resizes the child component accurately. (although I had to resize down and up on a button click, rather than on resize event and my child components were simple controls like TextInput etc. ) You can calculate the scaleX dynamically in the resize effect handler. ~Peeyush On Feb 19, 2008 2:41 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: Hi all, I am trying to get some sliding canvas. I am using canvas and resize effects to change it's width. It look ok , but if i put something ( textInput , button etc) on it, those things obviously don't get resize, and give scroll bars while resizing. How to resize including it's children? If i try to resize in % it gives error, how to pass % width height in resize effect ? -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] Fixed Price Contract in Flex with a DataGrid - I never would!
- Original Message - From: mr_j_harris [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, February 18, 2008 10:47 PM Subject: [flexcoders] Fixed Price Contract in Flex with a DataGrid - I never would! You may have seen some of my postings here, concerning my troubles with mx:DataGrid They've changed up somewhat, now I can produce an RTE in my application: infinite-type UI loops 'and the like' by, say, merely clicking on an empty row below the row that I added via drag-drop. It's like, I don't ever want to take my dog and pony show to the abattoir... In light of my experience with software development in general and Flex in particular, I sure am glad I did not offer a fixed price contract for the work I am doing. How do other people here feel about being confident in being able to confidently offer fixed price contracts for not-yet-developed software that they would be expected to put together using Flex? I know I never would! I think that most of the problems I have had with Flex have come from the asynchronous nature of the software and binding dependencies. I can't claim to have attempted what you're doing, but in something like 70,000 Flexcoders posts, your extreme problems seem to be fairly unique. So far any difficullties I have experienced have either been of my own inadvert making, or able to be worked around. One thing is for sure, Flex can bite you in the posterior quite easily, especially coming from other development environments and I think the highly asynchronous nature of Flex coupled with the use of binding is responsible for that. Flex is pretty amazing as a product, though I doubt anyone would understand that from your reported experience. Maybe you should build a small example demonstrating how bad Flex is? Paul
[flexcoders] Re: grouping using XMLListCollection in AdvancedDataGrid
If you set GroupingCollection.source to the XMLListCollection and setup the Grouping and GroupingField properties and call GroupingCollection.refresh it should just work. --- In flexcoders@yahoogroups.com, nikscares4u [EMAIL PROTECTED] wrote: Hi, I am using an XMLListCollection as a dataprovider in AdvancedDataGrid. Is there any way to apply grouping on the AdvancedDataGrid using XMLListCollection. When I try to apply it on the XMLListCollection, it gives an error : Cannot convert XMLListCollection to ArrayCollection Any Idea ? Thanks in advance. Nikunj
[flexcoders] Re: Grouping Data - need some help
Thanks for that, Although our data wasnt xmlbased the concept of what you have done is interesting and useful. tks --- In flexcoders@yahoogroups.com, sreeni_r [EMAIL PROTECTED] wrote: Hi, I had posted a implementation of IHierarchicalData called FlatXMLHD which coverts the kind of flat data (XML) you have mentioned into hierarhcical format. The code and sample is available here http://flexpearls.blogspot.com/2007/12/hierarchicaldata-from-flat- xmllist-data.html -Sreenivas --- In flexcoders@yahoogroups.com, reflexactions reflexactions@ wrote: Thanks for the response, In the end the solution was to manually build the hierarchical structure on the client from the flat array and then set it into the ADG using a HierarchichalData object. This was further complicated because initially I was setting an empty structure into the ADG and then updating it using data binding when the data was downloaded. This doesnt work! Regardless of what you invalidate or refresh the ADG just won't update, the only option is to reset the dataProvider each time.
[flexcoders] Re: Grouping Data - need some help
Hi, I had posted a implementation of IHierarchicalData called FlatXMLHD which coverts the kind of flat data (XML) you have mentioned into hierarhcical format. The code and sample is available here http://flexpearls.blogspot.com/2007/12/hierarchicaldata-from-flat- xmllist-data.html -Sreenivas --- In flexcoders@yahoogroups.com, reflexactions [EMAIL PROTECTED] wrote: Thanks for the response, In the end the solution was to manually build the hierarchical structure on the client from the flat array and then set it into the ADG using a HierarchichalData object. This was further complicated because initially I was setting an empty structure into the ADG and then updating it using data binding when the data was downloaded. This doesnt work! Regardless of what you invalidate or refresh the ADG just won't update, the only option is to reset the dataProvider each time.
[flexcoders] showDataTips are not working for the Datagrid columns having itemRenderers
Hi Flex Friends, Datagrid column having itemRenderer, This itemRenderer class with display one icon and label. showDataTips are not working for the Columns having ItemRenderers. Is there any solution where we can use both showDataTips and ITemRenderer for DataGridColumn Sample code: -DATAGRID- mx:DataGrid mx:columns mx:DataGridColumn dataField=Artist headerText=Artist/ mx:DataGridColumn dataField=Price headerText=Price showDataTips=true dataTipFunction=showTrunkatedText1/ mx:DataGridColumn dataField=Album headerText=Album showDataTips=true dataTipFunction=showTrunkatedText itemRenderer=myItemRendererClass/ /mx:columns /mx:DataGrid -ItemRenderer class- ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; verticalScrollPolicy=off horizontalScrollPolicy=off verticalAlign=middle mx:HBox mx:Image source=@Embed (source='ICO16_INFORMATION.png')/ mx:Label text={data.Album}/ /mx:HBox /mx:HBox Thanks in Advance. Satya
[flexcoders] The width change works in Flash CS3 but not in Flex
// ActionScript file package{ import mx.core.UIComponent; public class Tint extends UIComponent{ public function Tint():void{ graphics.beginFill(0x9fe9c9,1); graphics.drawRect(0,0,100,100); width=300; } } }
[flexcoders] BubbleChart bubble selection
Hello! I've got a DataGrid and a BubbleChart using the same dataProvider. What I would like to do is when a row is selected in the grid, visually bring attention to the corresponding bubble - however I can't find a way to get at a particular bubble to make changes on it. Please help me!
Re: [flexcoders] Implementing Office 2007 menus
Tom, I'm pretty sure the 120+ page instructions on how to implement the Ribbon go into a lot more detail than a button inside a TileList inside a TabNavigator. And no, not kidding, if you actually copy the UI then you have to license it from MS. Sam On Feb 18, 2008 5:45 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 15 Feb 2008, Samuel Neff wrote: you were not aware, you need to license the UI from MS before implementing it yourself. They're kidding right ? A licence to use a tab navigator containing a TileList of Button ? Yeah, right... -- Tom Chiverton
Re: [flexcoders] Re: Any way to version a swf with major and minor
Here's a C# class we use to parse out SVN info from the working copy .svn folders. Once we have this a simple regex replace is used on the version.asfile within our build script. Some build toold like cruse control.net provide version stamping built in. Ant might do it as well, not sure. HTH, Sam using System; using System.Collections.Generic; using System.IO; namespace { public class SvnInfo { #region Data private string _workingCopy; private int _format; private int _revision; private string _url; private string _rootUrl; #endregion #region Parse public static SvnInfo Parse() { return Parse(Environment.CurrentDirectory); } public static SvnInfo Parse(string path) { if (String.IsNullOrEmpty(path)) { throw new ArgumentNullException(path); } if (!Directory.Exists(path)) { throw new ArgumentException(The specified path does not exist., path); } SvnInfo info = new SvnInfo(); info._workingCopy = path; string svnPath = Path.Combine(path, .svn); if (!Directory.Exists(svnPath)) { svnPath = Path.Combine(path, _svn); if (!Directory.Exists(svnPath)) { throw new ArgumentException( The specified path is not a subversion working copy--no '.svn' or '_svn' subdirectory found., path); } } string entriesPath = Path.Combine(svnPath, entries); if (!File.Exists(entriesPath)) { throw new ArgumentException( The specified path is not a recognized subversion working copy--no entries file found., path); } Liststring lines = new Liststring(5); using (StreamReader reader = new StreamReader(entriesPath)) { string line; int i = 6; while ( (line = reader.ReadLine()) != null i-- 0) { lines.Add(line); } } info._format = info.ParseInt(lines[0]); info._revision = info.ParseInt(lines[3]); info._url = lines[4]; if (lines.Count 5) { info._rootUrl = lines[5]; } return info; } private int ParseInt(string text) { int i; if (int.TryParse(text, out i)) { return i; } throw new ArgumentException( String.Format( The specified path is not a recognized subversion working copy--expected a number but found '{0}'., text), _workingCopy); } #endregion #region Properties public string WorkingCopy { get { return _workingCopy; } } public int Format { get { return _format; } } public int Revision { get { return _revision; } } public string Url { get { return _url; } } public string RootUrl { get { return _rootUrl; } } #endregion } } On Feb 18, 2008 8:34 PM, essuark [EMAIL PROTECTED] wrote: That is a pretty good idea... Any place you can point me to that show this scripting build process?
RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders
Actually, there was another component in my program doing essentially the same thing (i.e. allowing users to go up and down from year to month) and not having the problem. I realized that for that component I was only loading the xml once. In this one that I was recently having problems with, was grabbing the entire years xml every time they changed month. I rewrote it to only load at startup and the problem disappeared. Do you know of any tutorials or code samples for usint the progress bar? I was using show busy but the show busy clock was showing longer than just waiting for the xml to load. Is there a way to shut the busy cursor off or put a timer on it? brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Randy Martin Sent: Sunday, February 17, 2008 1:28 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders Put a progress bar in a model popup window when you call the data provider routine. Add a listener for the result event from the data provider routine, and take the model popup down when you finish processing the result from your data provider. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche Sent: Sunday, February 17, 2008 8:20 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders Well really I think the problem could be solved (1 way anyway) by just telling it not to move to the next view (viewstack) until my initDataDrovider function finishes. Is there a way to do this? I'm not used to things operating in parallel. I need the program to wait until the dataprovider function returns. brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Saturday, February 16, 2008 6:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders can you do some sort of mockup file, you can always try to call any of the validation methods and see if that works - Original Message From: Brad Bueche [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, February 16, 2008 3:12:13 PM Subject: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders I have a chart that, at year level, allows users to drill down into individual months. The problem is that if the user drills down into march, then comes back up to the year level (via viewstack bread-crumb trail button), and then drills down into October, for a spilt second the march data will still be on the screen. I have been knocking my head against the wall all day (on a weekend!) trying to prohibit the old data from continuing to show until the new data is rendered but I cant get anything to work. Any ideas? brad _ Looking for last minute shopping deals? Find http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsear ch/category.php?category=shopping them fast with Yahoo! Search. No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.20.7/1283 - Release Date: 2/16/2008 2:16 PM
[flexcoders] Re: grouping using XMLListCollection in AdvancedDataGrid
I have already done that but it still gives the same error. Here the dataProvider is an XMLListCollection. Here is the code mygroup.source = XMLListCollection(datagrid.dataProvider); var group:Grouping = new Grouping(); var gf:GroupingField = new GroupingField(PRICE); mygroup.grouping = group; mygroup.refresh(); Regards, Nikunj --- In flexcoders@yahoogroups.com, sreeni_r [EMAIL PROTECTED] wrote: If you set GroupingCollection.source to the XMLListCollection and setup the Grouping and GroupingField properties and call GroupingCollection.refresh it should just work. --- In flexcoders@yahoogroups.com, nikscares4u nikscares4u@ wrote: Hi, I am using an XMLListCollection as a dataprovider in AdvancedDataGrid. Is there any way to apply grouping on the AdvancedDataGrid using XMLListCollection. When I try to apply it on the XMLListCollection, it gives an error : Cannot convert XMLListCollection to ArrayCollection Any Idea ? Thanks in advance. Nikunj
[flexcoders] Re: Complex chart application - general performance issues.
Thanks for the advice Jim, you've given me plenty of ideas for things to try! Iain --- In flexcoders@yahoogroups.com, Jim Cheng [EMAIL PROTECTED] wrote: Hi Iain, I've been working a project quite similar to yours for a while now have encountered the same issues, particularly when handling large data sets (e.g. 1000+ items) with the Adobe Flex charting components, even if only a small subset is being displayed. The core performance issue that I've found is that some parts of the charting framework, particularly the axes and transforms, utilize rather inefficient algorithms that scale poorly with increasing data set size. As a result, while several series consisting of a handful of points can be drawn very quickly, the framerate becomes unacceptably slow if you are plotting multiple series consisting of hundreds of points of each. For best performance with large data sets, you must either reduce the size of data that you're passing into the charts or replace these algorithms with more efficient implementations. A lot of Adobe's code runs in O(n) or worse time. You don't want this. In my case, the solution isn't particularly pretty or fun. I ended up with a blend of different approaches to reduce the total workload needed to calculate and render the charts. First off, you'll realize the biggest gain by culling the number of data points passed to your chart(s), either by lowering the chart resolution with sparser data points or pre-culling the points that will not be displayed on the chart from its data provider rather than depending on the chart to do this via setting the minimum and maximum properties. The charting framework does not do this calculation in a very efficient manner, you're better off doing this yourself externally or overriding it in a subclass with a more efficient search scheme (e.g. a binary search tree). The same is true for various other chart calculations, including the automatic calculation of minimum and maximum values for computing axial ranges--you can save quite a few cycles here if you can compute this more efficiently than iterating through the entire data provider (e.g. better selection algorithms). Depending on how you're using the charting framework, you'll be best served by profiling your application using the Flex Profiler and looking for hotspots where you might be able to make overriding changes to reduce the magnitude of the calculation. This being done, be very sure that you're not redrawing your charts more often than absolutely necessary. This can't really be helped much if you're animating your chart, so you may want to reduce this to a minimum or perhaps drop down to a sparser data set when animating. Also, if you're doing a lot of subclassing, be sure that you're only drawing what truly needs to be updated--in my case, I've found that my class may not always need a redraw even if it is notified as such. In some cases, intelligent caching here may also help in reduce the computational load. Last, if you need to do complex and time-consuming calculation loops that consume more than several dozen milliseconds or so (and will consequently pull down your framerate), consider breaking up your loop across multiple frames. There are several ways you can do this, perhaps with a visitor pattern or by breaking out of your loop after so many iterations and storing your variables such that further execution can be resumed on the next frame. Hope this helps, Jim Cheng EffectiveUI
[flexcoders] BlazeDS mailing list?
Is there a (pseudo)official developer mailing list for BlazeDS? Having a list with for Blaze with similar involvement by Adove as with the flexcoders list would be very helpful. I imagine the Blaze team is very busy right now so maybe someone thought of this and it's just not a high priority. - Dan Freiman
Re: [flexcoders] Implementing Office 2007 menus
On Tuesday 19 Feb 2008, Jeffry Houser wrote: I was thinking of creating a Ribbon Component for Flex, but on the surface it is unclear how this would be different than a TabNavigator. I guess I'd have to read those 120+ pages. It looks like it has some logic where by if the width isn't enough to show the icons, right most buttons turn into text labels and stack on top of each other (remember the ribbon is 3 text lines high). Fails the 'non obvious' patent test, so I'd have no qualms about using it, personally. But the MS gorilla can always afford to tie you up in court for far longer than your bank can stomach, so you might want to use a UI that your users are familiar with instead. 'Course this is exactly what MS wants to achieve - making you afraid to compete. I also happen to think that making your (Offices') users have to throw away all they've learnt about using (Windows) GUIs is a bad move too. -- Tom Chiverton Helping to greatly exploit user-centric solutions on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Any way to version a swf with major and minor
On Tuesday 19 Feb 2008, simonjpalmer wrote: I would use a unique and incrementing build number rather than the latest svn rev unless your build process locks the repository, labels it and uses the rev of the label for the build number. SVN can roll forward/back by date, so build time would be good enough for us. control rev number against every bug fix and every bug number against every rev, that way you can effectively cross-reference your source code, your builds/releases and your bugs. If the other half of IT, in their wisdom, had bought a bug tracking system that was actually useful, we would, yes :-) This probably all sounds like overkill but it is not really, it is just a bit of discipline in development which makes release management and subsequent bug tracking much easier. We're still chewing internally about the best way to get Builder to help us with this. We don't want to have to maintain separate (to Builders compile dialog) ant/command line compile commands, and cruise control seems *way* over kill. OTOH we don't want to have a situation where a release build means a tag, checkout of tag, build either because it feels like it would be a lot of work. -- Tom Chiverton Helping to greatly deploy user-centric networks on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Immediate Requirement in Testing
Designation: Testing consultant] Location: Calcutta Job Type: Contract Experience: 3Years Salary : Attractive Skills Required: 1. Person must have good knowledge on rad-view web load product, 2. Person must have 3yrs of exp, and can take up a training and handhold a team 3. Good communication skill Those who are interested please send your CV to [EMAIL PROTECTED]
Re: [flexcoders] how do I get displayobjects under mouse
displayObjectContainer.getObjectsUnderPoint() - Dan Freiman On Feb 19, 2008 2:11 AM, dsds99 [EMAIL PROTECTED] wrote: Was wondering if there is a function available in as3 Like Mouse.getObjects or something that will return a list of displayobjects that is currently under the mouse..hmmm
[flexcoders] Re: Any way to version a swf with major and minor
...that's what CruiseControl is for. Updating versions by hand is not reliable enough and there's nothing worse than not knowing which version of code is in which build. This goes for testing just as much as for customers logging issues. If you have appropriate separation between your developers and Testers then every bug should be logged against a version/build number in which it appears and every fix should be logged against a version/build number in which it will emerge. The testers should only be using builds that come from an official manufacturing process outside development whose responsibility it is to update the version/build numbers. These folks run the ANT scripts in a clean environment. I would use a unique and incrementing build number rather than the latest svn rev unless your build process locks the repository, labels it and uses the rev of the label for the build number. A build number also makes your job a little easier because you can look back and know that there were no intermediate builds between 2.1.12 and 2.1.13 rather than 2.1.4653 and 2.1.4825. I strongly recommend going one step further and logging every source control rev number against every bug fix and every bug number against every rev, that way you can effectively cross-reference your source code, your builds/releases and your bugs. This probably all sounds like overkill but it is not really, it is just a bit of discipline in development which makes release management and subsequent bug tracking much easier. Once your developers get in the habit of doing it they'll not be able to live without it. And when it saves your life in a situation with a customer you'll legislate it in every subsequent project you work on. If you have any aspirations for your products to be sold into, used by, or partnered with large organisations you'll have to have these processes to effectively track your product iterations. If you ever sell into Government (esp. defense/security) you'll need them documented for audit purposes. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 19 Feb 2008, essuark wrote: The purpose of a version? Well to find out what version of the product the customer has for one... Right, so embedding the SVN revision number for the top level directory (or better, the SVN tag/branch name) would do ? This has problems, even using svn:keywords means you have to update that file for every build. So why not just have a constant stored in the Model and update it by hand ? 'Course, if you have an automated build process (i.e. ant) you can embed the build date directly - Flex 3 has compiler constants (like -D in gcc). -- Tom Chiverton Helping to greatly maintain holistic eyeballs on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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] Tabbing to links in htmlText
I don't think links in text can get focus (someone correct me if I'm wrong here). If that is true than your only other option would be to highlight the text programatically, which wouldn't give you any extra functionality beyond the highlighting itself. Is that a functionality you want? - Dan Freiman On Feb 19, 2008 9:41 AM, Giles Roadnight [EMAIL PROTECTED] wrote: Hi All We have to be able to tab to all buttons / links ect in the flex application. We have am html text field with a Privacy Policy link in it. At the moment you can't tab to it. Is there a way to do this? Thanks Giles
[flexcoders] Fwd: functional tooltips on TextRange objects
just bumping this up, anyone have any ideas on how to add tooltips to non uicomponent objects like TextRange? -- Forwarded message -- From: Derrick Anderson [EMAIL PROTECTED] Date: Feb 14, 2008 2:15 PM Subject: functional tooltips on TextRange objects To: flexcoders@yahoogroups.com hi, i'd like to be able to put a tooltip on certain words in an RTE. Specifically on a given textrange (example: all blue words would have a tooltip). Has anybody seen this done? If tooltips can be used by anything that extends UIComponent (which TextRange does not), what's the easiest way to make that happen? And on a second note, i'd like to put a button in my tooltip too- anybody seen any examples of that around? thanks, d.
[flexcoders] How to Use Flex's Default Icons
Hi all, I would like to know how to use flex's default / internal icons/gifs in my custom components. ( irrespective of imports). thanx in advance -- Regards, Yogesh
[flexcoders] Re: BubbleChart bubble selection
here's an idea if you have a strongly typed domain model... 1) create yourself a bubble item renderer 2) override set data() 3) add a transient variable to the objects in your domain model which are in the data provider 4) in the set data() override get the bubble renderer to put itself onto the domain object passed in from the dataprovider 5) when selected in the grid, get the selectedItem and you should have the bubble item renderer 6) change some property of the renderer to hilight it that's one way of doing it, I'm sure there are others. You can probably iterate over some renderers collection on the chart looking for your data. --- In flexcoders@yahoogroups.com, linko27 [EMAIL PROTECTED] wrote: Hello! I've got a DataGrid and a BubbleChart using the same dataProvider. What I would like to do is when a row is selected in the grid, visually bring attention to the corresponding bubble - however I can't find a way to get at a particular bubble to make changes on it. Please help me!
Re: [flexcoders] Tabbing to links in htmlText
I was worried that would be the case. It's for accessibility - we need to be able to tab to everything and activate it with the space bar. On Feb 19, 2008 3:00 PM, Daniel Freiman [EMAIL PROTECTED] wrote: I don't think links in text can get focus (someone correct me if I'm wrong here). If that is true than your only other option would be to highlight the text programatically, which wouldn't give you any extra functionality beyond the highlighting itself. Is that a functionality you want? - Dan Freiman On Feb 19, 2008 9:41 AM, Giles Roadnight [EMAIL PROTECTED] wrote: Hi All We have to be able to tab to all buttons / links ect in the flex application. We have am html text field with a Privacy Policy link in it. At the moment you can't tab to it. Is there a way to do this? Thanks Giles -- Giles Roadnight http://giles.roadnight.name
[flexcoders] Stage Quality of Flex App automatically changes zu LOW
Hi there. I have an issue with setting the stage quality of the flashplayer to high which is default. I set the quality in my HTML-Container to HIGH and in my flex application with stage.quality = StageQuality.HIGH; But after a couple of seconds the quality automatically changes to low. Is this a bug? I'm using Flexbuilder 3b3.
[flexcoders] flash.net.socket : lost messages
Hi, Using class flash.net.socket connected to a python stackless TCP server, i'm experiencing the following problem: when tcp server send multiple messages to the client, the first message is handle correctly but the following are lost. I have no trace of the lost messages on the client. The network traffic is Ok, all messages are sent to the client. If i introduce a timer on the server side, sending 1 message/second, they are handled correctly by the client. The client code is standard : class CustomSocket extends Socket { public function CustomSocket(host:String = null, port:uint = 0) { super(host, port); addEventListener(ProgressEvent.SOCKET_DATA, socketDataHandler); } private function socketDataHandler(event:ProgressEvent):void { trace(socketDataHandler: + event); trace(readUTFBytes(bytesAvailable)); } } -- Did somebody experienced the same problem ?
[waran] 税务代理
__._,_.___ Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Menu direction: layout submenus to the left instead of right ?
Thanks. Voted. On Feb 19, 2008 3:18 AM, Ryan Frishberg [EMAIL PROTECTED] wrote: There's a bug on this. Unfortunately, this didn't make it for Flex 3. Voting on bugs is always helpful to let us know what's useful btw. https://bugs.adobe.com/jira/browse/SDK-12409 The bug also includes some ideas on how to implement a workaround to get it to work. -Ryan --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Arpit Mathur [EMAIL PROTECTED] wrote: I have a popup button on the right extreme of an AIR application. Its menu is a 2/3 submenu level deep. So right now when I rollover a menuitem, its submenu opens on top of it since there is no flash player canvas to the right of the menu. Is there a way to get the submenus to open to the left rather than right ? thanks -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com
[flexcoders] Default Application background color during intialization
When my flex application initializes it ignores the background color I have set on my application tag. I get the default gray/green color with a initializing progress bar. Why does it not use my application background colors during load? ?xml version=1.0 encoding=utf-8? mx:Application pageTitle=ePaceStation Editor xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% backgroundSize=100% xmlns:views=views.* xmlns:navigator=navigators.* xmlns:components=components.* xmlns:Extended=org.pace2020.appbox.components.* creationComplete=creationCompleteHandler(); backgroundColor=#ff backgroundImage= Jerry DuVal Pace Systems Group, Inc. 800.624.5999 www.Pace2020.com
[flexcoders] Re: Problem with focus in secondary popups
Hi guys, it's me again. Still with my boring focus problem. Ralf reflexactions - I've learnt how to place focus in the control in the popup. But bloody hell - the TAB focus is still in the parent popup. So, if I subscribe for ESC key in the third popup - everything is OK, everybody is happy. But if I press TAB - it just goes in the popup underneath. PS Due to the Flex memory leaks/perfomance issues/garbage collector laziness I've created the caching popup manager which worsen the problem. Popup is being created only once and then it will be reused. So instead of creationComplete event in the reused popup I am listening for updateComplete events and you will be surprised that setting focus methods are different for existing windows. Does anyone know how to set TAB focus as well? Thanks, Dmitri --- In flexcoders@yahoogroups.com, reflexactions [EMAIL PROTECTED] wrote: Yep thats what we do. --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: You could dispatch a close event to the view, which opened the popup Cheers Ralf. On Sat, Feb 16, 2008 at 1:38 PM, Dmitri Girski mitek17@ wrote: Thank you, Alex and reflexactions! Your advices helped to move forward I can create popups and set focus without a problem. But there is another thing - I have to return focus correctly to the first popup window after second third popups closed in one click. Cheers, Dmitri. -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany
RE: [flexcoders] Default Application background color during intialization
On Tuesday 19 Feb 2008, Jerry DuVal wrote: initializing progress bar. Why does it not use my application background colors during load? Could your HTML wrapper be setting this ? -- Tom Chiverton Yep, that was it! Thanks
Re: [flexcoders] Datagrid headers without separators
On Tuesday 19 Feb 2008, Aasim wrote: I need to create a Datagrid without the separators in the datagrid headers. I have seen that there is a protected function clearSeparators() Can this be used? If it's protected, you can only call it from a subclass. So create a sub class with a public method doClearSperators() and have that call clearSperatators(). -- Tom Chiverton Helping to competently consolidate intuitive CEOs on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Tabbing to links in htmlText
Hi All We have to be able to tab to all buttons / links ect in the flex application. We have am html text field with a Privacy Policy link in it. At the moment you can't tab to it. Is there a way to do this? Thanks Giles
Re: [flexcoders] Implementing Office 2007 menus
I was thinking of creating a Ribbon Component for Flex, but on the surface it is unclear how this would be different than a TabNavigator. I guess I'd have to read those 120+ pages. Samuel Neff wrote: Tom, I'm pretty sure the 120+ page instructions on how to implement the Ribbon go into a lot more detail than a button inside a TileList inside a TabNavigator. And no, not kidding, if you actually copy the UI then you have to license it from MS. Sam On Feb 18, 2008 5:45 AM, Tom Chiverton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Friday 15 Feb 2008, Samuel Neff wrote: you were not aware, you need to license the UI from MS before implementing it yourself. They're kidding right ? A licence to use a tab navigator containing a TileList of Button ? Yeah, right... -- Tom Chiverton -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] why is measureHeight in ApplicationBackground 8?
anyone? - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 12:00:26 AM Subject: [flexcoders] why is measureHeight in ApplicationBackground 8? in import mx.skins.halo. ApplicationBackg round; /** * @private */ override public function get measuredHeight( ):Number { return 8; } why 8? or where did that number come from. Thanks Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Re: Flex Ant with external assets
Thanks Gaurav, Here is my directory structure for multiple projects. --- include - assets - img | |- test | |- test1 | |- test2 test, test1, and test2 are flex projects and sharing assets in the 'include' folder. And, the ant task is ?xml version=1.0 encoding=utf-8? project name=Builder basedir=. taskdef resource=flexTasks.tasks classpath=flexTasks.jar / property name=FLEX_HOME value=C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.0.0/ property name=APP_ROOT value=C:/Projects/test/src/ property name=ASSETS value=C:/Projects/include/ property name=DEPLOY_DIR value=C:/Projects/WebContent/ target name=main mxmlc file=${APP_ROOT}/test.mxml output=${DEPLOY_DIR}/test.swf actionscript-file-encoding=UTF-8 incremental=true load-config filename=${FLEX_HOME}/frameworks/flex- config.xml/ source-path path-element=${FLEX_HOME}/frameworks/ compiler.library-path dir=${FLEX_HOME}/frameworks append=true include name=libs / include name=../bundles/locale} / /compiler.library-path source-path path-element=${ASSETS} / /mxmlc /target /project --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: Can you show the complete ant task target? I suspect that the parent folder of assets is not specified in the source path. Thanks, Gaurav --- In flexcoders@yahoogroups.com, kp_gem jamesyoon72@ wrote: Hi, Is there any way to include external assets to Flex Ant Tasks (mxmlc)? I am working on multiple flex projects and want to share 1 single central assets. However, I couldn't find a way in Flex Ant and I got an following error. [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to resolve '/assets/img/1.gif' for transcoding [mxmlc] [mxmlc] [Embed(source=/assets/img/1.gif)] But, when I compiled in Flex Builder, it worked ok. Or, please let me know if there is work around to share assets. Thanks
[flexcoders] Terminating a function
How do you terminate or stop a function in Flex 2.0? Thanks
RE: [flexcoders] Re: Example of Object.isPrototypeOf ()
Very clever! I didn't know that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alan Shaw Sent: Monday, February 18, 2008 7:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Example of Object.isPrototypeOf () Actually I believe I have a real use case for isPrototypeOf(). Suppose you want to determine if classB is derived from classA without instantiating anything. if (classA.prototype.isPrototypeOf(classB.prototype)) { trace(yes!); } -A On Feb 15, 2008 6:57 PM, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It's definitely not a dumb question, but it is fairly irrelevant. You probably don't need to understand prototype chains to be a good Flex programmer. I can't find a single place in any of our Flex components that we call isPrototypeOf(), so its unlikely that you need to call it either. (That said, we do use prototype chains to implement fast CSS style lookup with getStyle().) If you're curious about prototype-based inheritance, see http://en.wikipedia.org/wiki/Prototype-based_programming http://en.wikipedia.org/wiki/Prototype-based_programming . Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Roscoe P Coltrane Sent: Friday, February 15, 2008 10:04 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Example of Object.isPrototypeOf () What exactly does it mean when the Flex doco says: This method returns true if the object is in the prototype chain of the object specified by the the Class parameter. What does prototype chain mean here? Sorry for my ignorance if this is a dumb question. And are you saying this is an obsolete method? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: Flex makes almost no use of AS3's old-style prototype-based inheritance; it uses the new class-based inheritance. If by descendant you mean instance of, use the 'is' operator: var b:Button = new Button(); trace(b is UIComponent); // -- true Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Roscoe P Coltrane Sent: Thursday, February 14, 2008 6:15 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Example of Object.isPrototypeOf () Could someone give me a working or semi-working example of how/when to use isPrototypeOf()? I was thinking that I could query an object and if it was a descendent of another object, [the argument to isPrototypeOf()], the method would return true. Not so :) Obviously I don't understand the usage of this method. Thanks, Roscoe
RE: [flexcoders] Drawing in Panel Insanity
I thought about that, but it's much further off that what that could possibly be. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); reposition(); measuredWidth = unscaledWidth; measuredHeight = unscaledHeight; } override protected function measure():void { var rect:Rectangle = getBounds(this); measuredWidth = rect.width; measuredHeight = rect.height; var flowchartRect:Rectangle = getBounds(_flowchart); _flowchartWidth = flowchartRect.width; _flowchartHeight = flowchartRect.height; } private function reposition(e:Event):void { measure(); _flowchart.x = (width/2)-(_flowchart/2); _flowchart.y = (height/2)-(_flowchart/2); } Thanks, Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx .
[flexcoders] Re: Is it possible to have 2 children of viewstack visible?
Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In flexcoders@yahoogroups.com, Max Frigge [EMAIL PROTECTED] wrote: Hi, I am trying to create a slide effect for a ViewStack. Therefor I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? I want something like this: ?xml version=1.0? !-- containers\navigators\VSLinkEffects.mxml -- mx:Parallel id=toSecond mx:Move duration=400 xFrom={search.x} xTo={search.width} target={search}/ mx:Move duration=400 xFrom={-custInfo.width} xTo={custInfo.x} target={custInfo}/ /mx:Parallel mx:ViewStack id=myViewStack borderStyle=solid width=200 creationPolicy=all mx:Canvas id=search label=Search mx:Label text=Search Screen/ /mx:Canvas mx:Canvas id=custInfo label=Customer Info mx:Label text=Customer Info/ /mx:Canvas /mx:ViewStack mx:Button click=toSecond.play() label=Play Effect / /mx:Application Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] Re: Is it possible to have 2 children of viewstack visible?
I doubt it's possible. Having two visible doesn't really fit with the idea of a stack. Why not roll your own component? Paul - Original Message - From: m.frigge [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 5:40 PM Subject: [flexcoders] Re: Is it possible to have 2 children of viewstack visible? Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In flexcoders@yahoogroups.com, Max Frigge [EMAIL PROTECTED] wrote: Hi, I am trying to create a slide effect for a ViewStack. Therefor I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? I want something like this: ?xml version=1.0? !-- containers\navigators\VSLinkEffects.mxml -- mx:Parallel id=toSecond mx:Move duration=400 xFrom={search.x} xTo={search.width} target={search}/ mx:Move duration=400 xFrom={-custInfo.width} xTo={custInfo.x} target={custInfo}/ /mx:Parallel mx:ViewStack id=myViewStack borderStyle=solid width=200 creationPolicy=all mx:Canvas id=search label=Search mx:Label text=Search Screen/ /mx:Canvas mx:Canvas id=custInfo label=Customer Info mx:Label text=Customer Info/ /mx:Canvas /mx:ViewStack mx:Button click=toSecond.play() label=Play Effect / /mx:Application Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Drawing in Panel Insanity
You're going to have to account for that either way. On Feb 19, 2008 12:37 PM, Merrill, Jason [EMAIL PROTECTED] wrote: I thought about that, but it's much further off that what that could possibly be. Jason Merrill *Bank of America * GTO LLD Solutions Design Development eTools Multimedia *Bank of America Flash Platform Developer Community* *Interested in innovative ideas in Learning? Check out the* *GTO Innovative Learning Blog*http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx ** and *subscribe*http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLists%2FPosts%2FArchive%2Easpx . -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Eric Cancil *Sent:* Tuesday, February 19, 2008 12:36 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); reposition(); measuredWidth = unscaledWidth; measuredHeight = unscaledHeight; } override protected function measure():void { var rect:Rectangle = getBounds(this); measuredWidth = rect.width; measuredHeight = rect.height; var flowchartRect:Rectangle = getBounds(_flowchart); _flowchartWidth = flowchartRect.width; _flowchartHeight = flowchartRect.height; } private function reposition(e:Event):void { measure(); _flowchart.x = (width/2)-(_flowchart/2); _flowchart.y = (height/2)-(_flowchart/2); } Thanks, Jason Merrill *Bank of America * GTO LLD Solutions Design Development eTools Multimedia *Bank of America Flash Platform Developer Community* *Interested in innovative ideas in Learning? Check out the* *GTO Innovative Learning Blog*http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx ** and *subscribe*http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLists%2FPosts%2FArchive%2Easpx .
[flexcoders] Drawing in Panel Insanity
So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); reposition(); measuredWidth = unscaledWidth; measuredHeight = unscaledHeight; } override protected function measure():void { var rect:Rectangle = getBounds(this); measuredWidth = rect.width; measuredHeight = rect.height; var flowchartRect:Rectangle = getBounds(_flowchart); _flowchartWidth = flowchartRect.width; _flowchartHeight = flowchartRect.height; } private function reposition(e:Event):void { measure(); _flowchart.x = (width/2)-(_flowchart/2); _flowchart.y = (height/2)-(_flowchart/2); } Thanks, Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx .
[flexcoders] Re: Drawing in Panel Insanity
Jason, A couple things: 1. You might try putting this inside a canvas within the Panel. 2. Not knowing the bigger picture of your component it's hard to tell exactly, but if the Panel container is inside of the component and not the base of the component, your measure function is getting the boundaries of the whole component, not just the Panel container. var rect:Rectangle = getBounds(this); If this is not the Panel container, then that could explain your results. --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: I thought about that, but it's much further off that what that could possibly be. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew .a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D% 7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog% 2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle (borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); reposition(); measuredWidth = unscaledWidth; measuredHeight = unscaledHeight; } override protected function measure():void { var rect:Rectangle = getBounds(this); measuredWidth = rect.width; measuredHeight = rect.height; var flowchartRect:Rectangle = getBounds(_flowchart); _flowchartWidth = flowchartRect.width; _flowchartHeight = flowchartRect.height; } private function reposition(e:Event):void { measure(); _flowchart.x = (width/2)-(_flowchart/2); _flowchart.y = (height/2)-(_flowchart/2); } Thanks, Jason Merrill Bank of America GTO LLD Solutions Design Development eTools
RE: [flexcoders] Drawing in Panel Insanity
I understand, and I'm doing that. ;) I discovered I was calculating based on the UIComponent's size, and not the Panel's size, stupid. Thanks, I almost have it working now. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're going to have to account for that either way. On Feb 19, 2008 12:37 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I thought about that, but it's much further off that what that could possibly be. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function
[flexcoders] Re: Tree Branch???
It is a little confusing, but dataDescriptor is not a read-only property. You can create a custom data descriptor by extending DefaultDataDescriptor (changing isBranch to what you want) and setting your Tree's dataDescriptor to that class. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982 [EMAIL PROTECTED] wrote: Hi Ryan, Thanks. It seems data decriptor is only for reading properties, not changing. Actually I think my problem is common, for example: Folder lable=1 file name=file1.txt/ Folder lable = 1.1/ /Floder In the xml above, node named Folder should be always displayed as a branch. However, the default of flex tree is, if the node doesn't have sub nodes, display it as leaf. So the question comes up, how to set isBranch property base on node names? Thanks a lot. --- In flexcoders@yahoogroups.com, Ryan Frishberg rfrishbe@ wrote: Check out dataDescriptor. You should be able to google (or search these forums) for it and get something on how to use this feature. If not, post back. -Ryan --- In flexcoders@yahoogroups.com, xmwang1982 askycn@ wrote: Thanks Raf, However, what I need is something called isBranchFunction, in which we can set isBranch property base on e.g. node name. Thanks. --- In flexcoders@yahoogroups.com, Rafael Faria rafaelfaria.grupos@ wrote: actually you can define a function to labelFunction. Check http://blog.flexexamples.com/2007/10/29/defining-a-custom-label- function-on-a-flex-tree-control/ raf --- In flexcoders@yahoogroups.com, xmwang1982 askycn@ wrote: Hi experts, Can we determine the isBranch property of a tree node in a function? I need to set this property according to XML node name. It would be nice if we can define a function like labelFunction. However it seems not existing. I don't want to translate my XML to new XML node lable=... isBranch=.. How to set the property in runtime? Thanks.
Re: [flexcoders] The width change works in Flash CS3 but not in Flex
way too early to be setting that stuff in the consturctor, u need to override the updateDisplayList and do it there - Original Message From: dsds99 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 7:08:37 AM Subject: [flexcoders] The width change works in Flash CS3 but not in Flex // ActionScript file package{ import mx.core.UIComponent ; public class Tint extends UIComponent{ public function Tint():void{ graphics.beginFill( 0x9fe9c9, 1); graphics.drawRect( 0,0,100,100) ; width=300; } } } Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: [flexcoders] how do I get displayobjects under mouse
getObjectsUnderPoint(point:Point):Array; is a method of DisplayObjectContainer, try using that. getObjectsUnderPointhttp://livedocs.adobe.com/flex/201/langref/flash/display/DisplayObjectContainer.html#getObjectsUnderPoint%28%29 (point:Pointhttp://livedocs.adobe.com/flex/201/langref/flash/geom/Point.html ):Array http://livedocs.adobe.com/flex/201/langref/Array.html Returns an array of objects that lie under the specified point and are children (or grandchildren, and so on) of this DisplayObjectContainer instance. DisplayObjectContainerhttp://livedocs.adobe.com/flex/201/langref/flash/display/DisplayObjectContainer.html On Feb 19, 2008 9:56 AM, Daniel Freiman [EMAIL PROTECTED] wrote: displayObjectContainer.getObjectsUnderPoint() - Dan Freiman On Feb 19, 2008 2:11 AM, dsds99 [EMAIL PROTECTED] wrote: Was wondering if there is a function available in as3 Like Mouse.getObjects or something that will return a list of displayobjects that is currently under the mouse..hmmm
[flexcoders] Re: Flex Ant with external assets
Can you show the complete ant task target? I suspect that the parent folder of assets is not specified in the source path. Thanks, Gaurav --- In flexcoders@yahoogroups.com, kp_gem [EMAIL PROTECTED] wrote: Hi, Is there any way to include external assets to Flex Ant Tasks (mxmlc)? I am working on multiple flex projects and want to share 1 single central assets. However, I couldn't find a way in Flex Ant and I got an following error. [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to resolve '/assets/img/1.gif' for transcoding [mxmlc] [mxmlc] [Embed(source=/assets/img/1.gif)] But, when I compiled in Flex Builder, it worked ok. Or, please let me know if there is work around to share assets. Thanks
Re: [flexcoders] Drawing in Panel Insanity
You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); reposition(); measuredWidth = unscaledWidth; measuredHeight = unscaledHeight; } override protected function measure():void { var rect:Rectangle = getBounds(this); measuredWidth = rect.width; measuredHeight = rect.height; var flowchartRect:Rectangle = getBounds(_flowchart); _flowchartWidth = flowchartRect.width; _flowchartHeight = flowchartRect.height; } private function reposition(e:Event):void { measure(); _flowchart.x = (width/2)-(_flowchart/2); _flowchart.y = (height/2)-(_flowchart/2); } Thanks, Jason Merrill *Bank of America * GTO LLD Solutions Design Development eTools Multimedia *Bank of America Flash Platform Developer Community* *Interested in innovative ideas in Learning? Check out the* *GTO Innovative Learning Blog*http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx ** and *subscribe*http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLists%2FPosts%2FArchive%2Easpx .
Re: [flexcoders] Default Application background color during intialization
On Tuesday 19 Feb 2008, Jerry DuVal wrote: initializing progress bar. Why does it not use my application background colors during load? Could your HTML wrapper be setting this ? -- Tom Chiverton Helping to professionally conquer best-of-breed relationships on: http://thefalken.livejournal.com 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Ant Task for F3b3 genereates ALWAYS debug version, how to fix that?
What happens when you compile with Ant task using debug=true? If it generates swf of size more than 190 kb, then probably the difference you are seeing is due to some other difference between FB and ant task arguments. Look in the .actionScriptProperties file to see what libraries FB is linking against and see if you have anything additional? Thanks, Gaurav --- In flexcoders@yahoogroups.com, lytvynyuk [EMAIL PROTECTED] wrote: Here is piece of my flex ant file: mxmlc file=${BUILD_SPACE}ActiveUpdate.mxml output=${DEPLOY_DIR}/ActiveUpdate.swf actionscript-file-encoding=UTF-8 services=${BUILD_SPACE}res/services-config.xml context-root=ISP locale=en_US as3=true optimize=true static-rsls=false headless-server=true runtime-shared-libraries url=framework_3.0.189825.swf/ source-path path-element=${FLEX_HOME}/frameworks/ compiler.keep-as3-metadatafalse/compiler.keep-as3-metadata compiler.debugfalse/compiler.debug compiler.library-path dir=${FLEX_HOME}/frameworks append=true include name=libs / include name=../bundles/{locale} / /compiler.library-path /mxmlc Whatever options I put in here I getting debug version with size 190kb, but when I do export release via eclipse I getting version sized 140!!! WHY?
[flexcoders] Flex Ant with external assets
Hi, Is there any way to include external assets to Flex Ant Tasks (mxmlc)? I am working on multiple flex projects and want to share 1 single central assets. However, I couldn't find a way in Flex Ant and I got an following error. [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to resolve '/assets/img/1.gif' for transcoding [mxmlc] [mxmlc] [Embed(source=/assets/img/1.gif)] But, when I compiled in Flex Builder, it worked ok. Or, please let me know if there is work around to share assets. Thanks
Re: [flexcoders] Terminating a function
return; Paul - Original Message - From: ghus32 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 4:56 PM Subject: [flexcoders] Terminating a function How do you terminate or stop a function in Flex 2.0? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Datagrid headers without separators
Hi, I need to create a Datagrid without the separators in the datagrid headers. I have seen that there is a protected function clearSeparators() Can this be used? I am a novice at extending components How should i be using this function? Regards, Aasim
[flexcoders] Flex Ant Task for F3b3 genereates ALWAYS debug version, how to fix that?
Here is piece of my flex ant file: mxmlc file=${BUILD_SPACE}ActiveUpdate.mxml output=${DEPLOY_DIR}/ActiveUpdate.swf actionscript-file-encoding=UTF-8 services=${BUILD_SPACE}res/services-config.xml context-root=ISP locale=en_US as3=true optimize=true static-rsls=false headless-server=true runtime-shared-libraries url=framework_3.0.189825.swf/ source-path path-element=${FLEX_HOME}/frameworks/ compiler.keep-as3-metadatafalse/compiler.keep-as3-metadata compiler.debugfalse/compiler.debug compiler.library-path dir=${FLEX_HOME}/frameworks append=true include name=libs / include name=../bundles/{locale} / /compiler.library-path /mxmlc Whatever options I put in here I getting debug version with size 190kb, but when I do export release via eclipse I getting version sized 140!!! WHY?
[flexcoders] Re: textAlign attribute not accessible from TextInput extended class.
Paul, The textAlign property has a default that is always set to left, unless you specifically set it to something else. Jason --- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: Jason: I don't think that would get me what I need. Unfortunately the thing I want to do is determine if the textAlign property was explicitly set in the mxml. If it is set in the mxml, I will leave it be, otherwise, I may change it. Thanks for the input though. Paul --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: Paul, Off the top of my head, I can't think of any way to inheritantly determine whether or not the default has been changed. What I would suggest is setting a boolean variable, and then whenever in your code you modify the textAlign property, change the variable so you can check against it going forward. Jason --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote: Jason: That works great. Thanks for the info. That still leaves one question, Is there a way of telling if the textAlign attribute is at its default (left) state or was it set in the mxml (or programmatically) to left? What I am trying to do is override default behavior in my extended TextInput, but if someone actually specifies textAlign=left I don't want to override that. Paul --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: Paul, I believe that the answer to your original question is that you need to use setStyle(). For example: mx:TextInput id=myTextInput/ private function textAlign():void{ myTextInput.setStyle(textAlign, center); } Jason --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote: Well I found the answer, but I have another question or two. The answer is this.nonInheritingStyles.textAlign. One new question is how can I tell whether this value is the default value, or a value set by the mxml? If I change the value during run time, it doesn't seem to honor the new value. How can I go about making this happen? Paul --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote: I am trying to extend the TextInput class and one thing I would like to do is check the current value of the textAlign attribute, and change it if needed. I access the other attributes that I need using the syntax this.attributeName such as this.maxChars, I cannot, however access this.textAlign. The compiler barfs with error 1119 Access of possibly undefined property... It also doesn't appear in the intellisense for the this keyword in my extended class. It does appear in the intellisense for the mx:TextInput tag. Any ideas? Paul
Re: [flexcoders] Cannot embed Flash9 symbols
file wont open and it saves as a word document - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 11:58:52 AM Subject: [flexcoders] Cannot embed Flash9 symbols Ok, I'm loosing my mind here. I think that there might be a problem with my Flash app, but I need confirmation. .. I've exhausted every other avenue. I have this fla(http://client. devilsworkbook. com/assets2. fla) generating this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to embed this symbol (BestBuyCar). [Embed(source=../assets/assets2. swf, symbol=BestBuyCar)] The error I get is that it cannot find the symbol. I've tried numerous methods, I've tried the Flex Component Kit, I've tried cursing at the computer... I have not tried reinstalling Flash yet(the DVDs are not with me). Can anyone either tell me what is wrong with my code or verify that my swf is muxed??? Thanks, Paul Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Re: Default Application background color during intialization
You can also add a compiler option to set this. -default-background-color #00 --- In flexcoders@yahoogroups.com, Jerry DuVal [EMAIL PROTECTED] wrote: On Tuesday 19 Feb 2008, Jerry DuVal wrote: initializing progress bar. Why does it not use my application background colors during load? Could your HTML wrapper be setting this ? -- Tom Chiverton Yep, that was it! Thanks
[flexcoders] Cannot embed Flash9 symbols
Ok, I'm loosing my mind here. I think that there might be a problem with my Flash app, but I need confirmation... I've exhausted every other avenue. I have this fla(http://client.devilsworkbook.com/assets2.fla) generating this swf (http://client.devilsworkbook.com/assets2.swf) and I'm trying to embed this symbol (BestBuyCar). [Embed(source=../assets/assets2.swf, symbol=BestBuyCar)] The error I get is that it cannot find the symbol. I've tried numerous methods, I've tried the Flex Component Kit, I've tried cursing at the computer... I have not tried reinstalling Flash yet(the DVDs are not with me). Can anyone either tell me what is wrong with my code or verify that my swf is muxed??? Thanks, Paul
RE: [flexcoders] Drawing in Panel Insanity
Hey Eric, I didn't thank you for your help thanks. I have it working now. By the way, is there a way to get the scrollbar's width (for the vertical scrollbar) and height style (for the horizontal scroll bar) in the container form of the panel? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how they all relate to each other. Is there someone who can explain how the panel's content area size is calculated and also the scrollbars? Here is some code snippets from my class: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); reposition(); measuredWidth = unscaledWidth; measuredHeight = unscaledHeight; } override protected function measure():void { var rect:Rectangle = getBounds(this); measuredWidth = rect.width; measuredHeight = rect.height; var flowchartRect:Rectangle = getBounds(_flowchart); _flowchartWidth = flowchartRect.width; _flowchartHeight = flowchartRect.height; } private function reposition(e:Event):void { measure(); _flowchart.x = (width/2)-(_flowchart/2); _flowchart.y = (height/2)-(_flowchart/2); } Thanks, Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a
Re: [flexcoders] BlazeDS mailing list?
We're generally using this list for Blaze questions as well I think. Since most Blaze questions relate to Flex at the moment we're trying not to split the list which we think will just result in cross-posting. That's the experiment for the moment. Matt On 2/19/08 7:14 AM, Daniel Freiman [EMAIL PROTECTED] wrote: Is there a (pseudo)official developer mailing list for BlazeDS? Having a list with for Blaze with similar involvement by Adove as with the flexcoders list would be very helpful. I imagine the Blaze team is very busy right now so maybe someone thought of this and it's just not a high priority. - Dan Freiman .
Re: [flexcoders] Re: Alternate row color of DataGridColumn
i will look at it over the weekend, but my guess is you have to switch our the stuff in the drawRowBackground, drawColumnBackground and drawRowGraphics to make it work. - Original Message From: danish909 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 1:00:20 AM Subject: [flexcoders] Re: Alternate row color of DataGridColumn Alex Thanks for your response. You can find the image at the following url. http://i266. photobucket. com/albums/ ii270/m_javed/ example.jpg Danish --- In [EMAIL PROTECTED] ups.com, Alex Harui [EMAIL PROTECTED] wrote: Do you have a picture of what you want? _ _ __ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Danish Tehseen Sent: Monday, February 18, 2008 6:51 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Alternate row color of DataGridColumn DataGrid alternate item's color can be set by datagrid's alternatingItemColo rs property, but is there a way to change alternating item color of DataGridColumn? There is a case where i have to set different alternate row colors to different DataGridColumn. If not possible in DataGrid, is it possible in AdvanceDataGrid control. Thanks Regards, Danish _ _ _ _ _ _ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools. search.yahoo. com/newsearch/ category. php? category=shopping http://tools. search.yahoo. com/newsearch/ category. php? category=shopping Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
RE: [flexcoders] Re: Problem with focus in secondary popups
systemManager.activate From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Tuesday, February 19, 2008 7:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem with focus in secondary popups Hi guys, it's me again. Still with my boring focus problem. Ralf reflexactions - I've learnt how to place focus in the control in the popup. But bloody hell - the TAB focus is still in the parent popup. So, if I subscribe for ESC key in the third popup - everything is OK, everybody is happy. But if I press TAB - it just goes in the popup underneath. PS Due to the Flex memory leaks/perfomance issues/garbage collector laziness I've created the caching popup manager which worsen the problem. Popup is being created only once and then it will be reused. So instead of creationComplete event in the reused popup I am listening for updateComplete events and you will be surprised that setting focus methods are different for existing windows. Does anyone know how to set TAB focus as well? Thanks, Dmitri --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , reflexactions [EMAIL PROTECTED] wrote: Yep thats what we do. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ralf Bokelberg ralf.bokelberg@ wrote: You could dispatch a close event to the view, which opened the popup Cheers Ralf. On Sat, Feb 16, 2008 at 1:38 PM, Dmitri Girski mitek17@ wrote: Thank you, Alex and reflexactions! Your advices helped to move forward I can create popups and set focus without a problem. But there is another thing - I have to return focus correctly to the first popup window after second third popups closed in one click. Cheers, Dmitri. -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany
RE: [flexcoders] Re: Alternate row color of DataGridColumn
There's no easy way to do this. You might consider using the background color renderer example on my blog and just draw the right color based on listData.rowIndex (and maybe owner.verticalScrollPosition) My blog is at blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Tuesday, February 19, 2008 10:40 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Alternate row color of DataGridColumn i will look at it over the weekend, but my guess is you have to switch our the stuff in the drawRowBackground, drawColumnBackground and drawRowGraphics to make it work. - Original Message From: danish909 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 1:00:20 AM Subject: [flexcoders] Re: Alternate row color of DataGridColumn Alex Thanks for your response. You can find the image at the following url. http://i266. photobucket. com/albums/ ii270/m_javed/ example.jpg http://i266.photobucket.com/albums/ii270/m_javed/example.jpg Danish --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Do you have a picture of what you want? _ _ __ From: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Danish Tehseen Sent: Monday, February 18, 2008 6:51 AM To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Alternate row color of DataGridColumn DataGrid alternate item's color can be set by datagrid's alternatingItemColo rs property, but is there a way to change alternating item color of DataGridColumn? There is a case where i have to set different alternate row colors to different DataGridColumn. If not possible in DataGrid, is it possible in AdvanceDataGrid control. Thanks Regards, Danish _ _ _ _ _ _ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools. search.yahoo. com/newsearch/ category. php? http://tools.search.yahoo.com/newsea!%0d%0a%20rch/category.php? category=shopping http://tools. search.yahoo. com/newsearch/ category. php? http://tools.search.yahoo.com/newsearch/category.php? category=shopping Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ%20
[flexcoders] Re: Flex Ant with external assets
Thank you for your time, Gaurav. I hope adobe will fix it soon. :-) --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: This looks like a bug. Can you please file a bug at http://bugs.adobe.com/flex Thanks, Gaurav --- In flexcoders@yahoogroups.com, kp_gem jamesyoon72@ wrote: Thanks Gaurav, Here is my directory structure for multiple projects. --- include - assets - img | |- test | |- test1 | |- test2 test, test1, and test2 are flex projects and sharing assets in the 'include' folder. And, the ant task is ?xml version=1.0 encoding=utf-8? project name=Builder basedir=. taskdef resource=flexTasks.tasks classpath=flexTasks.jar / property name=FLEX_HOME value=C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.0.0/ property name=APP_ROOT value=C:/Projects/test/src/ property name=ASSETS value=C:/Projects/include/ property name=DEPLOY_DIR value=C:/Projects/WebContent/ target name=main mxmlc file=${APP_ROOT}/test.mxml output=${DEPLOY_DIR}/test.swf actionscript-file-encoding=UTF-8 incremental=true load-config filename=${FLEX_HOME}/frameworks/flex- config.xml/ source-path path-element=${FLEX_HOME}/frameworks/ compiler.library-path dir=${FLEX_HOME}/frameworks append=true include name=libs / include name=../bundles/locale} / /compiler.library-path source-path path-element=${ASSETS} / /mxmlc /target /project --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: Can you show the complete ant task target? I suspect that the parent folder of assets is not specified in the source path. Thanks, Gaurav --- In flexcoders@yahoogroups.com, kp_gem jamesyoon72@ wrote: Hi, Is there any way to include external assets to Flex Ant Tasks (mxmlc)? I am working on multiple flex projects and want to share 1 single central assets. However, I couldn't find a way in Flex Ant and I got an following error. [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to resolve '/assets/img/1.gif' for transcoding [mxmlc] [mxmlc] [Embed(source=/assets/img/1.gif)] But, when I compiled in Flex Builder, it worked ok. Or, please let me know if there is work around to share assets. Thanks
[flexcoders] Re: BlazeDS mailing list?
There isn't a mailing list for BlazeDS but there's a forum where you can ask questions. There is a link for it fro BlazeDS site: http://labs.adobe.com/technologies/blazeds/ -Mete --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: Is there a (pseudo)official developer mailing list for BlazeDS? Having a list with for Blaze with similar involvement by Adove as with the flexcoders list would be very helpful. I imagine the Blaze team is very busy right now so maybe someone thought of this and it's just not a high priority. - Dan Freiman
[flexcoders] Re: Flex Ant with external assets
This looks like a bug. Can you please file a bug at http://bugs.adobe.com/flex Thanks, Gaurav --- In flexcoders@yahoogroups.com, kp_gem [EMAIL PROTECTED] wrote: Thanks Gaurav, Here is my directory structure for multiple projects. --- include - assets - img | |- test | |- test1 | |- test2 test, test1, and test2 are flex projects and sharing assets in the 'include' folder. And, the ant task is ?xml version=1.0 encoding=utf-8? project name=Builder basedir=. taskdef resource=flexTasks.tasks classpath=flexTasks.jar / property name=FLEX_HOME value=C:/Program Files/Adobe/Flex Builder 3 Plug-in/sdks/3.0.0/ property name=APP_ROOT value=C:/Projects/test/src/ property name=ASSETS value=C:/Projects/include/ property name=DEPLOY_DIR value=C:/Projects/WebContent/ target name=main mxmlc file=${APP_ROOT}/test.mxml output=${DEPLOY_DIR}/test.swf actionscript-file-encoding=UTF-8 incremental=true load-config filename=${FLEX_HOME}/frameworks/flex- config.xml/ source-path path-element=${FLEX_HOME}/frameworks/ compiler.library-path dir=${FLEX_HOME}/frameworks append=true include name=libs / include name=../bundles/locale} / /compiler.library-path source-path path-element=${ASSETS} / /mxmlc /target /project --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: Can you show the complete ant task target? I suspect that the parent folder of assets is not specified in the source path. Thanks, Gaurav --- In flexcoders@yahoogroups.com, kp_gem jamesyoon72@ wrote: Hi, Is there any way to include external assets to Flex Ant Tasks (mxmlc)? I am working on multiple flex projects and want to share 1 single central assets. However, I couldn't find a way in Flex Ant and I got an following error. [mxmlc] C:\Projects\test\Test.mxml(26): Error: unable to resolve '/assets/img/1.gif' for transcoding [mxmlc] [mxmlc] [Embed(source=/assets/img/1.gif)] But, when I compiled in Flex Builder, it worked ok. Or, please let me know if there is work around to share assets. Thanks
[flexcoders] Re: Is it possible to have 2 children of viewstack visible?
Max, I would think that States with transition effects would be the easiest way to do this. Jason --- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote: Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In flexcoders@yahoogroups.com, Max Frigge m.frigge@ wrote: Hi, I am trying to create a slide effect for a ViewStack. Therefor I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? I want something like this: ?xml version=1.0? !-- containers\navigators\VSLinkEffects.mxml -- mx:Parallel id=toSecond mx:Move duration=400 xFrom={search.x} xTo={search.width} target={search}/ mx:Move duration=400 xFrom={-custInfo.width} xTo={custInfo.x} target={custInfo}/ /mx:Parallel mx:ViewStack id=myViewStack borderStyle=solid width=200 creationPolicy=all mx:Canvas id=search label=Search mx:Label text=Search Screen/ /mx:Canvas mx:Canvas id=custInfo label=Customer Info mx:Label text=Customer Info/ /mx:Canvas /mx:ViewStack mx:Button click=toSecond.play() label=Play Effect / /mx:Application __ __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php? category=shopping
Re: [flexcoders] Cannot embed Flash9 symbols
mime type is wrong... I have no control over it, you'll have to adjust it client side. On Feb 19, 2008, at 12:14 PM, Sherif Abdou wrote: file wont open and it saves as a word document - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 11:58:52 AM Subject: [flexcoders] Cannot embed Flash9 symbols Ok, I'm loosing my mind here. I think that there might be a problem with my Flash app, but I need confirmation. .. I've exhausted every other avenue. I have this fla(http://client. devilsworkbook. com/assets2. fla) generating this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to embed this symbol (BestBuyCar). [Embed(source=../assets/assets2. swf, symbol=BestBuyCar)] The error I get is that it cannot find the symbol. I've tried numerous methods, I've tried the Flex Component Kit, I've tried cursing at the computer... I have not tried reinstalling Flash yet(the DVDs are not with me). Can anyone either tell me what is wrong with my code or verify that my swf is muxed??? Thanks, Paul Never miss a thing. Make Yahoo your homepage.
Re: [flexcoders] Re: Default Application background color during intialization
you can add a compiler option On Feb 19, 2008 1:03 PM, jmfillman [EMAIL PROTECTED] wrote: You can also add a compiler option to set this. -default-background-color #00 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jerry DuVal [EMAIL PROTECTED] wrote: On Tuesday 19 Feb 2008, Jerry DuVal wrote: initializing progress bar. Why does it not use my application background colors during load? Could your HTML wrapper be setting this ? -- Tom Chiverton Yep, that was it! Thanks
RE: [flexcoders] showDataTips are not working for the Datagrid columns having itemRenderers
The item renderer is responsible for showing the datatips. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of satyakishore Sent: Tuesday, February 19, 2008 3:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] showDataTips are not working for the Datagrid columns having itemRenderers Hi Flex Friends, Datagrid column having itemRenderer, This itemRenderer class with display one icon and label. showDataTips are not working for the Columns having ItemRenderers. Is there any solution where we can use both showDataTips and ITemRenderer for DataGridColumn Sample code: -DATAGRID- mx:DataGrid mx:columns mx:DataGridColumn dataField=Artist headerText=Artist/ mx:DataGridColumn dataField=Price headerText=Price showDataTips=true dataTipFunction=showTrunkatedText1/ mx:DataGridColumn dataField=Album headerText=Album showDataTips=true dataTipFunction=showTrunkatedText itemRenderer=myItemRendererClass/ /mx:columns /mx:DataGrid -ItemRenderer class- ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml verticalScrollPolicy=off horizontalScrollPolicy=off verticalAlign=middle mx:HBox mx:Image source=@Embed (source='ICO16_INFORMATION.png')/ mx:Label text={data.Album}/ /mx:HBox /mx:HBox Thanks in Advance. Satya
[flexcoders] Re: grouping using XMLListCollection in AdvancedDataGrid (R/O or R/W?)
Hi Nikunj and Screeni_r Just wondering here: do you need to be able to not only view the XML data (Read/Only), but also update the data (Read/Write) and if you are using it in a Read/Write mode, are you having simple successes with that, or some frustration? For myself, I've had some frustration using the non-Advanced mx:DataGrid - just how far advanced is that AdvancedDataGrid? I understand it has column widths that can automatically tune to the width of content: as to what other compelling reasons to uprade there, that's not well advertised. For me, I'd prefer to be able to have the user set column widths and have that persist from session to session for the user. Oh, I have that: based on the ColumnStretch event and a SharedObject client side persistence for those settings. I'll also be needing to do some 'hierarchy folding' on my DataGrid content, and I HOPE I can use ArrayCollection (the dataProvider) filterfunction for that: any advice as to whether or not that will work for me? Note: I used the Yahoo Groups Rich Text Formatter to compose this message... did I waste my time there? 3 terms should be italicized; 5 terms should be bolded; and one term should be underlined. is anybody out there seeing that? -- John --- In flexcoders@yahoogroups.com, nikscares4u [EMAIL PROTECTED] wrote: I have already done that but it still gives the same error. Here the dataProvider is an XMLListCollection. Here is the code mygroup.source = XMLListCollection(datagrid.dataProvider); var group:Grouping = new Grouping(); var gf:GroupingField = new GroupingField(PRICE); mygroup.grouping = group; mygroup.refresh(); Regards, Nikunj --- In flexcoders@yahoogroups.com, sreeni_r sreeni_r@ wrote: If you set GroupingCollection.source to the XMLListCollection and setup the Grouping and GroupingField properties and call GroupingCollection.refresh it should just work. --- In flexcoders@yahoogroups.com, nikscares4u nikscares4u@ wrote: Hi, I am using an XMLListCollection as a dataprovider in AdvancedDataGrid. Is there any way to apply grouping on the AdvancedDataGrid using XMLListCollection. When I try to apply it on the XMLListCollection, it gives an error : Cannot convert XMLListCollection to ArrayCollection Any Idea ? Thanks in advance. Nikunj
RE: [flexcoders] The width change works in Flash CS3 but not in Flex
That's correct. The UIComponent width/height model is more like the standard UI models. As such, it is not directly tied to the underlying Flash transforms. If you read up on how to create custom components, you'll see that you should be doing your drawing in updateDisplayList if you need to respond to size changes. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dsds99 Sent: Tuesday, February 19, 2008 5:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] The width change works in Flash CS3 but not in Flex // ActionScript file package{ import mx.core.UIComponent; public class Tint extends UIComponent{ public function Tint():void{ graphics.beginFill(0x9fe9c9,1); graphics.drawRect(0,0,100,100); width=300; } } }
RE: [flexcoders] why is measureHeight in ApplicationBackground 8?
It could be any non-zero number. I guess somebody liked 8. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Tuesday, February 19, 2008 8:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] why is measureHeight in ApplicationBackground 8? anyone? - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 12:00:26 AM Subject: [flexcoders] why is measureHeight in ApplicationBackground 8? http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=102937/stime=1203400460/nc1=4507179/nc2=3848643/nc3=4763762 in import mx.skins.halo. ApplicationBackg round; /** * @private */ override public function get measuredHeight( ):Number { return 8; } why 8? or where did that number come from. Thanks Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
Re: [flexcoders] Cannot embed Flash9 symbols
All right so i hope i understood what your saying, what you need to do is bring the Car and the Sign to the Stage, Hit F8 and convert both of them to Symbols/Graphics and then export them and they should work. I tried that and i am able to embed it in flex App. - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 12:14:44 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols file wont open and it saves as a word document - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Tuesday, February 19, 2008 11:58:52 AM Subject: [flexcoders] Cannot embed Flash9 symbols Ok, I'm loosing my mind here. I think that there might be a problem with my Flash app, but I need confirmation. .. I've exhausted every other avenue. I have this fla(http://client. devilsworkbook. com/assets2. fla) generating this swf (http://client. devilsworkbook. com/assets2. swf) and I'm trying to embed this symbol (BestBuyCar). [Embed(source=../assets/assets2. swf, symbol=BestBuyCar)] The error I get is that it cannot find the symbol. I've tried numerous methods, I've tried the Flex Component Kit, I've tried cursing at the computer... I have not tried reinstalling Flash yet(the DVDs are not with me). Can anyone either tell me what is wrong with my code or verify that my swf is muxed??? Thanks, Paul Never miss a thing. Make Yahoo your homepage. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Implementing Office 2007 menus
I personally hate the ribbon and won't switch to office 2007 'cause of it. I'm happy with Office 2003 for now and our company is evaluating alternate options 'cause Office 2007 is horrible on many fronts (new file format, ribbon, and in general bloat). But the very important point is that the OP specifically asked how he can replicate the Office 2007 UI and when replicating the Office 2007 UI then you need to follow the licensing requirements. As a non-lawyer, I would not recommend to other people to ignore licensing requirements even if I don't agree with them. Best regards, Sam On Feb 19, 2008 10:17 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 19 Feb 2008, Jeffry Houser wrote: I was thinking of creating a Ribbon Component for Flex, but on the surface it is unclear how this would be different than a TabNavigator. I guess I'd have to read those 120+ pages. It looks like it has some logic where by if the width isn't enough to show the icons, right most buttons turn into text labels and stack on top of each other (remember the ribbon is 3 text lines high). Fails the 'non obvious' patent test, so I'd have no qualms about using it, personally. But the MS gorilla can always afford to tie you up in court for far longer than your bank can stomach, so you might want to use a UI that your users are familiar with instead. 'Course this is exactly what MS wants to achieve - making you afraid to compete. I also happen to think that making your (Offices') users have to throw away all they've learnt about using (Windows) GUIs is a bad move too. -- Tom Chiverton
Re: [flexcoders] BlazeDS mailing list?
That's fair point/concern. In my couple weeks of working with Blaze all of my questions have been about server-side issues, but I'm not usually the average case. We'll see what happens. - Dan Freiman On Feb 19, 2008 1:18 PM, Matt Chotin [EMAIL PROTECTED] wrote: We're generally using this list for Blaze questions as well I think. Since most Blaze questions relate to Flex at the moment we're trying not to split the list which we think will just result in cross-posting. That's the experiment for the moment. Matt On 2/19/08 7:14 AM, Daniel Freiman [EMAIL PROTECTED]FreimanCQ%40gmail.com wrote: Is there a (pseudo)official developer mailing list for BlazeDS? Having a list with for Blaze with similar involvement by Adove as with the flexcoders list would be very helpful. I imagine the Blaze team is very busy right now so maybe someone thought of this and it's just not a high priority. - Dan Freiman .
[flexcoders] Re: showDataTips are not working for the Datagrid columns having itemRenderers
Hi Alex, I don't know if you have any influence on the matter (i.e. are you an Adobe Engineer?), but, I can only assume the MXML compiler happily processed the mx:DataGridColumn attribute specifications that included the non-supported use case here: dataTipFunction AND itemRenderer If that is an unsuppported use case as you seem to be saying, it sure would be helpful for the MXML compiler to announce that. sarcasmIsn't Flex wonderful/sarcasm -- John --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The item renderer is responsible for showing the datatips. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of satyakishore Sent: Tuesday, February 19, 2008 3:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] showDataTips are not working for the Datagrid columns having itemRenderers Hi Flex Friends, Datagrid column having itemRenderer, This itemRenderer class with display one icon and label. showDataTips are not working for the Columns having ItemRenderers. Is there any solution where we can use both showDataTips and ITemRenderer for DataGridColumn Sample code: -DATAGRID- mx:DataGrid mx:columns mx:DataGridColumn dataField=Artist headerText=Artist/ mx:DataGridColumn dataField=Price headerText=Price showDataTips=true dataTipFunction=showTrunkatedText1/ mx:DataGridColumn dataField=Album headerText=Album showDataTips=true dataTipFunction=showTrunkatedText itemRenderer=myItemRendererClass/ /mx:columns /mx:DataGrid -ItemRenderer class- ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml verticalScrollPolicy=off horizontalScrollPolicy=off verticalAlign=middle mx:HBox mx:Image source=@Embed (source='ICO16_INFORMATION.png')/ mx:Label text={data.Album}/ /mx:HBox /mx:HBox Thanks in Advance. Satya
[flexcoders] Re: Implementing Office 2007 menus
What is the point to copy?! What about to create something yourself? --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hello folks, I am trying to implement the Office 2007 menus, and I am trying to imagine what sort of Containers to use. So far, I have figured that I am going to use TabNavigator for the headings, but what sort of container would I use for the groups of buttons? Could it be Panels? I found this thing implemented in Mindomo. Does anyone have an idea how he created the menus? Thanks in advance, Fidel.