[xray] Minimal connector-only code
John Grden
neoriley at gmail.com
Thu Mar 16 10:36:16 EST 2006
Ok, done and uploaded. Here are the notes:
Took out unnecessary legacy files, removed mx package, updated line 186 of
XrayLoader.as to include strong typing as per Darren Cook and took out the
import statement for FlashOut.
I also included Karina's XrayConnect.as singleton ;)
Here's the class I used to test with FLASC:
import com.blitzagency.xray.util.XrayLoader;
class XrayConnectorTest
{
function XrayConnectorTest()
{
XrayLoader.loadConnector("xrayConnector_1.4.5.swf", _level0, true);
}
public static function main(mc:MovieClip)
{
var connection = new XrayConnectorTest();
}
}
worked great with the package I just uploaded:
http://mirror1.cvsdude.com/trac/osflash/xray/browser/downloads/connector_only/xray_connector_only.zip?format=raw
On 3/15/06, Darren Cook <darren at dcook.org> wrote:
>
> > 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
>
> _______________________________________________
> xray mailing list
> xray at osflash.org
> http://osflash.org/mailman/listinfo/xray_osflash.org
>
--
John Grden - Blitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/xray_osflash.org/attachments/20060316/ab53ca35/attachment.htm
More information about the xray
mailing list