RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread Jason Hawryluk
Looks good I’ll take a look, and see if I can't get some ideas working. I'm
certainly willing to share Mike that’s really no problem. I just think that
being able to re-brand a app with out recompile would be so handy especially
to me, and most likely many others. But to be able to do it with out going
through every control and using the built in setStyle would be the cherry on
the cake.

Jason


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


ok,

Well, there is two properties now in the framework, inheritingStyles and
nonInheritingStyles. I didn't have these things to work with in the v2
framework. From testing about a month ago when this question came up, I
realized alots of possiblities using these objects.

Not to mention the whole way styles cascade and are registered are completly
different.

The way I see it;

I didn't even notice but there is no load() on the StyleSheet object
anymore.

What I did with my runtime in AS2 was created an ExternalStyleSheet class.
Then I created an ExternalStyleCache class that was a singleton.

Well, I will just post the two classes. If anybody uses any of this, please
just run me a note becasue I would like to make it to, just not enough time
to do it all.

Mind you, this was from AS2 v2 components and it DID work great. I am just
posting this becasue I actually think a pattern like this might actually
work. I havn't had enough time to actually figure out if it will work in
FLex 2.

And.. there is no applyStyles() in this, that was in my extended framework.

Peace, Mike

ExternalStyleCache ::


import mx.events.EventDispatcher;
import com.teotigraphix.styles.external.ExternalStyleSheet;

/*

var cache = ExternalStyleCache.getStyleCache();

- If the static _styleCache is not created
- _styleCache = new ExternalStyleCache
- _global.styleCache = this
- getDataProvider()
- __dataProvider = new Array()
- EventDispatcher.initialize(this);




*/







/**
 * This is used with all ObjectUI classes to track externally loaded and
internally loaded style sheets.
 * pAdds creation, loading and removing methods to the styleCache API./p
 * @author Michael J. Schmalle
 * @email [EMAIL PROTECTED]
 * @date 01-11-05
 * @version 0.9.0
 * @updated 01-12-05 MS [0.1.1] Commenting, got this class to work on
proto level.
 * @updated 02-23-05 MS [0.2.0] MAJOR refactoring, new file and new
algorithm for accessing styles.
 * @updated 03-07-05 MS [0.3.0] Created new file in hopes to get good
abstraction and encapsulation going.
 * @updated 03-16-05 MS [0.9.0] I like this version, commented and pruned
all methods. Looks good now!
 * @updated 08-23-05 MS [0.9.1] Working to encapsulate this into a compiled
SWF component.
 */
class com.teotigraphix.styles.external.ExternalStyleCache
{
// mixed in from event dispatcher
public var dispatchEvent:Function;
public var removeEventListener:Function;
public var addEventListener:Function;
var EVT:Function = mx.utils.Delegate.create;

/**
The instance class name of this class.
*/
var className:String = ExternalStyleCache;

/**
 * The reference to or single instance of the ExternalStyleCache
 */
private static var _styleCache:ExternalStyleCache = null;

/**
 * The single object of external .css files.
 */
private var __dataProvider:Object;

/**
 * The private constructor, we also initialize some other stuff.
 * pThe EventDispatcher and a lazy reference to this singleton class
in the _global.styleCache property./p
 */
private function ExternalStyleCache()
{
if (_global.styleCache == undefined) {
_global.styleCache = this;
getDataProvider();
EventDispatcher.initialize(this);
}
}

/**
 * Returns the only access point into this class.
 * Create the _styleCache private static property, call getDataProvider
() which initializes the __dataProvider
 * array for all the ExternalStyleSheet instances to be hung.
 * @return the singleton ExternalStyleCache instance.
 * @usage var styleCache = ExternalStyleCache.getStyleCache ();
 */
public static function getStyleCache():ExternalStyleCache
{
if (_styleCache == null) {
_styleCache = new ExternalStyleCache();
}
return _styleCache;
}

/**
 * Returns the cache's dataProvider array, which why would I want this
public?
 * @return the cache's dataProvider array.
 */
private static function getDataProvider():Array
{
var cache = getStyleCache();
if (cache.__dataProvider == undefined) {
cache.__dataProvider = new Object(); //new Array

RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread Jason Hawryluk






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.0I 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 mailEnvoyé: lundi 5 juin 2006 17:43À: 
  flexcoders@yahoogroups.comObjet: RE: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3I've done some 
  work in this area as well, and postedan 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 Stuckihttp://blog.benstucki.net/
  
  From: "Jason Hawryluk" [EMAIL PROTECTED]Sent: Monday, 
  June 05, 2006 7:34 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3 
  yes 
  exactly, basicly they load a bare bones application component with a defined 
  mx:Styleand 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 SchmalleEnvoyé: lundi 5 juin 2006 
15:07À: flexcoders@yahoogroups.comObjet: 
Re: [flexcoders] Runtime CSS Styles Flex 2.0 
B3Hmm,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 
  inFlex 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 
SchmalleEnvoyé: lundi 5 juin 2006 
13:33À:flexcoders@yahoogroups.comObjet: 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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: 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

  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email 
  to: 
  [EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service.


-- What 
  goes up, does come down. --Flexcoders Mailing ListFAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
  SPONSORED 
  LINKS
  


  Web site design development
  Computer 

Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread Michael Schmalle



 But to be able to do it with out going

through every control and using the built in setStyle would be the cherry on

the cake.

yeah, it's nice.

I agree with you on Adobe, and getting a timeline. That is why I have
been dragging my feet on this. Knowing adobe, they did a good job and
it's almost done ;-)

Peace, MikeOn 6/6/06, Jason Hawryluk [EMAIL PROTECTED] wrote:









  







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.0I 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:
flexcoders@yahoogroups.com]De la part 
  de mailEnvoyé: lundi 5 juin 2006 17:43À: 
  flexcoders@yahoogroups.comObjet: RE: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3I've done some 
  work in this area as well, and postedan 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 Stuckihttp://blog.benstucki.net/

  
  From: Jason Hawryluk [EMAIL PROTECTED]Sent: Monday, 
  June 05, 2006 7:34 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3 
  yes 
  exactly, basicly they load a bare bones application component with a defined 
  mx:Styleand 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:
flexcoders@yahoogroups.com]De la part 
de Michael SchmalleEnvoyé: lundi 5 juin 2006 
15:07À: flexcoders@yahoogroups.comObjet: 
Re: [flexcoders] Runtime CSS Styles Flex 2.0 
B3Hmm,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 
  inFlex 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 
SchmalleEnvoyé: lundi 5 juin 2006 
13:33À:flexcoders@yahoogroups.comObjet: 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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: 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

  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email 
  to: 
  [EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject

Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread Jeremy Lu




Ely post in Ben's comment saying Adobe is working on this thing (although it might not make it to the v2 release). 

Maybe engineers from Adobe can confirm this ?

On 6/6/06, Michael Schmalle [EMAIL PROTECTED] wrote:









  



 But to be able to do it with out going

through every control and using the built in setStyle would be the cherry on

the cake.

yeah, it's nice.

I agree with you on Adobe, and getting a timeline. That is why I have
been dragging my feet on this. Knowing adobe, they did a good job and
it's almost done ;-)

Peace, MikeOn 6/6/06, Jason Hawryluk 
[EMAIL PROTECTED] wrote:









  







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.0I 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:

flexcoders@yahoogroups.com]De la part 
  de mailEnvoyé: lundi 5 juin 2006 17:43À: 
  flexcoders@yahoogroups.comObjet: RE: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3I've done some 
  work in this area as well, and postedan 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 Stuckihttp://blog.benstucki.net/


  
  From: Jason Hawryluk [EMAIL PROTECTED]
Sent: Monday, 
  June 05, 2006 7:34 AMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3 
  yes 
  exactly, basicly they load a bare bones application component with a defined 
  mx:Styleand 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:

flexcoders@yahoogroups.com]De la part 
de Michael SchmalleEnvoyé: lundi 5 juin 2006 
15:07À: flexcoders@yahoogroups.comObjet: 
Re: [flexcoders] Runtime CSS Styles Flex 2.0 
B3Hmm,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 
  inFlex 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 
SchmalleEnvoyé: lundi 5 juin 2006 
13:33À:flexcoders@yahoogroups.comObjet: 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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: 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

RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread David Mendels





Hi,

This will not be in Flex 2.0.

It is something we'd like to see in a future version of 
Flex (2.5? 3.0?) but we don't have a specific date or release planned 
yet. We'll get to that after we ship 2.0.

Regards,
David
Adobe

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy 
  LuSent: Tuesday, June 06, 2006 6:51 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3
  Ely post in Ben's comment saying Adobe is working on this thing 
  (although it might not make it to the v2 release). Maybe engineers 
  from Adobe can confirm this ?
  On 6/6/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  






But to be able to do it with out goingthrough every 
control and using the built in setStyle would be the cherry onthe 
cake.
yeah, it's nice.I agree with you on Adobe, and getting a 
timeline. That is why I have been dragging my feet on this. Knowing adobe, 
they did a good job and it's almost done ;-)Peace, Mike

On 6/6/06, Jason 
Hawryluk  [EMAIL PROTECTED] wrote:

  
  
  
  
  
  
  
  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.0I 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: 
flexcoders@yahoogroups.com]De la part de 
mailEnvoyé: lundi 5 juin 2006 17:43À: 
flexcoders@yahoogroups.comObjet: RE: 
[flexcoders] Runtime CSS Styles Flex 2.0 
  B3
  I've done some work in this area as 
  well, and postedan 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 
  Stuckihttp://blog.benstucki.net/
  
  From: "Jason 
  Hawryluk" [EMAIL PROTECTED]Sent: Monday, June 05, 2006 
  7:34 AMTo: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] Runtime CSS Styles Flex 2.0 B3 
  yes exactly, basicly they 
  load a bare bones application component with a defined 
  mx:Styleand 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: 
