[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] onClipEvent compilation error
From: |
Vladimir Dzhuvinov |
Subject: |
Re: [Swftools-common] onClipEvent compilation error |
Date: |
Tue, 04 Dec 2007 20:20:29 +0200 |
User-agent: |
Thunderbird 2.0.0.9 (X11/20071031) |
Hi again,
The swftools version I use is more recent, it's a development snapshot
from 20th Nov. 2007 ago downloaded from
http://www.swftools.org/download.html This should explain the error
message difference.
As far as I know there are different language versions of ActionScript
and it could be that swftools has only support for an older ActionScript
version that doesn't have onClipEvent() yet.
But then I read
[http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001753.html]
that onClipEvent() has been around since ActionScript 1.0/Flash Player
5, so it could be something else.
Could it be that the compiler optimises away the handler on noticing
that it doesn't do anything? ("Warning: freeing zero action...")
Vladimir
> Thank you for replying. I was introduced to ActionScript one week ago
> only, so I think you know more than me!
> I'm using version 0.8.1; I'm not quite sure how to know the date and build.
> I tried to compile with "-v" but I still didn't get the same warning
> message as you did.
> Let's see if someone on the list has any tips about it.
> Thanks again,
>
> Marcelo.
>
> ------------------------------------------------------------------------
>> Date: Fri, 30 Nov 2007 08:40:56 +0200
>> From: address@hidden
>> To: address@hidden
>> Subject: Re: [Swftools-common] onClipEvent compilation error
>>
>> Hi,
>>
>>
>> I know little ActionScript, but wanted to mention that on my console
>> with SWFtools 2007-11-20-1333 it returned a somewhat more specific error:
>>
>> '''
>> error:
>> onClipEvent (enterFrame) {
>> ^
>> Line 3: Reason: 'syntax error'
>> Warning: freeing zero action"test-as.sc", line 3 column 10: error-
>> Couldn't compile ActionScript
>>
>> '''
>>
>> Vladimir
>>
>>
>> Ta AQui wrote:
>> > Hi,
>> > I've been trying to compile a actionscript within a swfc script, but I
>> > keep getting syntax error. I've tried both Windows and Linux versions
>> > but the results are the same.
>> >
>> > I cut the code as most as possible in order to identify if something
>> > else was affecting it, and it ended up like this:
>> >
>> >
>> > --------code begin----------
>> > .flash fps=50 filename="test.swf" compress bbox=720x570
>> >
>> > .action:
>> >
>> > onClipEvent (enterFrame) {
>> > x = 0;
>> > }
>> > .end
>> > .end
>> > --------code end----------
>> >
>> > I get this error every time I try to compile it:
>> >
>> > ---------------output begin-------------
>> > C:\Bin\swftools>swfc test.sc
>> > error:
>> > onClipEvent (enterFrame) {
>> > ^
>> > Line 31: Reason: 'syntax error'
>> > "test.sc", line 7 column 10: error- Couldn't compile ActionScript
>> >
>> > C:\Bin\swftools>
>> > ---------------output end-------------
>> >
>> > Can anybody help me?
>> >
>> > Thanks in advance!
--
Vladimir Dzhuvinov * www.TheTransactionCompany.com * PGP key ID AC9A5C6C
signature.asc
Description: OpenPGP digital signature
- Re: [Swftools-common] onClipEvent compilation error,
Vladimir Dzhuvinov <=