XML syntax error 1084

Hi,
this is my first post on the forum and I'm a new to Flash.
I got an error which I can't seem to figure out on my own what is the problem, I've read through some of the 1084 errors but still couldn't figure it out
I got "1084: Syntax error: expecting rightparen before colon" on this line: myXML = new XML(e:target.data);
And here is the whole code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE,onLoaded);
var myXML:XML;          // Variable to hold XML class
function onLoaded (e:Event):void{
myXML = new XML(e:target.data);
loader.load(new URLRequest("names.xml"));
trace(myXML);
Thanks in advance
Regards Sakujin

I've discovered the error after I got help from a friend the culprit was a colon instead of a punctation after XML(e.target.data); instead of XML(e:target.data)
Thanks for everyone that has visited my post.

Similar Messages

  • XML syntax error in a JSP page.

    Hi,
    i was trying to include xml syntax in a jsp page in stead of core jsp syntax. it didn't work.But the jsp document with the core jsp syntax works. I'm wondering what's the problem.any help would be really helpful. I'm using Tomcat 3.2.1.
    Thanx in adv,
    Ganesh
    JSP file - NOT WORKING
    <jsp:directive.page import="java.util.Date"/>
    <jsp:declaration>
    private static String loadTime = new Date().toString();
    private static String getLoadTime() { return loadTime; }
    private static String getCurrentTime() { return new Date().toString(); }
    </jsp:declaration>
    <HTML>
    <HEAD><TITLE>XML and JSP</TITLE></HEAD>
    <BODY>
    JSP page is created using XML syntax...<BR>
    This page was loaded into memory at <%= getLoadTime() %>.<BR>
    The current time is <%= getCurrentTime() %>
    </BODY>
    </HTML>
    ERROR :
    Error: 500
    Location: /test/declarations.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat321\tomcat\work\localhost_8080%2Ftest\_0002fdeclarations_0002ejspdeclarations_jsp_6.java:59: Method getLoadTime() not found in class _0002fdeclarations_0002ejspdeclarations_jsp_6.
    out.print( getLoadTime() );
    ^
    C:\tomcat321\tomcat\work\localhost_8080%2Ftest\_0002fdeclarations_0002ejspdeclarations_jsp_6.java:65: Method getCurrentTime() not found in class _0002fdeclarations_0002ejspdeclarations_jsp_6.
    out.print( getCurrentTime() );
    ^
    2 errors

    Hi,
    any help on this question would be really appreciated..
    Thanx in adv,
    Ganesh

  • Location tempInit (what is it?) Syntax errors 1084 & 1086 in lines that don't exist.

    I am getting the following errors:
    tempInit, Line 280
    1084: Syntax error: expecting identifier before true.
    tempInit, Line 280
    1086: Syntax error: expecting semicolon before dot.
    tempInit, Line 376
    1084: Syntax error: expecting identifier before false.
    tempInit, Line 376
    1086: Syntax error: expecting semicolon before dot.
    I don't know where tempInit is in the location and I especially don't know where lines 280 or 376 are because I only have 111 lines of actionscript!  I don't know where to start.
    Any help would be appreciated.

    Pardon my intrusion.  I thought I'd throw this in since oddly enough it just showed up in the General forum today about an hour before you posted... it might have some info to help (or not).
    http://forums.adobe.com/thread/1083272?tstart=0

  • Syntax Error 1084

    ICan someone help, please? I'm having trouble with ActionScript 3.0, and I keep getting an error:
    1084:syntax error: expecting rightparen before colon
    And this is the script:
    home_button.addEventListener(MouseEvent.CLICK, takeHome);
    function takeHome(evt:MouseEvent){
        gotoAndStop(1)
    flash_button.addEventListener(event:MouseEvent)void:)
        nextFrame(2);
    clients_button.addEventListener(event:MouseEvent)void:
        nextFrame(3);
    If anyone can see anything wrong with this, I'd be more than grateful.

    There are a number of errors.  The following lines are correctly written... so based the rest of the code you show on their example...
    home_button.addEventListener(MouseEvent.CLICK, takeHome);
    function takeHome(evt:MouseEvent):void {
        gotoAndStop(1);
    Also, nextFrame() does not accept a numeric argument... it only goes to the next frame in case you are trying to go more than that.

  • XML Syntax Error

    I have a page with NO comments that output unicode in xml and
    sometimes it works, sometimes it says:
    Incorrect syntax was used in a comment. Error processing
    resource '
    http://www.netspeaknow.com/gamers/flashCFM/getPopQuiz.cf...
    <!-- "
    ---></TD></TD></TD></TH></TH></TH></TR></TR></TR></TA...
    but there are no comments. Even if there were why would this
    page only work about half the time? I have attached the code.
    Thanks for any help!

    Try wrapping all your code in <cfsilent>, and move you
    <cfcontent> down to
    the same line you're outputting your XML (ie: at the bottom).
    XML gets antsy if there is whitespace before the
    <?xml?> tag, or between
    that and the doctype (in my experience).
    I'd alos SERIOUSLY consider refactoring your approach to
    writing code so
    that you don't have a mix of processing, function
    declarations, DB calls
    and output all in the same CFM template. It's a bit of a
    mess.
    Also make sure you VAR all your variables in functions, and
    use
    <cfqueryparam> tags in your queries. Read up on when to
    use pound signs
    (and when not to), and when to use <cfoutput>.
    You only need pageencoding="UTF-8" on your template if the
    actual code has
    UTF-8 characters in it: it doesn't matter if the DATA you're
    processing is
    UTF-8; the <cfprocessingdirective> tag is a compiler
    instruction, not a
    ruuntime one. Otherwise it's just noise (cue: Paul Hatings
    disagreeing
    with that ;-)
    Adam

  • ACE-4710 : XML Syntax Error du to a missing closing tag

    Hi,
    We use XML over HTTPS to gather connections information from a management station. We can successfully read the number of connections per real server (rserver), but the ACE returns a buggy XML code when we tray to get the number of connections through the VIP (by asking the service-policy). The problem is a missing closing tag in the returned code. The missing tag is </sp_class_map>.
    We have the latest ACE software version A3(2.2) installed. Note that the same request on a ACE Service Module does not presents this bug. I took a look in the bug toolkit but did not found the exact match.
    Does somebody already had this problem ? it is anoying as we cannot represent the number of connections for a specific vip in the NMS.
    I attach the returned XML code, in which I highligted the tad that does not have its closing counterpart.
    Thank you for any info before I open a TAC case
    Yves

    Thank you Gilles,
    It seams that this bug is only visible inernally : "Information contained within bug ID CSCsz52234 is only available to Cisco employees".
    I saved the bug to be informed on its status. Do you thing I should open a TAC case anyway ?
    Yves

  • Package Cannot Be Nested 1037 & Syntax Error 1084

    Trying to learn how to crerate a Box2D game in WIndows 8 Flash Pro CC.   Opened new document in ActionScript 3.0 Class or ".as" as a Flash Pro application.  Very very new to all developer languages and processes.  Please help.
    package {
        import flash.display.Sprite
        import Box2D.Dynamics.*;
        import Box2D.Collision.*;
        import Box2D.Collision.Shapes.*;
        import Box2D.Common.Math.*;
        public class Main extends Sprite{
            public function Main(){
                trace(*my awsome game starts here *);

    the default directory is usually in the same directory where the main fla is saved but that can be changed in advanced actionscript settings panel (file>publish settings>actionscript settings - wrench icon).
    p.s. you should copy and paste your actualy code.  if that is your actual code, that trace is incorrect and should contain a string.  ie, change the asterisks to quotes.

  • Flash is complaining about XML? Im using AS3 why are there XML errors? Unknown syntax errors.

    Sorry to keep spamming these forums with my stupid errors, but I am trying really hard to learn Flash/AS3 and when I have got to grips with it, I will return the love.
    I am a flash rookie trying to make a simple calculation device and I am getting a whole world of errors I have never seen before.
    My Code (I apologise but it may be my bad syntax):
    import flash.ui.Mouse;
    var Hnum:String;
    var PCnum:String;
    var calc:Number = 25;
    var Total:Number;
    num1.restrict = "0-9";
    num2.restrict = "0-9";
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function PartCount(event:MouseEvent):void{
        PCnum = num2.text;
        if (PCnum > 0 && < 10){
            parseInt(PCnum) * 10;
        or if (PCnum > 11 && < 20){
            parseInt(PCnum) * 5;
        or if (PCnum > 21){
            parseInt(PCnum) * 1;
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function calculate(event:MouseEvent):void{
        Hnum = num1.text;
        PCnum = num2.text;
        Total = parseInt(Hnum) * calc + parseInt(PCnum);
        Total.toString();
        Total_txt.text = String(Total);
    I had everything working when I was only calculating Hnum by 25. But when I try to intergrate  the if or statement everything goes wrong and I get these 5 errors.
    Scene 1, Layer 'Actions', Frame 1, Line 15
    1104: invalid xml name
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting xmltagendend before end of program.
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting rightparen before end of program.
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting identifier before end of program.
    Scene 1, Layer 'Actions', Frame 1
    1084: Syntax error: expecting rightbrace before end of program.
    I dont understand what these errors are pointing out? Why XML? is it my variable names?
    Here is the code I had before the second function that worked fine:
    var Hnum:String;
    var PCnum:String;
    var calc:Number = 25;
    var Total:Number;
    num1.restrict = "0-9";
    num2.restrict = "0-9";
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function calculate(event:MouseEvent):void{
         Hnum = num1.text;
         PCnum = num2.text;
         Total = parseInt(Hnum) * calc;
         Total.toString();
         Total_txt.text = String(Total);
    Any help would be greatly appreciated! I will get the hang of this!
    MrB

    Thanks guys you were right it was parse problem with the var type.
    I have changed the code adding parseInt where necessary.
    I have also added the other functions. But now after it was working fine with just the one function it is doing the strangest thing.
    There are no errors, it is running fine but it is outputting the letter "a" instead of any numbers? Is this something to do with the strings? It is most odd.
    Any help would be greatly appreciated.
    Here is the new code:
    import flash.ui.Mouse;
    var Hnum:String;
    var PCnum:String;
    var PCcalc:Number;
    var Pmath:Number;
    var calc:Number = 25;
    var Total:Number;
    num1.restrict = "0-9";
    num2.restrict = "0-9";
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function PartCount(event:MouseEvent):void{
        if (parseInt(PCnum) > 0 && parseInt(PCnum)< 10){
            PCcalc == 1;
        if (parseInt(PCnum) > 11 && parseInt(PCnum)< 20){
            PCcalc == 2;
        if (parseInt(PCnum) > 21 && parseInt(PCnum)<200){
            PCcalc == 3;
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function PartCalc(event:MouseEvent):void{
        if (PCcalc == 1){
            Pmath * 10;
        if (PCcalc == 2){
            Pmath * 5;
        if (PCcalc == 3){
            Pmath * 1;
    Est_btn.addEventListener(MouseEvent.CLICK, calculate);
    function calculate(event:MouseEvent):void{
        Hnum = num1.text;
        PCnum = num2.text;
        Total = parseInt(Hnum) * calc + Pmath;
        Total.toString();
        Total_txt.text = String(Total);
    Thanks
    MrB

  • 1084 Syntax errors. Very basic.

    I am very new to flash and I have some very basic code that I need help with.
    Here;
    var paddlepos:int = paddle.x.position
    if; (paddlepos > 253)
        paddle.x.postition = 253;
    The errors are:
    Scene 1, Layer 'Actions', Frame 1, Line 28    1084: Syntax error: expecting rightparen before leftbrace.
    Scene 1, Layer 'Actions', Frame 1, Line 27    1084: Syntax error: expecting leftparen before semicolon.
    Help would be very helpful. Thanks.

    there should be no semi-colon after if.

  • 1084: Syntax error: expecting rightbrace before rightparen

    Hi,
    I am getting the following error when using the below code:
    1084: Syntax error: expecting rightbrace before rightparen.
    Code:
    Buttons.Btn_2.addEventListener(MouseEvent.CLICK,Btn_2ClickHandler);
    function Btn_2ClickHandler(event:MouseEvent):void {
    navigateToURL (new URLRequest ("http://Main/New_Projects/Album-2.htm"), "_self"));
    I am getting this error only after adding  , "_self")
    Please help.

    You appear to have one too many right parenthesis in that line.  The number of rights should equal the lefts.

  • 1084: Syntax error: expecting rightbrace before end of program.

    So 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; 
    public class bullet extends Sprite {
    private var sw:Number;
    private var sh:Number;
    private const _SPEED:int=-10;
    private const _OFFSTAGE:int=-10; 
    public function bullet():void {
    addEventListener(Event.ADDED_TO_STAGE,onadd);
    private function onadd(e:Event):void {
    sw=stage.stageWidth;
    sh=stage.stageHeight;
    addEventListener(Event.ENTER_FRAME,loop);
    private function loop(e:Event):void {
    if (y<_OFFSTAGE) {
    removeEventListener(Event.ENTER_FRAME,loop);
    parent.removeChild(this);
    y-=_SPEED;
    }public function removeListeners():void {
    removeEventListener(Event.ENTER_FRAME,loop); 
    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. What's going on?
    The vid I'm learning from is this: http://autocad.spinelink.com/adobe-flash-cs4-game-tutorial-shooting.html

    You are missing two closing curly braces at the bottom of the package declaration. You need to close the package itself and the class declaration inside.
    package {
         import flash.display.Sprite;
         import flash.events.Event;
         public class bullet extends Sprite {
              private var sw:Number;
              private var sh:Number;
              private const _SPEED:int=-10;
              private const _OFFSTAGE:int=-10;
              public function bullet():void {
                   addEventListener(Event.ADDED_TO_STAGE,onadd);
              private function onadd(e:Event):void {
                   sw=stage.stageWidth;
                   sh=stage.stageHeight;
                   addEventListener(Event.ENTER_FRAME,loop);
              private function loop(e:Event):void {
                   if (y<_OFFSTAGE) {
                        removeEventListener(Event.ENTER_FRAME,loop);
                        parent.removeChild(this);
                   y-=_SPEED;
              public function removeListeners():void {
                   removeEventListener(Event.ENTER_FRAME,loop);

  • 1084: Syntax Error:....; 1086: Syntax Error:..... ????

    I'm getting the following Compiler Errors:
    tempInit, Line 10 1084: Syntax error: expecting identifier before null.
    tempInit, Line 10 1086: Syntax error: expecting semicolon before dot.
    I'm not writing any external AS files.  All of this is basic ActionScript on frame 1 of the main timeline.
    Do I need to post the code?
    All that's in my movie are invisible buttons to navigate to the next frame in the timeline using
    my_mc.nextFrame();
    What could be wrong?

    Okay Okay..
    Here's the code
    stop();
    // A ACTIONS
    A_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage02);
    trace("hello");
    A_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    A_Master_mc.gotoAPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    A_Master_mc.gotoAPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage03);
    A_Master_mc.gotoAPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage04);
    A_Master_mc.gotoAPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage05);
    A_Master_mc.gotoAPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage06);
    A_Master_mc.gotoAPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage07);
    A_Master_mc.gotoAPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage08);
    A_Master_mc.gotoAPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage09);
    A_Master_mc.gotoAPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage10);
    A_Master_mc.gotoAPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage11);
    A_Master_mc.endA_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAHome);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.gotoAndStop(2);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage03(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage04(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage05(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage06(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage07(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage08(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage09(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage10(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage11(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoHome(e:MouseEvent):void{
         gotoAndStop(1);
    // B ACTIONS
    B_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    B_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    B_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    B_Master_mc.gotoCPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage03);
    B_Master_mc.gotoCPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage04);
    B_Master_mc.gotoCPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage05);
    B_Master_mc.gotoCPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage06);
    B_Master_mc.gotoCPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage07);
    B_Master_mc.gotoCPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage08);
    B_Master_mc.gotoCPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage09);
    B_Master_mc.gotoCPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage10);
    B_Master_mc.gotoCPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage11);
    B_Master_mc.gotoCPage12_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage12);
    B_Master_mc.endB_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBHome);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.gotoAndStop(2);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage03(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage04(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage05(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage06(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage07(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage08(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage09(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage10(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage11(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage12(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBHome(e:MouseEvent):void{
         gotoAndStop(2);
    //C ACTIONS
    C_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    C_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    C_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage02);
    C_Master_mc.gotoCPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage03);
    C_Master_mc.gotoCPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage04);
    C_Master_mc.gotoCPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage05);
    C_Master_mc.gotoCPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage06);
    C_Master_mc.gotoCPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage07);
    C_Master_mc.gotoCPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage08);
    C_Master_mc.gotoCPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage09);
    C_Master_mc.gotoCPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage10);
    C_Master_mc.gotoCPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage11);
    C_Master_mc.gotoCPage12_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage12);
    C_Master_mc.gotoCPage13_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage13);
    C_Master_mc.endC_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCHome);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.gotoAndStop(2);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage03(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage04(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage05(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage06(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage07(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage08(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage09(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage10(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage11(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage12(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage13(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCHome(e:MouseEvent):void{
         gotoAndStop(3);
    Yes you can tell I'm inexperienced kglad but I'm learning more periodically. 

  • Line 26 1084:  Syntax Error:  expecting rightbrace before end of program

    Im trying to do an animation, how do I solve Line 26 1084:  Syntax Error:  expecting rightbrace before end of program?
    package
        import flash.display.MovieClip;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class AvoiderGame extends MovieClip
            public var enemy:Enemy;
            public var gameTimer:Timer;
            public function AvoiderGame()
                    enemy = new Enemy();
                    addChild( enemy );
                    gameTimer = new Timer( 25 );
                    gameTimer.addEventListener( TimerEvent.TIMER, moveEnemy );
                    gameTimer.start();
            public function moveEnemy( timerEvent:TimerEvent ):void
               enemy.moveDownABit();

    I have taken your advice but now 2 errors have popped up. Line 16 1137: Incorrect number of arguments . Expected no more than 0. Line 18 1120 : Access of undefined property enemy.
    package
        import flash.display.MovieClip;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class AvoiderGame extends MovieClip
            public var army:Array;
            public var avatar:Avatar;
            public var gameTimer:Timer;
            public function AvoiderGame()
                    army = new Array();
                    var newEnemy = new Enemy( 100, -15 );
                    army.push( newEnemy );
                    addChild( enemy );
                    avatar = new Avatar();
                    addChild( avatar );
                    avatar.x = mouseX;
                    avatar.y = mouseY;
                    gameTimer = new Timer( 25 );
                    gameTimer.addEventListener( TimerEvent.TIMER, onTick );
                    gameTimer.start();
            public function onTick( timerEvent:TimerEvent ):void
                avatar.x = mouseX;
                avatar.y = mouseY;
                for each ( var enemy:Enemy in army )
                         enemy.moveDownABit();
                         if ( avatar.hitTestObject( enemy ) )
                                    gameTimer.stop();

  • 1084: Syntax error: expecting leftbrace before extend

    Hi all.  Not sure what is going on here.  I'm trying to improve my knowledge of AS 3.0.  I keep getting this error and this is a snippet of code that I copied and ran it.  I keep getting the same error '1084: Syntax error: expecting leftbrace before extend'.  Can anyone tell me where I'm going wrong?  Here is the code.
    package
              import flash.display.MovieClip;
              public class ActionScriptTest extend MovieClip {
                   public function ActionScriptTest(){
                                  init();
       private function init():void{
                             var bookTitle:String="Foundations";
            trace(bookTitle);

    Thanks Ned.  That was it.  Thanks for getting me unstuck. 

  • 1084: Syntax error: expecting colon before assign.

    Hi
    I am getting "1084: Syntax error: expecting colon before assign." in flash builder 4.6. My application was working fine before a day but When today i try to install app on device then automatic this error comes.
    Please update me when is the problem in my project.
    I am trying to build Flex mobile project by using Flash builder 4.6.
    Thanks
    Brij Kishor

    Well, start with this:
    [Bindable]
    public var gaugeValue:uint = UIUtils.sum(collector_Array, fld:String="rate");
    But, I have no idea what UIUtils.sum does, but you are probably shouldn't be passing in fld:String="rate", it it asks for a String, just pass in rate or the variable fld.
    i.e.
    [Bindable]
    public var gaugeValue:uint = UIUtils.sum(collector_Array, fld);

Maybe you are looking for

  • Cannot get distcc/pump to work

    I have two machines on a GigaLAN both running distccd.  1) Workstation (Intel i7-3770K) with 8 logical CPUs. 2) Laptop (Intel C2D) with 2 logical CPUs. On my workstation: % cat /etc/distcc/hosts localhost/9,cpp,lzo 192.168.0.102/3,cpp,lzo On my lapto

  • Due date is showing earlier than doc. date

    Hi, I have a funny question. I have posted billing doc. in VF01 for 10000/- on 30.06.2009 payment term is 30 days from the doc. date so the due date should be 30.07.2009. Against this doc. i have posted one residual payment for 5000/- on 15.08.2009 b

  • IWeb content missing...

    I spent a good hour chatting on the Apple chat support on this issue and it isn't resolved. The problem is simple. When I publish a website, no errors. Nothing shows an error message or problem in any way. However, when I check to see the is as it sh

  • All environment variable set right yet-i have a  in starting tomcat server

    i ran startup.bat from tomcat/bin to get this report.. Tomcat opened a separate dos window and ran some commands and closed ,then dispalying the following in a new window.. Syntax error Using CATALINA_BASE: D:\Kartik\tomcat\jakarta-tomcat-4.1.29 Usin

  • Raw Updater, Olympus OMD EM1

    Hi, Olympus released a new camera body this week for shipping in October, the OMD EM1. I'm on pre-order, but am wondering if anyone knows when it might be usable on Adobe Photoshop for RAW file processing, or how often the software is updated from Ad