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);
... 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:
As mentionned before, the orthodox way is to follow OOP philosophy,
but it's actually not immediate to get training about it, and also
follow the logical consequences of this choice, such as adopting proper
tools for actionscript editing (eg:FlashDevelop) and versioning
(eg:SVN), etc..
Even
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
4 matches
Mail list logo