Professional :: Expecting Rightbrace Before End Of Program
Jan 3, 2012Im trying to do an animation, how do I solve Line 26 1084:Syntax Error:expecting rightbrace before end of program?package.[code]
View 12 RepliesIm trying to do an animation, how do I solve Line 26 1084:Syntax Error:expecting rightbrace before end of program?package.[code]
View 12 RepliesSo I'm doing this basic coding thing to make an object "shoot" bullets. It's from a tutorial video. My code matches his exactly unless I'm missing a tiny detail. Basically the code looks like this:
package {
import flash.display.Sprite;
import flash.events.Event;
[Code]....
And the compiler error I'm getting says this:Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }And yes it does say it twice. The vid I'm learning from is this:[URL]
I am trying to create a page flipping motion in flash but I keep getting the above error.
import fl.transitions.Tween;
import fl.transitions.easing.Strong;
import fl.transitions.TweenEvent;
[code]...
something work with it.1084: Syntax error: expecting rightbrace before end of program. what wrong with it?
var bananacounter:Number = 0;
banana_mc.addEventListener(MouseEvent.CLICK, feed);
function feed(event:MouseEvent):void
[Code].....
I'm making a login and Password (based on a tutorial) therefore I've used this code:
stop();
submit_btn.addEventListener(MouseEvent.CLICK,subClick);
failed_txt.background = false;[code].........
When I use this code than I get the following message: Scene1 Layer"Actions", Frame 1
1084: Syntax error: expecting rightbrace before end of program.
The following code is in an .as file and when I run my movie I get two errors, both 1084:expecting leftbrace before semicolon and rightbrace before end of program. Do you see what I am missing? where it is missing? This is supposed to be a drag and drop program and I just can't get it to work
Code:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
[Code].....
I am getting the following error when using the below code:1084: Syntax error: expecting rightbrace before rightparen.[code]
View 1 RepliesI can't get rid of this syntax error. Basically I have a table and you just drag and drop objects into it, but I keep getting these syntax errors.three syntax errors.
1. 1084: Syntax error: expecting rightparen before rightbrace.
2.1084: Syntax error: expecting identifier before rightbrace.
3.1083: Syntax error: else is unexpected.
Here's my code where it's happening.
function test_match(target,obj) {
// test if either one of the four pairs match
if ( (target == box_bright && obj == oblood) ||[code]......
I've gone through my code over and over and I can't see what is wrong with my code. Here is the error:
1084: Syntax error: expecting rightbrace before addEventListener
package{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class FunButton extends MovieClip{
public function FunButton(){
[Code] .....
I keep getting these error messages:
Code:
1084: Syntax error: expecting in before colon.
1084: Syntax error: expecting rightbrace before rightparen.
Checked it in the Flash Help to figure out what the issue was and it didn't help much, here's the part of the code I'm having trouble with:
Code:
function you_fail(){
for(w:int=0;w<array;w++) { <--- HERE!
for(z:int=0;z<array;z++) {
[code]....
I am trying to learn flash and make forms with them. I keep getting this error... 1084: Syntax error: expecting leftperan before colon here is my code function sent:(e:Event):void why am I getting this error?
View 1 RepliesIm trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..
// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};
Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?
View 2 RepliesI have a small animation I need in a flv format.Here's what I did...
exported avi from 3D program
converted to flv and imported into flash CS4
embed into timeline, added a logo
I published it, but I need a .flv, not a .swf.
I was curious if you can take an existing flash program and get it to run in Air, or do you have to recode the entire thing. I see lots of stuff on Flex to Air, but not much of anything on Flash to Air.
View 5 RepliesI'm setting up a new resume website in Flash CS5, and I have created a button so people can click the button to download a copy of my PDF resume, but how to I program the button so it downloads the PDF file?
View 12 RepliesI need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.
View 1 RepliesI have a flash program written in Action Script 3. It worked fine on XP but I recently moved to windows 7 and now I have problems. It is a simple file upload program. In Windows 7 the progress moves really fast to 100% like it is reading a buffer and not what is being sent over the internet. Once it reaches 100%, the program hangs (sometimes hangs the browser) until the file has finished uploading. The program still works in XP so is this a known issue with Windows 7?
View 3 RepliesEver since I installed Flash CS4 on my computer, it runs fine for a while before becoming really slow to respond and a pain to use, so I have gone back to using Flash 8 which runs fine. Is this a problem with my computer or the program?
View 3 RepliesI'd like to create a simple "prize draw" program that randomly selects a name (or number) from a list of names, I'd like it to be my own custom version. For a programmer this is probably the easiest thing but I'm new to programming (beginner), don't eve know if I'm in the right subcategory (flash).
View 1 RepliesEverytime I try to make a change by scrubbing a number in the motion editor, the program crashes with no explanation as to what went wrong. How do I stop this from happening? I was viewing an online video tutorial when it happened. If it helps, here is some information about my computer:
[Code]...
My flash is in dutch, but most tutorials. So i would like to change the language of the program to English aswell.
View 1 Replieserror:
Scene 1, Layer 'PreLoader', Frame 1, Line 11087: Syntax Error: extra characters found after end of program
onClipEvent (enterFrame) { loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal(); if (percent == undefined) percent = 0; percent -= (percent-
[code].....
how can I select same color shapes in adobe flash program ? for example we assume 10 rectangle shapes. 3 of them are red others are green. I want to use only one click or method to select 3 of them.
View 2 RepliesI am creating a project that will have 28 different "link" actions to appropriate flv clips that will then play in the center of my program/project. I am starting to realize that in Flash CS4 you can only import one flv clip at a time. How can I bring in multiple flv clips? I have started to create seperate layers for all the possible flv clips then I have created buttons out of my text and then provided script that would look for the mouse event of "click" that would then send the user to a lable that I have named on an "action/lable" layer thus playing the appropriate layer or flv clip.
View 2 Repliesproduce some very simple checkboxes to insert into an elearning program.The Checkboxes he created before he left are apparently overly complex and refer to _root and/or _level0, which is a no-no for the elearning software.I've done some web searches to see what I can find but honestly I haven't felt this stumped since first year calculus.
View 3 Replies after doing:"- Make a new button on the first keyframe and name it my_button - Select the keyframe not the button and open the actions panel (F9) - Attach the following code and test my_button.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(event:MouseEvent):void{ navigateToURL(new URLRequest("http://www.YOUR_PAGE.com")); } "In Flash File Actionscript 3.0I get:1087: Syntax error: extra characters found after end of program. What i need to do now to make it work?
I am looking for a tutorial on how to declare different attributes or capabilities for a Adobe Flash player. I have the following .html file:
[Code]...
How do tweet the parameter to get the video available with a fast forward that works, and a progress bar ( I do not know the correct name for this action) And in general where can I get instruction on how to program a Flash player in a .html file?
Is there a program out I can install or play on my Samsung Galaxy 5 Epic 4G that will work?I need to access web sites for my business from my phone.
View 1 RepliesAfter hitting next on this animation you can see there appears to be blank areas on the animation. If you mouse over them you will see buttons appear which is their "over state." When I publish the animation and preview it in Adobe Flash CS5.5 all the buttons are visible and work correctly. It is only in the brower (chrome, firefox, safari) with up to date Flash Player that is is not working. This is happening in a number of animations I created originally in CS4 last year, and am updating them as CS5.5 using AS3.
View 5 Replies