swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: Re: [Swftools-common] .include fails on Windows]


From: @ndré THEVENIN
Subject: [Fwd: Re: [Swftools-common] .include fails on Windows]
Date: Fri, 18 Apr 2008 18:50:22 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9



I have already noticed this problem but have got no answer

The problem is in a incorrect file format handling for files formatted PC with line terminations CR/LF

If you save your files in format UNIX, the include will work OK

I send again the correction discarding this problem


My files are PC formatted (end of lines with 0d 0a), and the HandleInclude function doesn't handle correctly thes lines.

I just sugggest you a small modification in this function

while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n' )) {
len--;
}

could become

while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n' || text[len-1] == '\r')) {
len--;
}

and PC (and also Mac) files will be correctly handled


Maybe a next dev release will solve this problem



Jon Hartford a écrit :
I'm using Windows XP Home (SP2) and I've tried this with 0.8.1 and the dev release from the downloads page.

File includer.sc:
-----------------------
.flash name="includer.swf"
    .include included.sci
    .put b2 x=0 y=0
.end

File included.sci:
------------------------
.box b2 100 100 color=blue fill=blue

When compiling includer.sc, swfc responds "Couldn't open included.sci". It does the same thing if I use quotation marks or if I use the absolute path (.include "C:/Program Files/swftoolsdev/included.sci"). If I change the file names or use different code in the scripts it fails also.


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Pas de virus dans ce courrier reçu. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.13/1378 - Release Date: 15/04/2008 09:12


-- 
J'ai toujours rêvé d'un ordinateur qui soit aussi facile à utiliser qu'un téléphone. Mon rêve s'est réalisé: je ne sais plus comment utiliser mon téléphone.

Bjarne Stroustrup (créateur de C++) 


-- 
J'ai toujours rêvé d'un ordinateur qui soit aussi facile à utiliser qu'un téléphone. Mon rêve s'est réalisé: je ne sais plus comment utiliser mon téléphone.

Bjarne Stroustrup (créateur de C++) 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]