... or just load the css file relative. As far as I know you are not required to pass in absolute URLs
-----Oorspronkelijk bericht----- Van: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] Namens Benny Verzonden: zaterdag 17 april 2010 14:01 Aan: 'Flash Coders List' Onderwerp: RE: [Flashcoders] reading a css from "www"? You could use the url from which your swf is loaded, replace the filename of the swf by that of the css. In your main movie (from top of my haead, i.e. not tested ;-) use something like: var cssFullURL:String = this.loaderInfo.url.replace(/thecallingfile\.swf /,"cssFile.css"); trace(cssFullURL); _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __________ Informatie van ESET NOD32 Antivirus, versie van database viruskenmerken 5035 (20100416) __________ Het bericht is gecontroleerd door ESET NOD32 Antivirus. http://www.eset.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders