[xray] Minimal connector-only code
Darren Cook
darren at dcook.org
Wed Mar 15 21:05:03 EST 2006
> But my question would be, why use it instead of XrayLoader? The only
> savings typing-wise is 1 argument, but you've now got extra kb added to your
> file:
>
> import com.blitzagency.xray.util.XrayLoader;
> XrayLoader.loadConnector("xray.swf", _level0, true);
This didn't work for me before, but I just tried it now and it works, so
it must have been something else I was doing wrong before.
And in that case this is fine - I have no particular need for a
singleton (at least at the moment).
Whenever I use this (or the XrayConnect alternative) I get a warning:
...xray/util/XrayLoader.as:26: characters 0-6 : Warning import not used
If I comment out line 26: "import com.blitzagency.xray.util.Flashout;"
then everything still seems to work. Is that line required?
Also I'd like to use mtasc -strict. It has been complaining about line
186 of XrayLoader.as:
private static function onLoadProgress(target_mc,
loadedBytes, totalBytes)
Changing that to:
private static function onLoadProgress(target_mc:MovieClip,
loadedBytes:Number, totalBytes:Number)
was the only fix needed, and now -strict works fine!
Darren
More information about the xray
mailing list