flexcoders@yahoogroups.com]De la part de Michael 
SchmalleEnvoyé: lundi 5 juin 2006 
15:07À: flexcoders@yahoogroups.comObjet: Re: 
[flexcoders] Runtime CSS Styles Flex 2.0 
B3Hmm,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 inFlex 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 
SchmalleEnvoyé: lundi 5 juin 2006 
13:33À:flexcoders@yahoogroups.comObjet: 
    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. 
  W

Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread Michael Schmalle



Thanks David!

Well, the community will put something out in the interum, we know a lot of developers could use this.

Peace, MikeOn 6/6/06, David Mendels [EMAIL PROTECTED] wrote:









  






Hi,

This will not be in Flex 2.0.

It is something we'd like to see in a future version of 
Flex (2.5? 3.0?) but we don't have a specific date or release planned 
yet. We'll get to that after we ship 2.0.

Regards,
David
Adobe

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy 
  LuSent: Tuesday, June 06, 2006 6:51 AMTo: 
  flexcoders@yahoogroups.comSubject: Re: [flexcoders] Runtime CSS 
  Styles Flex 2.0 B3
  Ely post in Ben's comment saying Adobe is working on this thing 
  (although it might not make it to the v2 release). Maybe engineers 
  from Adobe can confirm this ?
  On 6/6/06, Michael 
  Schmalle [EMAIL PROTECTED] 
  wrote:
  






But to be able to do it with out goingthrough every 
control and using the built in setStyle would be the cherry onthe 
cake.
yeah, it's nice.I agree with you on Adobe, and getting a 
timeline. That is why I have been dragging my feet on this. Knowing adobe, 
they did a good job and it's almost done ;-)Peace, Mike

On 6/6/06, Jason 
Hawryluk  [EMAIL PROTECTED] wrote:

  
  
  
  
  
  
  
  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.0I 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:
 
