parse error, why?

View: New views
2 Messages — Rating Filter:   Alert me  

parse error, why?

by harald-13 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to make some changes in a swf-file like color, so I used
'flare' to decompile the file in an as-file.
After that I did (without made any changes in de as-file):

$ mtasc [xxx.as] -swf [xxx.swf]

to compile the as back into swf just for testing my mtasc-installation.
But in stead of compiling, it gives an error-message:

videoplayer.as:1: characters 0-5 : parse error Unexpected movie

Begin of the as-file: (won't copy the whole because it's VERY long)
movie 'video_presentation.swf' {
// flash 8, total frames: 1, frame rate: 12 fps, 650x300 px, compressed

I also tried adding '-main' to the command

( $ -main mtasc [xxx.as] -swf [xxx.swf] )

but that didn't work out either.

Even some other decompiled swf-files returned by compiling with mtasc
the same type of error.

Can someone tell me what i am doing wrong?

Thanks.

With kind regards,
Harald ter Haar  








--
MTASC : no more coffee break while compiling

Re: parse error, why?

by Ralf Bokelberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Harald

mtasc compiles plain as2 actionscript.
It looks like Flare uses something else as the output format.

Maybe swfmill is the better option for you.
It decompiles your swf to xml, lets you edit it
and compiles it back to a swf

Cheers
Ralf.

On Jan 28, 2008 1:32 AM, Harald <harald@...> wrote:

> Hi,
>
> I would like to make some changes in a swf-file like color, so I used
> 'flare' to decompile the file in an as-file.
> After that I did (without made any changes in de as-file):
>
> $ mtasc [xxx.as] -swf [xxx.swf]
>
> to compile the as back into swf just for testing my mtasc-installation.
> But in stead of compiling, it gives an error-message:
>
> videoplayer.as:1: characters 0-5 : parse error Unexpected movie
>
> Begin of the as-file: (won't copy the whole because it's VERY long)
> movie 'video_presentation.swf' {
> // flash 8, total frames: 1, frame rate: 12 fps, 650x300 px, compressed
>
> I also tried adding '-main' to the command
>
> ( $ -main mtasc [xxx.as] -swf [xxx.swf] )
>
> but that didn't work out either.
>
> Even some other decompiled swf-files returned by compiling with mtasc
> the same type of error.
>
> Can someone tell me what i am doing wrong?
>
> Thanks.
>
> With kind regards,
> Harald ter Haar
>
>
>
>
>
>
>
>
> --
> MTASC : no more coffee break while compiling
>



--
Ralf Bokelberg <ralf.bokelberg@...>
Flex & Flash Consultant based in Cologne/Germany

--
MTASC : no more coffee break while compiling