The flash compiler takes the scripts in the movie and creates a cache of
them called ASO files. Is this script in an external file?
If it's not try defining it differently and don't forget that Flash has gone
a lot more strict, so set your datatypes:
doSomething = function ():Void
{
var z:Number = 0;
}
!k
-----Original Message-----
From: Josh Nathanson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 10:50 AM
To: CF-Talk
Subject: Bizarre Flash/AS error
Hey all,
Just getting into Flash again after a few years...got the free trial of
Flash 8...trying to do some action scripting. When I try to define a
function, like so:
function doSomething() {
var z = 0;
}
Then I preview, I get the error:
Line 23: '{' expected
function doSomething() {
However, the curly bracket is clearly there, it even includes it in the
error message. There are no other functions or curly brackets in the AS
file that would be mucking things up.
When I do "check script", I get "the script contains no errors."
What am I missing here? Could I have gotten a bad download or something?
Could it be that you can't define functions in the trial version? Arg.
-- Josh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253762
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4