Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-29-2008, 07:55 AM   #1
loproman
Registered User
 
Join Date: Mar 2008
Posts: 9
Default Refresh css style in AIR application at runtime

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.
loproman is offline   Reply With Quote
Old 03-31-2008, 06:30 PM   #2
dr_zeus
Flash Adventurer
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,975
Default

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.
__________________
Josh Tynjala | JOSHBLOG | Bowler Hat Games
dr_zeus is offline   Reply With Quote
Old 04-16-2008, 01:56 PM   #3
esyrett
Registered User
 
Join Date: Apr 2008
Posts: 1
Default AIR, loadStyleDeclarations, and security domains

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.
esyrett is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 01:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.