Ah, that looks pretty interesting :) thanks for your reply - I'll see what I 
can do.

--- In flexcoders@yahoogroups.com, "Jake Churchill" <j...@...> wrote:
>
> You wouldn't embed the SWF if you are loading it using StyleManager.  The
> Stylemanager makes an HTTP request for the compiled CSS file.
> 
>  
> 
> Here's an example of something that I did recently:
> 
>  
> 
> var o:Object = Application.application.parameters;
> 
> if( o.hasOwnProperty('sessionid') )
> 
>      Model.instance.sessionID = o.sessionid;
> 
> if( o.hasOwnProperty('site_id') )
> 
>      Model.instance.site_id = o.site_id;
> 
> if( o.hasOwnProperty('config') )
> 
> {
> 
>      Model.instance.configFile = o.config + ".xml";
> 
>      Model.instance.styleDeclarations = o.config + ".swf";
> 
> }
> 
>                 
> 
> if( Model.instance.styleDeclarations )
> 
>  
> StyleManager.loadStyleDeclarations("path_to_your_compiled_css_swf"+Model.ins
> tance.styleDeclarations,true,true);
> 
>  
> 
> I load a config parameter in from FlashVars and based on that I load styles.
> 
> 
>  
> 
> In order to compile the css to a SWF, just right click on it and select that
> option.
> 
>  
> 
> Jake Churchill
> CF Webtools
> 11204 Davenport, Ste. 100
> Omaha, NE  68154
>  <http://www.cfwebtools.com> http://www.cfwebtools.com
> 402-408-3733 x103
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of a.scavarelli
> Sent: Thursday, May 21, 2009 3:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Any ideas on how to embed a styleDeclaration swf
> compile time?
> 
>  
> 
> 
> 
> 
> 
> 
> I am currently having to load one swf into a swf-loading application; but
> one of the swf's has a styling swf attached to it.
> 
> The problem is that I can only load one swf and so I need the styling swf to
> be embedded into the main swf somehow.
> 
> StyleManager.loadStyleDeclarations("theme.swf");
> 
> [Embed(source="assets/workspace_rb_en_US.swf")]
> [Bindable]
> public var theme:Class;
> 
> seems to only accept a url input so if i were to embed the swf how would I
> load it?
> 
> Any help would be greatly appreciated as I don't know how to go about this
> :)
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.339 / Virus Database: 270.12.35/2124 - Release Date: 05/21/09
> 06:22:00
>


Reply via email to