Erp! Just discovered the answer to this in a recent thread - the
direction of the slash! <slap!> Sorry, won't do it again  8\

Scott

On 8/23/05, Scott Whittaker <[EMAIL PROTECTED]> wrote:
> Hi guys,
> 
> I'm working on a default ANT task which takes a bunch of arguments and
> then uses MTASC to either generate a new SWF or assimilate an existing
> one (if the "in_swf" property is defined) and then either launch the
> final out_swf in the Flash projector or in a web browser (if the
> "html" property is defined).
> 
> This is all working great, except the internal pathing of the Flash
> Projector seems to be screwed up - it doesn't seem to load the
> external XML file it needs (which is referenced in a class file using
> relative addresses). Needless to say it works just fine when launched
> in a web browser, opened directly, or via the command-line using the
> same absolute paths supplied to ANT.
> 
> The ANT target is described here:
> 
> <!-- LAUNCH FLASH PLAYER -->
> <target name="launchPlayer" unless="html.exists">
>    <echo message="Launching ${out_swf}"/>
>    <exec executable="${flashPlayer}" dir="${basedir}/${deploy_dir}"
> spawn="true">
>        <arg line='${basedir}/${deploy_dir}/${out_swf}'/>
>    </exec>
> </target>
> 
> So to recap: the Projector is launched correctly, the output SWF is
> opened correctly, but the internal pathing (or something else?) is
> messed up. Of course being Flash it fails silently, so it's difficult
> to determine, but pathing seems the most likely explanation.
> 
> I have tried changing the "dir" attribute of the exec task to various
> values with no change in behaviour. Has anyone managed to do this
> successfully or can offer any advice?
> 
> Thanks!
> 
> Scott
>

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to