| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2008
Posts: 9
|
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.
|
|
|
|
|
|
#2 |
|
Flash Adventurer
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
|
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.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2008
Posts: 1
|
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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Air - Open local application | playazls | ActionScript 3.0 | 0 | 03-27-2008 03:13 PM |
| true type fonts TTF embeded at runtime with flash application | mike123 | ActionScript 2.0 | 0 | 03-18-2008 02:18 PM |
| [solution] MX Components in pure actionscript... | shadowmint | ActionScript 3.0 | 3 | 10-18-2007 12:53 PM |
| Possible to style a single extracted XML node with CSS? | deepmike | ActionScript 2.0 | 5 | 02-16-2007 12:21 AM |