...@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
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);
: '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
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
//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
5 matches
Mail list logo