[prev in list] [next in list] [prev in thread] [next in thread] 

List:       swftools-common
Subject:    [Swftools-common] onClipEvent compilation error
From:       Ta AQui <ta_aqui_1 () hotmail ! com>
Date:       2007-11-30 0:54:15
Message-ID: BAY131-W24D442C11B472A7A755881E7710 () phx ! gbl
[Download RAW message or body]

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!

_________________________________________________________________
Put your friends on the big screen with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007



[Attachment #3 (text/html)]

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi,<br>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.<br><br>I cut the \
code as most as possible in order to identify if something else was affecting it, and \
it ended up like this:<br><br><br>--------code begin----------<br>.flash fps=50 \
filename="test.swf" compress bbox=720x570<br><br>&nbsp; \
.action:<br><br>&nbsp;&nbsp;&nbsp; onClipEvent (enterFrame) \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x = 0;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; \
.end<br>.end<br>--------code end----------<br><br>I get this error every time I try \
to compile it:<br><br>---------------output \
begin-------------<br>C:\Bin\swftools&gt;swfc test.sc<br>error:<br>&nbsp;&nbsp;&nbsp; \
onClipEvent (enterFrame) \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^<br>Line 31:&nbsp; Reason: 'syntax error'<br>"test.sc", line 7 column 10: error- \
Couldn't compile ActionScript<br><br>C:\Bin\swftools&gt;<br>---------------output \
end-------------<br><br>Can anybody help me?<br><br>Thanks in advance!<br></div><br \
/><hr />Get the power of Windows + Web with the new Windows Live. <a \
href='http://www.windowslive.com?ocid=TXT_TAGLM_Wave2_powerofwindows_112007' \
target='_new'>Power up!</a></body> </html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic