ActionScript 3.0 :: Put A Right Parentheses Somewhere?
Jul 11, 2010
I get an error telling me to put a Right parentheses somewhere??
Scene=Scene 1, layer=Layer 1, frame=1, Line 69')' expected
I know that my dot syntax grammar is really bad but WHERE on earth does the right parentheses go in the code?
Code:
if (minion.x, minion.y hitTestPoint(range.x, range.y, true))
nvm I got it to work after I realized I was using hitTestPoint wrong
should have been minion.hitTestPoint instead
View 2 Replies
Nov 28, 2009
took me like 20 minutes to get why my code is not functionning... this line: tempRef.x=(limitL-dist-tempRef.width/2)+(tempRef.width+dist)*(i+1); after auto format becomes like this: tempRef.x=limitL-dist-tempRef.width/2+tempRef.width+dist*i+1; that's not the same thing at all...may I know why this is happening?
View 2 Replies
Sep 3, 2010
For some reason I can't seem to match a parentheses in Flex using Regex to save my life. What's wrong with this?
var commandTxt:String = "switchview(adf)";
var switchViewArray:Array = commandTxt.match(new RegExp("switchview(", "i"));
I've tried dozens of things, but I can't seem to get a match the parentheses. What's the catch here?
View 1 Replies
Feb 26, 2010
[Code]...
Results into: Implicit coercion of a value of type Boolean to an unrelated type Number. Why do parentheses turn into Booleans into Numbers? Can't I use bitwise operations?
View 4 Replies
Apr 2, 2011
I want to do something like this:"3*4".replace(/([0-9]+)[*]([0-9]+)/g, String(Number("$1") * Number("$2")))And no, i don't want to do that, but something more complex.
View 2 Replies