Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-10-2009, 11:14 PM   PM User | #1
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
syntax error in actionscript

I am trying to create 3D rotation gallery, but I am getting an error stating I am missing a brace in my code. Although I cant imagine how a brace is missing. I went through a video tutorial and my code is exactly as his.

I have linked up the external a.s. file through the class but still the problem persists.

Code:
package {
	
	import gs.*;
	import gs.easing.*;
	import flash.display.*;
	import flash.events.*;
	
	public class photopanels extends MovieClip {
		
		public function photopanels(): void {
			
			addEventListener(Event.ENTER_FRAME, loop);
		}
		
		private function loop(e:Event):void {
			
			var distx:Number = mouseX /600;
			var disty:Number = mouseY /500;
			Tweenlite.to(con, 2, {
						 rotationY:(-70 + (140*distx))
						 rotationX:(70 - (140*disty))
						 ease:Expo.easeOut
						 });
		}
	}
}
error:

1084: Syntax error: expecting rightbrace before rotationX.
rotationX70 - (140*disty))

not sure what I could be doing wrong.

Thanks a lot in advance for your help
surreal5335 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:05 PM.


Advertisement
Log in to turn off these ads.