flexcoders@yahoogroups.com]De la part de 
mailEnvoyé: lundi 5 juin 2006 17:43À: 
flexcoders@yahoogroups.comObjet: RE: 
[flexcoders] Runtime CSS Styles Flex 2.0 
  B3
  I've done some work in this area as 
  well, and postedan 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 
  Stuckihttp://blog.benstucki.net/

  
  From: Jason 
  Hawryluk [EMAIL PROTECTED]Sent: Monday, June 05, 2006 
  7:34 AMTo: flexcoders@yahoogroups.comSubject: RE: 
  [flexcoders] Runtime CSS Styles Flex 2.0 B3 
  yes exactly, basicly they 
  load a bare bones application component with a defined 
  mx:Styleand 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:
 
flexcoders@yahoogroups.com]De la part de Michael 
SchmalleEnvoyé: lundi 5 juin 2006 
15:07À: flexcoders@yahoogroups.comObjet: Re: 
[flexcoders] Runtime CSS Styles Flex 2.0 
B3Hmm,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 inFlex 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 
SchmalleEnvoyé: lundi 5 juin 2006 
13:33À:flexcoders@yahoogroups.comObjet: 
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

Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-06 Thread Michael Schmalle



Michael, Jason  Jeremy, perhaps we should
open a project on osflash.com and start working on a common code base.

I am interested in this, I would leave the whole config up to you. I
have never done it, just tell me where I can get code and put code and
I am there.

Peace, Mike
On 6/6/06, Ben Stucki [EMAIL PROTECTED] wrote:









  











Well, it sounds like there is enough
interest in this to warrant further work and some indication that it won't
be available in the 2.0 release. Michael, Jason  Jeremy, perhaps we should
open a project on osflash.com and start working on a common code base. If
anyone is interested in contributing to this project, please email me
personally. Thank you.











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of David Mendels
Sent: Tuesday, June 06, 2006 7:38
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Runtime
CSS Styles Flex 2.0 B3











Hi,



This will not be in Flex 2.0.



It is something we'd like to see in a
future version of Flex (2.5? 3.0?) but we don't have a specific date or
release planned yet. We'll get to that after we ship 2.0.



Regards,

David

Adobe











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Jeremy Lu
Sent: Tuesday, June 06, 2006 6:51
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Runtime
CSS Styles Flex 2.0 B3


Ely post in Ben's comment saying Adobe is working on this thing (although it
might not make it to the v2 release). 

Maybe engineers from Adobe can confirm this ?






On 6/6/06, Michael
Schmalle [EMAIL PROTECTED]
wrote: 












But to be able to
do it with out going
through every control and using the built in setStyle would be
the cherry on
the cake.






yeah, it's nice.

I agree with you on Adobe, and getting a timeline. That is why I have been
dragging my feet on this. Knowing adobe, they did a good job and it's almost
done ;-)

Peace, Mike











On 6/6/06, Jason Hawryluk  [EMAIL PROTECTED] wrote:
















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.0I 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:
flexcoders@yahoogroups.com]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 postedan 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:Styleand
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:
flexcoders@yahoogroups.com]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
inFlex 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

[flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread sourcecoderia



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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread Michael Schmalle



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, MikeOn 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



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  










-- 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread Jason Hawryluk





I was 
thinking more along the lines of styles for components fill colors etc. Someone 
had done it inFlex 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:[EMAIL PROTECTED]De la part 
  de Michael SchmalleEnvoyé: lundi 5 juin 2006 
  13:33À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Runtime CSS Styles Flex 2.0 
  B3Hi,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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
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 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service. 


-- 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread Michael Schmalle



Hmm,

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

Peace, MikeOn 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 inFlex 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 SchmalleEnvoyé: lundi 5 juin 2006 
  13:33À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Runtime CSS Styles Flex 2.0 
  B3Hi,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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: 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 

  Visit your group flexcoders on the web. 

  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service. 


-- 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



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  








-- 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread Jeremy Lu



has anyone really started working on this real-time-change-CSS thing ?any project I can participate or take a look at ?thanks.On 6/5/06, 
Michael Schmalle [EMAIL PROTECTED] wrote:



Hmm,

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

Peace, MikeOn 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 inFlex 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 SchmalleEnvoyé: lundi 5 juin 2006 
  13:33À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Runtime CSS Styles Flex 2.0 
  B3Hi,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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: 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 

  Visit your group flexcoders on the web.
 

  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service. 


-- 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



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:

[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.




  








-- 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



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  















--
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL 

Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread Michael Schmalle



Jeremy,

real-time-change-CSS

Do you mean, Flex app loaded, user changes a style sheet, but the actual style sheet was loaded from 'some place' realtime?

If so, I have an open project that is comming up. Half ported from AS2, and the rest is just 'what needs to be done'.

I have way to many things on the fire but, projects comming up need
this functionality. In about 2-3 months I am getting back to that.
Probably a day late and a dollar short. If anybody starts something
before then, I have a lot I could offer.

Peace, MikeOn 6/5/06, Jeremy Lu [EMAIL PROTECTED] wrote:



has anyone really started working on this real-time-change-CSS thing ?any project I can participate or take a look at ?thanks.
On 6/5/06, 
Michael Schmalle [EMAIL PROTECTED] wrote:




Hmm,

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

Peace, MikeOn 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 inFlex 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 SchmalleEnvoyé: lundi 5 juin 2006 
  13:33À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Runtime CSS Styles Flex 2.0 
  B3Hi,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 
appreciatedJason--Flexcoders 
Mailing ListFAQ: 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 

  Visit your group flexcoders on the web.

 

  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service. 


-- 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



  Visit your group flexcoders on the web.


  To unsubscribe from this group, send an email to:


[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service

.




  








-- 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



  Visit your group flexcoders on the web.


  To unsubscribe from this group, send an email to:

[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service

.



  















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: 

RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread Jason Hawryluk





yes 
exactly, basicly they load a bare bones application component with a defined 
mx:Styleand 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 SchmalleEnvoyé: lundi 5 juin 2006 
  15:07À: flexcoders@yahoogroups.comObjet: Re: 
  [flexcoders] Runtime CSS Styles Flex 2.0 B3Hmm,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 
inFlex 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 
  SchmalleEnvoyé: lundi 5 juin 2006 
  13:33À: flexcoders@yahoogroups.comObjet: 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 
  appreciatedJason--Flexcoders 
  Mailing ListFAQ: 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 
  
Visit your group "flexcoders" on the web. 
To unsubscribe from this group, send an email 
to: [EMAIL PROTECTED] 

Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
  
  
  -- What goes 
up, does come down. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
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 

  Visit your group "flexcoders" on the web. 
  To unsubscribe from this group, send an email 
  to: [EMAIL PROTECTED] 
  
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service. 



-- 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] Runtime CSS Styles Flex 2.0 B3

2006-06-05 Thread mail




		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 Stuckihttp://blog.benstucki.net/
		

From: "Jason Hawryluk" [EMAIL PROTECTED]Sent: Monday, June 05, 2006 7:34 AMTo: flexcoders@yahoogroups.comSubject: 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 SchmalleEnvoyé : lundi 5 juin 2006 15:07À : flexcoders@yahoogroups.comObjet : 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, MikeOn 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 SchmalleEnvoyé : lundi 5 juin 2006 13:33À :flexcoders@yahoogroups.comObjet : Re: [flexcoders] Runtime CSS Styles Flex 2.0 B3Hi,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, MikeOn 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 appreciatedJason--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKSWeb site design developmentComputer software developmentSoftware design and developmentMacromedia flexSoftware development best practiceYAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to:  [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.-- What goes up, does come down. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKSWeb site design developmentComputer software developmentSoftware design and developmentMacromedia flexSoftware development best practiceYAHOO! GROUPS LINKS Visit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to:  [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.-- 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.