Copy link to clipboard
Copied
I can not figure out what i need to do with this because I keep getting the same error:
"1084: Syntax error:expecting rightbrace before end of program."
Here is my code:
begin.onRelease = function() {
rnd = random(8);
if (rnd>3) {
if (rnd==7) {
rnd=11;
} rnd = rnd-7;
} rotate = true;
}
onEnterFrame = function() {
if (rotate) {
wheel._rotation += ((rnd*45)-wheel._rotation)/10;
}
Thank You.
Based on what yoiu show there is an ending brace missing... right at the very end.
You are posting AS2 code in the AS3 forum. If you continue to have a problem, repost in the AS1/2 forum.
http://forums.adobe.com/community/flash/flash_actionscript?view=discussions
Copy link to clipboard
Copied
Based on what yoiu show there is an ending brace missing... right at the very end.
You are posting AS2 code in the AS3 forum. If you continue to have a problem, repost in the AS1/2 forum.
http://forums.adobe.com/community/flash/flash_actionscript?view=discussions
Copy link to clipboard
Copied
Well I got it from somebody else but I am trying to get a wheel to spin randomly by the click of a button... Do you have any code for that because the rest of my program is 3.0 and i was under the impression that this was 3.0 as well..
Thanks
Find more inspiration, events, and resources on the new Adobe Community
Explore Now