[flexcoders] External CSS file in Flex 4
Hi people, i'm having some trouble while using the tag fx:Style source=assets/mycss.css /. When I generate a release of my project, Flex 4 embed my CSS file into compiled application, while i want to use PHP to generate dynamic CSS based on the user configuration in database. Is there any workaround i'm missing? Thanks in advance, Marco Lacava.
Re: [flexcoders] External CSS file in Flex 4
Even when loaded run-time the css file comes compiled as a .swf. So what you are trying to achieve there is kind of impossible unless you can somehow compile the swf with PHP. Which I have not heard to be possible yet but maybe I'm mistaking. C From: Ghost Hack ghoxth...@yahoo.com.br To: flexcoders@yahoogroups.com Sent: Fri, September 3, 2010 2:54:38 PM Subject: [flexcoders] External CSS file in Flex 4 Hi people, i'm having some trouble while using the tag fx:Style source=assets/mycss.css /. When I generate a release of my project, Flex 4 embed my CSS file into compiled application, while i want to use PHP to generate dynamic CSS based on the user configuration in database. Is there any workaround i'm missing? Thanks in advance, Marco Lacava.
Re: [flexcoders] External CSS file in Flex 4
Flash.text.StyleSheet can do some limited parsing of .CSS. You can then copy the values into a Flex CSSStyleDeclaration. On 9/3/10 6:19 AM, claudiu ursica the_bran...@yahoo.com wrote: Even when loaded run-time the css file comes compiled as a .swf. So what you are trying to achieve there is kind of impossible unless you can somehow compile the swf with PHP. Which I have not heard to be possible yet but maybe I'm mistaking. C From: Ghost Hack ghoxth...@yahoo.com.br To: flexcoders@yahoogroups.com Sent: Fri, September 3, 2010 2:54:38 PM Subject: [flexcoders] External CSS file in Flex 4 Hi people, i'm having some trouble while using the tag fx:Style source=assets/mycss.css /. When I generate a release of my project, Flex 4 embed my CSS file into compiled application, while i want to use PHP to generate dynamic CSS based on the user configuration in database. Is there any workaround i'm missing? Thanks in advance, Marco Lacava. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] Drop Target indicator visibility issue
Still experiencing the drop indicator visibility issue. This method handles the 'dragOver event (and is executing): private function onDragOver(de:DragEvent):void { de.preventDefault(); var owner:List = this.owner as List; var dropLocal:DropLocation = owner.layout.calculateDropLocation(de); trace (dropLocal); owner.layout.showDropIndicator(dropLocal); } However, the drop indicator is not visible. I set a breakpoint in the code above and it appears the width of the drop indicator is 0... Any ideas how to get this working? Thanks. To: flexcoders@yahoogroups.com From: loudj...@hotmail.com Date: Thu, 2 Sep 2010 19:15:04 + Subject: [flexcoders] Drop Target indicator visibility issue Currently experiencing a 'drop target indicator visibility' issue... The drop target indicator is not visible when dragging an ItemRenderer in a Spark List with the following implementation: ( note the 'dragOver handler' (with 'layout.showDropIndicator' behavior) is in the 'onDragOver' method below): s:List itemRenderer=GroupItemRenderer dropEnabled=false useVirtualLayout=true width=100% s:layout s:HorizontalLayout / /s:layout /s:List GroupItemRenderer (referenced in the list above): s:ItemRenderer autoDrawBackground=true dragOver=onDragOver dragDrop=onDragDrop(event), dragEnter=this.onDragEnter(event) fx:Script ![CDATA[ private function onDragOver(de:DragEvent):void { de.preventDefault(); var owner:List = this.owner as List; var dropLocal:DropLocation = owner.layout.calculateDropLocation(de); owner.layout.showDropIndicator(dropLocal); } ]] /fx:Script Any ideas on how to get this working? Thanks, Philip
Re: [flexcoders] Drop Target indicator visibility issue
I think the dropIndicator gets its width/height in showDropIndicator. I think there is default drag/drop code in List. Compare your override against that code. On 9/3/10 9:33 AM, Philip Smith loudj...@hotmail.com wrote: Still experiencing the drop indicator visibility issue. This method handles the 'dragOver event (and is executing): private function onDragOver(de:DragEvent):void { de.preventDefault(); var owner:List = this.owner as List; var dropLocal:DropLocation = owner.layout.calculateDropLocation(de); trace (dropLocal); owner.layout.showDropIndicator(dropLoc! al); } However, the drop indicator is not visible. I set a breakpoint in the code above and it appears the width of the drop indicator is 0... Any ideas how to get this working? Thanks. To: flexcoders@yahoogroups.com From: loudj...@hotmail.com Date: Thu, 2 Sep 2010 19:15:04 + Subject: [flexcoders] Drop Target indicator visibility issue Currently experiencing a 'drop target indicator visibility' issue... The drop target indicator is not visible when dragging an ItemRenderer in a Spark List with the following implementation: ( note the 'dragOver handler' (with 'layout.showDropIndicator' behavior) is in the 'onDragOver' method below): s:List itemRenderer=GroupItemRenderer dropEnabled=false useVirtualLayout=true width=100% s:layout s:HorizontalLayout / /s:layout /s:List GroupItemRenderer (referenced in the list above): s:ItemRenderer autoDrawBackground=true dragOver=onDragOver dragDrop=onDragDrop(event), dragEnter=this.onDragEnter(event) fx:Script ![CDATA[ private function onDragOver(de:DragEvent):void { de.preventDefault(); var owner:List = this.owner as List; var dropLocal:DropLocation = owner.layout.calculateDropLocation(de); owner.layout.showDropIndicator(dropLocal); } ]] /fx:Script Any ideas on how to get this working? Thanks, Philip -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Tree - itemClose and change
I was able to work around this issue by accessing selectedItem and updating my presentation model during the itemClose operation. But to answer your question, it looks like I get two valueCommits when closing a node. On Thu, Sep 2, 2010 at 10:58 PM, Alex Harui aha...@adobe.com wrote: I thought there was already a bug on that. Do you get a valueCommit? On 9/2/10 4:23 PM, Richard Rodseth rrods...@gmail.com wrote: It appears that when you close a node in a tree control, the selection (of a contained node) is lost, but no change event is fired. Does this sound like a bug? I'm trying to restore tree state (selection and open nodes) across a service call. I've got the open nodes working pretty well and the refresh use case also mostly works (I store the selection as guids from the objects in question and find them again after the refresh). But it seems I will have to handle openItem and closeItem, and clear the guid-based selection if the node is contained in the path being closed. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Calendar Component Needed
Actually ... On Fri, Sep 3, 2010 at 2:02 PM, Dan Pride danielpr...@yahoo.com wrote: Can respond off list if preferred to danielpr...@yahoo.comdanielpride%40yahoo.com There are probably others of us who'd be interested in hearing an on-list reply, even if it's a sales pitch. I'm evaluating calendar components for an application I'm building, and I'd be interested in others' responses. I've spoken to a couple of folks on this list who have such components for sale. I've also tried to reach the French company who has keepcore.com about their component. But they don't seem to reply to requests submitted through their site's contact form. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Calendar Component Needed
Dan, Have you checked out our Flextras Calendar? Free developer editions are available so you can prove it'll work for your application. ( http://www.flextras.com/?event=ProductHomeproductID=15 ). The component has no ties to a backend, but you could easily populate it with data from a CF9 server. On 9/3/2010 2:02 PM, Dan Pride wrote: Hi I need a simple free or cheap calendar component written in FB4 for a CF9 back-end for a single website to display as a full or nearly full page, hopefully skinable. Is there one out there that would save me building it myself (seems like a common need). Can respond off list if preferred to danielpr...@yahoo.com mailto:danielpride%40yahoo.com Thanks Dan Pride -- Jeffry Houser, Technical Entrepreneur Adobe Community Professional: http://tinyurl.com/27h53fl Phone: 203-379-0773 -- UI Flex Components: Tested! Supported! Ready! http://www.flextras.com?c=104 -- http://www.twitter.com/reboog711 http://www.twitter.com/flextras http://www.twitter.com/theflexshow -- http://www.theflexshow.com http://www.jeffryhouser.com http://www.asktheflexpert.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Calendar Component Needed
Tom, I can re-iterate my plug for the Flextras Calendar. ( http://www.flextras.com/?event=ProductHomeproductID=15 ). It is completely customizable. And I will respond to any requests. If it works for you, great tell us why! IF it doesn't; well I want to know that too! On 9/3/2010 2:22 PM, Tom McNeer wrote: Actually ... On Fri, Sep 3, 2010 at 2:02 PM, Dan Pride danielpr...@yahoo.com mailto:danielpr...@yahoo.com wrote: Can respond off list if preferred to danielpr...@yahoo.com mailto:danielpride%40yahoo.com There are probably others of us who'd be interested in hearing an on-list reply, even if it's a sales pitch. I'm evaluating calendar components for an application I'm building, and I'd be interested in others' responses. I've spoken to a couple of folks on this list who have such components for sale. I've also tried to reach the French company who has keepcore.com http://keepcore.com about their component. But they don't seem to reply to requests submitted through their site's contact form. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560 -- Jeffry Houser, Technical Entrepreneur Adobe Community Professional: http://tinyurl.com/27h53fl Phone: 203-379-0773 -- UI Flex Components: Tested! Supported! Ready! http://www.flextras.com?c=104 -- http://www.twitter.com/reboog711 http://www.twitter.com/flextras http://www.twitter.com/theflexshow -- http://www.theflexshow.com http://www.jeffryhouser.com http://www.asktheflexpert.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Tree - itemClose and change
ValueCommit is supposedly for “any changes to selection”, the change event is supposedly only for user-initiated changes to selection. The binding system listens to both. The change of selection on close is currently seen as programmatic since the user didn’t directly do it, but I think there is already a bug that argues that change should fire as well. On 9/3/10 11:12 AM, Richard Rodseth rrods...@gmail.com wrote: I was able to work around this issue by accessing selectedItem and updating my presentation model during the itemClose operation. But to answer your question, it looks like I get two valueCommits when closing a node. On Thu, Sep 2, 2010 at 10:58 PM, Alex Harui aha...@adobe.com wrote: I thought there was already a bug on that. Do you get a valueCommit? On 9/2/10 4:23 PM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com wrote: It appears that when you close a node in a tree control, the selection (of a contained node) is lost, but no change event is fired. Does this sound like a bug? I'm trying to restore tree state (selection and open nodes) across a service call. I've got the open nodes working pretty well and the refresh use case also mostly works (I store the selection as guids from the objects in question and find them again after the refresh). But it seems I will have to handle openItem and closeItem, and clear the guid-based selection if the node is contained in the path being closed. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Tree - itemClose and change
Thanks. I'll consider using valueCommit in this case. I'd only used it in the context of things like text fields before. On Fri, Sep 3, 2010 at 1:06 PM, Alex Harui aha...@adobe.com wrote: ValueCommit is supposedly for “any changes to selection”, the change event is supposedly only for user-initiated changes to selection. The binding system listens to both. The change of selection on close is currently seen as programmatic since the user didn’t directly do it, but I think there is already a bug that argues that change should fire as well. On 9/3/10 11:12 AM, Richard Rodseth rrods...@gmail.com wrote: I was able to work around this issue by accessing selectedItem and updating my presentation model during the itemClose operation. But to answer your question, it looks like I get two valueCommits when closing a node. On Thu, Sep 2, 2010 at 10:58 PM, Alex Harui aha...@adobe.com wrote: I thought there was already a bug on that. Do you get a valueCommit? On 9/2/10 4:23 PM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com wrote: It appears that when you close a node in a tree control, the selection (of a contained node) is lost, but no change event is fired. Does this sound like a bug? I'm trying to restore tree state (selection and open nodes) across a service call. I've got the open nodes working pretty well and the refresh use case also mostly works (I store the selection as guids from the objects in question and find them again after the refresh). But it seems I will have to handle openItem and closeItem, and clear the guid-based selection if the node is contained in the path being closed. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Calendar Component Needed
Hi Jeffry, On Fri, Sep 3, 2010 at 2:49 PM, Jeffry Houser jef...@dot-com-it.com wrote: I can re-iterate my plug for the Flextras Calendar. You certainly may. I'm evaluating it along with others. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
RE: [flexcoders] External CSS file in Flex 4
The alternative to compiling the swf would be to parse the css file at runtime and set each style. This link should help you. http://stackoverflow.com/questions/204924/how-do-you-dynamically-load-a- css-file-into-a-flex-application From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica Sent: Friday, September 03, 2010 6:49 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] External CSS file in Flex 4 Even when loaded run-time the css file comes compiled as a .swf. So what you are trying to achieve there is kind of impossible unless you can somehow compile the swf with PHP. Which I have not heard to be possible yet but maybe I'm mistaking. C From: Ghost Hack ghoxth...@yahoo.com.br To: flexcoders@yahoogroups.com Sent: Fri, September 3, 2010 2:54:38 PM Subject: [flexcoders] External CSS file in Flex 4 Hi people, i'm having some trouble while using the tag fx:Style source=assets/mycss.css /. When I generate a release of my project, Flex 4 embed my CSS file into compiled application, while i want to use PHP to generate dynamic CSS based on the user configuration in database. Is there any workaround i'm missing? Thanks in advance, Marco Lacava. __ DISCLAIMER: This electronic message and any attachments to this electronic message is intended for the exclusive use of the addressee(s) named herein and may contain legally privileged and confidential information. It is the property of Celstream Technologies Pvt Limited. If you are not the intended recipient, you are hereby strictly notified not to copy, forward, distribute or use this message or any attachments thereto. If you have received this message in error, please delete it and all copies thereof, from your system and notify the sender at Celstream Technologies or administra...@celstream.com immediately. __
RE: [flexcoders] External CSS file in Flex 4
Flex by default embeds css into your application. For Dynamic css, you need to use the styleManager class and load the compiled style swf (http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html ) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ghost Hack Sent: Friday, September 03, 2010 6:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] External CSS file in Flex 4 Hi people, i'm having some trouble while using the tag fx:Style source=assets/mycss.css /. When I generate a release of my project, Flex 4 embed my CSS file into compiled application, while i want to use PHP to generate dynamic CSS based on the user configuration in database. Is there any workaround i'm missing? Thanks in advance, Marco Lacava. __ DISCLAIMER: This electronic message and any attachments to this electronic message is intended for the exclusive use of the addressee(s) named herein and may contain legally privileged and confidential information. It is the property of Celstream Technologies Pvt Limited. If you are not the intended recipient, you are hereby strictly notified not to copy, forward, distribute or use this message or any attachments thereto. If you have received this message in error, please delete it and all copies thereof, from your system and notify the sender at Celstream Technologies or administra...@celstream.com immediately. __
Re: [flexcoders] External CSS file in Flex 4
Hi Ghost: Have you tried to compile the CSS files and then use the StyleManager? I have something similar in my app and i use StyleManager to load the different CSS El 03/09/10 14:54, Ghost Hack escribió: Hi people, i'm having some trouble while using the tag fx:Style source=assets/mycss.css /. When I generate a release of my project, Flex 4 embed my CSS file into compiled application, while i want to use PHP to generate dynamic CSS based on the user configuration in database. Is there any workaround i'm missing? Thanks in advance, Marco Lacava.
[flexcoders] Issue with raw PDF in AIR
Hi guys, I am really hoping you can help me shed some light on this issue. I am trying to download a PDF-file from the web. The file is generated by OpenOffice.org through the excellent JODConverter web-service. I have some Ruby code that will allow me to download the file and save it to disk. The code works great and the file opens without a problem. I have now ported my code to ActionScript 3 in the hopes of using it to download the PDF-file directly from my AIR app. However, there are some FlateDecode blocks in the source of the PDF-file that I am downloading. Those blocks seem to get messed up by the Flash Player/AIR, when I try to write the file to disk using FileStream.
Re: [flexcoders] Calendar Component Needed
Seems odd that a basic modifiable calendar isn't a standard adobe supplied component. Its probably almost as common as a datagrid in applications.Dan --- On Fri, 9/3/10, Tom McNeer tmcn...@gmail.com wrote: From: Tom McNeer tmcn...@gmail.com Subject: Re: [flexcoders] Calendar Component Needed To: flexcoders@yahoogroups.com Date: Friday, September 3, 2010, 2:22 PM Actually ... On Fri, Sep 3, 2010 at 2:02 PM, Dan Pride danielpr...@yahoo.com wrote: Can respond off list if preferred to danielpr...@yahoo.com There are probably others of us who'd be interested in hearing an on-list reply, even if it's a sales pitch. I'm evaluating calendar components for an application I'm building, and I'd be interested in others' responses. I've spoken to a couple of folks on this list who have such components for sale. I've also tried to reach the French company who has keepcore.com about their component. But they don't seem to reply to requests submitted through their site's contact form. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Calendar Component Needed
Tom, I appreciate you taking a look at ours. I would welcome any feedback you have, the good and the bad. The Calendar can be a bit of a monolith at first glance, so I'm here to help as best I can. Feel free to stop by one of our Flextras Friday Lunch live QA sessions and put me on the spot in front of an audience if you want. More info on those here: http://www.flextras.com/blog/index.cfm/Flextras-Friday-Lunch . On 9/3/2010 5:59 PM, Tom McNeer wrote: Hi Jeffry, On Fri, Sep 3, 2010 at 2:49 PM, Jeffry Houser jef...@dot-com-it.com mailto:jef...@dot-com-it.com wrote: I can re-iterate my plug for the Flextras Calendar. You certainly may. I'm evaluating it along with others. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560 -- Jeffry Houser, Technical Entrepreneur Adobe Community Professional: http://tinyurl.com/27h53fl Phone: 203-379-0773 -- UI Flex Components: Tested! Supported! Ready! http://www.flextras.com?c=104 -- http://www.twitter.com/reboog711 http://www.twitter.com/flextras http://www.twitter.com/theflexshow -- http://www.theflexshow.com http://www.jeffryhouser.com http://www.asktheflexpert.com -- Part of the DotComIt Brain Trust