Re: [flexcoders] External CSS file in Flex 4
Hi, you could put in 'mycss.css' the default settings and then with PHP only send the values that are specific for the user in a simple format and apply them with 'styleManager.setStyleDeclaration'. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Fri, Sep 3, 2010 at 1:54 PM, Ghost Hack ghoxth...@yahoo.com.br wrote: 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] 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.