View Full Version : Refresh css style in AIR application at runtime
loproman
03-29-2008, 07:55 AM
Hello, Does anyone know of a way to refresh an AIR application's stylesheets at runtime? When I work on webpages, I refresh a lot as my implementation comes along. I find it very frustrating that in developing an AIR app, I have to stop and restart my application to see my progress.
dr_zeus
03-31-2008, 06:30 PM
You can use StyleManager.loadStyleDeclarations() to load a stylesheet at runtime in Flex. I see no reason why you couldn't temporarily add a button to your app to reload a style SWF whenever you want.
esyrett
04-16-2008, 01:56 PM
Yes, it's dead easy to call loadStyleDeclarations() to dynamically load up your stylesheet... but I wonder if you've also hit the problem I'm having....
I'm running in an AIR application and requesting a swf from a web server. I get an error in StyleManagerImpl - "SWF is not a loadable module". I've seen elsewhere that this error arises because of security domain issues, which makes sense. AIR obviously views the webserver as a different domain to the local machine etc. I've tried crossdomain.xml on the web server but that didn't work. Any help gratefully appreciated.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.