Okay, thanks everyone!
On 2/5/06, Tyler Wright <[EMAIL PROTECTED]> wrote: > > In flash you'll have to do your own BASE tag. You'll either need to > prepend > which is probably the best way to go, or do something crazy like > > MovieClip.prototype.oldLoadMovie = MovieClip.prototype.loadMovie; > MovieClip.prototype.loadMovie = function(url) { > this.oldLoadMovie("http://prepended.BASE" + url); > } > > However, I strongly recommend you don't do this in real coding that others > might curse you for ;) > > if the baseURL variable doesn't exist, the call will still work. Then, if > > you wanted to, you could pass in the baseURL value through flashvars or > > something, so you wouldnt have to recompile whenever you wanted to > change > > it. > > > Only in Flash 6 ... if you have a Flash 7+ movie you're value will end up > " > undefinedmyfile.xml". It's one of those annoying things you just have to > keep track of. Just remember to validate your flashvars. > > _global.baseURL = (_root.baseurl != undefined) ? _root.baseurl : ""; > > Tyler > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders