Definitely interested in collaborating on a solid solution, even if Adobe does come out with it built in at a later date. However if it's going to be in the final release of Flex 2.0 I would rather not waste the time. AFAIK it is not slated for Flex 2.0, but then I don't work for Adobe.

 

Can anyone from Adobe confirm or not if runtime style sheet loading will be built in within the context we have been discussing?

 

Anyway between what I have, you have, and mikes work with a little elbow grease I should be able to get a solution going. Keep in mind I have not looked at your code yet which may simply solve the problem.

 

Jason

 
 
 
-----Message d'origine-----
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de mail
Envoyé : lundi 5 juin 2006 17:43
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

I've done some work in this area as well, and posted an example a few weeks ago on my blog ( http://blog.benstucki.net/?id=22 ). With a slight change it can be used to update the style of anything in the application, not just custom styles. I will try to update it toward that end tonight. Also, I would be happy to collaborate with anyone else working on similar functionality until we hear what Adobe's timeline is for it.

Ben Stucki
http://blog.benstucki.net/


From: "Jason Hawryluk" <[EMAIL PROTECTED]>
Sent: Monday, June 05, 2006 7:34 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3


yes exactly, basicly they load a bare bones application component with a defined <mx:Style and boom all styles changed. I guess they replaced the loaded style that was compiled in or somthing. Anyway that was flex 1.5, I think... it's been a while, and i'm trying to do this in Flex 2. It did not do any parseing of it at all which is why it rocked :)
 
Jason
-----Message d'origine-----
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Michael Schmalle
Envoyé : lundi 5 juin 2006 15:07
À : flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

Hmm,

I don't follow, you mean load a style sheet that changes fill color styles?

Peace, Mike

On 6/5/06, Jason Hawryluk <[EMAIL PROTECTED]> wrote:
I was thinking more along the lines of styles for components fill colors etc. Someone had done it in Flex 1.5 and it was very slick or it may have been in the alpha (can't recollect).
 
-----Message d'origine-----
De :flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com]De la part de Michael Schmalle
Envoyé : lundi 5 juin 2006 13:33
À :flexcoders@yahoogroups.com
Objet : Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

Hi,

Search the list, there are a couple of posts on this. You need to use the styleSheet load of the TextField. Then custom parse through values. I am sure there will be some class libraries for this in the future. Gordon Smith (Adobe) hinted that there might also be this in a future version of Flex, I am sure of this.

The 'apply' part of the algorithm is the hardest. I created this in Flash8 for components, havn't finished it to Flex2. When I do I will post the code as it's kinda fun loading css from styleSheets at runtime ;-)

Peace, Mike

On 6/5/06, sourcecoderia <[EMAIL PROTECTED]> wrote:
Has anyone figured out a way to do runtime CSS file loading? Is it
possible? I know in Flex 1.5 it was, but the framework has changed so
extensively that I have not figured out a way to do it yet.

Any idea or help appreciated

Jason






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
What goes up, does come down.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
What goes up, does come down.
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to