RE: [Flashcoders] reading a css from www?

2010-04-18 Thread Benny
...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] Namens sebastian Verzonden: zaterdag 17 april 2010 23:53 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] reading a css from www? sweet thanks Benny, this replacement method worked! yaay! btw, as far as i can tell, the flash file tries

RE: [Flashcoders] reading a css from www?

2010-04-17 Thread Benny
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);

RE: [Flashcoders] reading a css from www?

2010-04-17 Thread Benny
: '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

Re: [Flashcoders] reading a css from www?

2010-04-17 Thread sebastian
sweet thanks Benny, this replacement method worked! yaay! btw, as far as i can tell, the flash file tries to load the files relative to the path of the current URL, and not the path relative to the SWF itself... so if if the HTML file is in: http://mysite.com/somefoloder/index.html and you

Re: [Flashcoders] reading a css from www?

2010-04-16 Thread Karl DeSaulniers
//check to see if testing locally, or deployed live if ((this.loaderInfo.url.indexOf(http)0) || (this.loaderInfo.url.indexOf(testserver)1) || (this.loaderInfo.url.indexOf(localhost)1)) { //live test.foo = LoaderInfo